Hide Window Action
WINDOWTITLE="text" WINDOWCLASS="text" WINDOWHANDLE="number"
ALLOWHIDDEN="yes/no" WINDOWHANDLEVARIABLE="text [variablename]"
WINDOWCLASSVARIABLE="text [variablename]" WINDOWTITLEVARIABLE="text
[variablename]" RESULTDATASET="text" />
Hide Window Action-Setting Properties, Unhide Window Action-Setting Properties, Close Window, Maximize Window, Focus Window, Restore Window, Minimize Window, Unhide Window, Resize Window, Move Window, Wait for Window, End Process
Hides the specified window. Hiding a window makes the window invisible so that it cannot be seen or interacted with.
Note: The only way to access a window that has been hidden is to Unhide it first. Keystrokes and mouse clicks cannot be sent to hidden windows.
Generally used to hide an already open window so that it does not interfere with the user's work while running.
It is very important to remember that since the window is hidden, if anything goes wrong during the external program's execution you may not be able to see it. Furthermore, it is not possible to exit an application that is hidden except by ending the process using either AutoMate or the Windows Task Manager.
Hide Window is designed to be used on applications that are already open. To start an application in hidden mode, use the Run <AMRUN> action and set the Initial window state parameter to Hidden [WINDOWSTARTUP="hidden"].
Specifies the title of the window to hide. The value is not case sensitive. This parameter supports wildcard characters (* and ?). For example "*Internet Explorer*" would include all windows containing Internet Explorer.
Specifies the class of the window to hide. The value is not case sensitive. This parameter supports wildcard characters (* and ?). For example "*Explore*" would include all window classes containing Explore.
Specifies the handle of the window to hide. If set to 0 or omitted, this parameter is ignored.
The Contents tab contains standard window dissection parameters used to describe controls or text inside a window. These parameters are the same on every action that specifies a window and are documented under Window Dissection Parameters.
When enabled, specifies that hidden (non-visible) windows should be included in the window search. By default, hidden windows are considered unavailable.
Specifies the name of an already existing variable that should receive the title of the window that was hidden.
Specifies the name of an already existing variable that should receive the class of the window that was hidden.
Specifies the name of an already existing variable that should receive the handle of the window that was hidden.
Specifies the name of a dataset to be created and populated with data from the window that was hidden. In addition to the standard dataset fields, the dataset will contain the following:
Title: The window title.
Class: The window class. A window class is a set of attributes that the system uses as a template to create a window. Every window is a member of a window class. All window classes are process specific.
Handle: The window handle, a code that uniquely identifies the window.
This action contains a subset of Network Automation's unique "Window Dissection Technology".
Click here for more information.
This action includes the Description tab for entering a custom step description.
More on setting custom step description
This action also includes the standard Error Causes and On Error failure handling options/tabs.
More on Error Handling Options
All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.
More on variables
More on expressions
More on the expression builder
NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.
<AMWINDOWHIDE WINDOWTITLE="* - Microsoft Word" WINDOWCLASS="OpusApp" WINDOWTITLEVARIABLE="VariableName" RESULTDATASET="DatasetName" />