how to get window size and position

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yks45
Posts: 9
Joined: 19 Aug 2019 20:46

how to get window size and position

Post by yks45 » 22 May 2020 03:18

Hello

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

yks45

highend
Posts: 8940
Joined: 06 Feb 2011 00:33

Re: how to get window size and position

Post by highend » 22 May 2020 10:16

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 5 times
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

yks45
Posts: 9
Joined: 19 Aug 2019 20:46

Re: how to get window size and position

Post by yks45 » 22 May 2020 14:19

Thanks, highend
That helped me a lot.

yks45

Post Reply