|

ResultVariable


When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.


See also: Related Actions


image

image

Window.GetPos

OverviewExamples

table Window.GetPos ( number WndHandle )


De s cr ip t ion


Returns the X and Y screen coordinates of a window in pixels. This coordinate refers to the upper left hand corner of the window relative to the screen.


Note: The upper left hand corner of the screen has X and Y coordinates of 0.


image

P arame t er s


WndHandle


(number) The integer value that represents the specific window on the user's desktop. (Commonly referred to as an hWnd.)


Re t u r n s


(table) A table containing the window's current coordinates, indexed by values X and Y. If the window cannot be found or an error occurs, nil is returned. You can use Application.GetLastError to determine whether this action failed, and why.


|