Page 1 of 1

how to get window size and position

Posted: 22 May 2020 03:18
by yks45
Hello

Is there a command to get current window size and position?

yks45

Re: how to get window size and position

Posted: 22 May 2020 10:16
by highend
Afaik not. A workaround:

Code: Select all

    $info = runret("""path to\XY_Size.exe"" <hwnd>");
    $x = gettoken($info, 1, "|");
    $y = gettoken($info, 2, "|");
    $w = gettoken($info, 3, "|");
    $h = gettoken($info, 4, "|");

    text "X: " . $x . ", Y: " . $y . ", W: " . $w . ", H: " . $h;
XY_Size_v0.1.0.0.zip
(16.92 KiB) Downloaded 96 times

Re: how to get window size and position

Posted: 22 May 2020 14:19
by yks45
Thanks, highend
That helped me a lot.

yks45