Returns window coordinates.
WinPlaceGet (win-type, partial-winname)
(i) win-type @ICON, @NORMAL, or @ZOOMED
(s) partial-winname the initial part of, or an entire, window name.
(s) window coordinates (see below).
This function returns the coordinates for an iconized, normal, or zoomed window.
"Partial-winname" is the initial part of a window name, and may be a complete window name. It is case-sensitive. You should specify enough characters so that "partial-winname" matches only one existing window. If it matches more than one window, the most recently accessed window which it matches will be used.
The returned value is a string of either 2 or 4 numbers, as follows:
Iconic windows "x y" (upper left corner of the icon)
Normal windows "upper-x upper-y lower-x lower-y"
Zoomed windows "x y" (upper left corner of the window)
All coordinates are relative to a virtual 1000x1000 screen.
This function works only with top-level (parent) application windows.
Note: 1000x1000 virtual screen size is based on the primary monitor in a multi-monitor display configuration
Run("notepad.exe", "") pos = WinPlaceGet(@NORMAL, "~Notepad") TimeDelay(2) WinPlaceSet(@NORMAL, "~Notepad", "250 250 750 750") TimeDelay(2) WinPlaceSet(@NORMAL, "~Notepad", pos)
WinGetActive, WinItemize, WinPlaceSet, WinPosition, WinState, Partial Window Names, IntControl 46