hpw
Full Member
Posts: 30
|
Post by hpw on Oct 21, 2020 18:46:18 GMT
Hello,
What about some command to get screen pos+size of a selected (aktiv) window:
1 | RUN ACTION | GETWINDOWPOS | %WindowPosX% | %WindowPosY%
1 | RUN ACTION | GETWINDOWSIZE | %WindowSizeX% | %WindowSizeY%
Should allow relativ calculation for the PIXEL commands. The variables are INTEGER of cource.
Regards Hans-Peter
|
|
|
Post by Steve on Oct 22, 2020 9:08:11 GMT
so the action would get the windows x and y position and the size of the window.
What would this be used for?
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 22, 2020 10:24:33 GMT
Hello Steve,
All MMM screen coordinates are absolut screen position right? When I want to PIXEL RANGE an area on my window/app then the area is relativ fix to the window top edge. So the coding must know where the window currently is and compensate the offset.
Regards
Hans-Peter
|
|