Chapter 5. The WindowsManager Class

Table of Contents
desktopWindow
find
foregroundWindow
windowAtPosition
consoleTitle
consoleTitle=
sendTextToWindow
pushButtonInWindow
processMenuCommand
broadcastSettingChanged

The WindowsManager class provides methods to query, manipulate, and interact with windows on your desktop. Currently, this class is specifically for the Windows operating sytsem and is not available on other operating systems.

The WindowsManager class is not a built-in class, it is defined in the file winSystm.cls. To use the class, add a ::requires statement to the program file:

::requires "winSystm.cls"

Methods the WindowsManager Class Defines

desktopWindow

>>-desktopWindow-----------------------------------------------><

Returns an instance of the WindowObject class that represents the Desktop window. The Desktop window is the parent of all top-level windows and therefore the ancestor of every window on the system. If some error happens, .nil is returned. (This is extremely unlikely.)