The WINDOW() function takes one or two parameters and returns information about a window. With one parameter, it refers to the window that that action is operating on in actions like the Manipulate a Window. If the action does not refer to a window, then the function refers to the main/focused/front window. With two parameters, the first parameter specifies which window in the front application to operate on.
The first parameter may be:
The second parameter specifies the desired coordinate and can be:
The WINDOW() function returns the desired coordinate of the specified window.