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: 8
Joined: 19 Aug 2019 20:46

how to get window size and position

Post by yks45 »

Hello

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

yks45

highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: how to get window size and position

Post 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 64 times
One of my scripts helped you out? Please donate via Paypal

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

Re: how to get window size and position

Post by yks45 »

Thanks, highend
That helped me a lot.

yks45

Post Reply