The Window_GetPosition() function returns the current coordinates of the named window’s top left corner.
Window_GetPosition(window window_name, h_position, v_position)
• window window_name – The name of the window for which you wish to retrieve a position.
• h_position – An integer field or variable to which the specified window’s horizontal coordinate is returned.
• v_position – An integer field or variable to which the specified window’s vertical coordinate is returned.
The boolean value true.
The coordinates are expressed in pixels. The coordinates 0,0 specify the upper left corner of the screen. If a toolbar is present, the vertical position 0 is located below the bottom of the toolbar.
If the specified window is closed, the h_position and v_position parameters are set to 0.
Use the isopen() function to see if the specified window is open before using this function. Then, you’ll know that the 0,0 coordinates returned by this function represent the location of the window, not the fact that the window is closed.