Type WindowStates
WindowStates enumeration type provides WinAPI ShowWindow function values. It can be used in SetWindowState methodUsage
Type ZAP.WindowStates
Parameters
Maximized
Maximizes the specified window
Minimized
Activates the window and displays it as a minimized window
Normal
Activates the window and displays it in its current size and position
Returns
Example
VBScript
' Set window state maximized
Application("Demo").SetWindowState Zap.WindowStates.Maximized
JavaScript
// Set window state maximized
Application("Demo").SetWindowState(Zap.WindowStates.Maximized);
Comment
Save window state to variable and set it as parameter for SetWindowState method