Window.GetPos

table Window.GetPos ( 

number WndHandle )

Example 1

Acro_Pos = Window.GetPos(Acrobat_Handle);

Gets the current X, Y coordinates of the program whose window handle is stored in the variable "Acrobat_Handle" and stores the results in a table called "Acro_Pos." These values can be accessed by referencing Acro_Pos.X and Acro_Pos.Y.

Example 2

tPos = Window.GetPos(Application.GetWndHandle());

Gets the current X, Y coordinates of the installation window and stores the results in a table called "tPos." These values can be accessed by referencing tPos.X and tPos.Y. This example uses the Application.GetWndHandle action to get the installation's window handle.

See also:  Related Actions