ActiveWindow

Description: ActiveWindow returns the object value of the root module instance in the current active window.
Returns: Object value
Usage: Script or steady state.
Function Groups: Compilation and Online Modification, Window
Related to: ActiveCode | ActiveState | CurrentWindow | Window
Format: ActiveWindow( )
Parameters: None
Comments: Child windows (those with bit 9 set in their Window call) are not recognized as separate entities. Clicking on a child window returns the object value of the root module in its parent window. This is not true for owned windows (those with bit 15 set in their Window call), which return the object value of the root module instance in the window.

Example:

object = ActiveWindow();