Window Command

<< Click to Display Table of Contents >>

Navigation:  Actions > Window >

Window Command


Manipulates certain windows that you specify.




Window Selection Mode

Use Window Parameters. In this case it is necessary to specify parameters of a required window: Window Caption, Window Class, compliance mode, etc. (see the description below).

Use Window Handle. In this case it is necessary to specify a Window Handle. Handle is a number, an identifier of a window. It can be got, for example, in the action “Window loop”. The Window Handle uniquely identifies the window in a system, so the rest of window parameters have no sense.

Use Current Window. In this case a current active window is used. For example, if the necessary window was activated in the previous actions of a task, there is no need to specify window parameters again. Just use the current active window.


Window Caption

Enter or select the caption of the window that you want to manipulate with the action you select in the Action list. You can enter part of a window caption.


Caption Must Match Exactly

Select this check box if you want to manipulate only the window that exactly matches the window caption you selected. This check box is cleared by default so that the task can manipulate windows that contain only part of the window caption entered in the Window Caption box. For example, you can enter <notepad> for the window with a caption <Untitled - Notepad>.


Window Class.

If you want to search the window by a window class, switch on this checkbox and input the expected name of the window class. You can input only part of the name. In this case the action will check availability of the input line in the name of the window class.


Class Name Must Match Exactly.

If you need the exact coincidence of a window class, switch on this checkbox. Usually it is worthwhile to search by the whole class name, because a window class is permanent and does not change its value during the "life" of the window, unlike a caption.


Select Window on the Screen.

When pressing this button, you turn on the mechanism of selection a window on the screen. The window, which the mouse pointer points on, highlights with a red frame. Meanwhile, you can use the mouse to perform some actions. To select the necessary window, press Ctrl. To cancel - press Esc. When selecting a window, the fields Window Caption and Window Class are filled in automatically.



Select the action for manipulating the window.

Focus - makes the window active.

Minimize - reduces the window to an icon on the Windows taskbar.

Maximize - restores the window to fill the entire screen.

Restore - restores the window to its previous state.

Close - closes the window.

Hide - hides the window from view on the screen and Windows taskbar.

Unhide - displays the hidden window.


note Related Topics

Check for Window

Wait for Window

Window Size and Position

Window Elements Loop

Window Get Size and Position