Hello
Is there a command to get current window size and position?
yks45
how to get window size and position
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: how to get window size and position
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;
To see the attached files, you need to log into the forum.
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
Thanks, highend
That helped me a lot.
yks45
That helped me a lot.
yks45
XYplorer Beta Club