Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Type WindowStates

WindowStates enumeration type provides WinAPI ShowWindow function values. It can be used in SetWindowState method

Usage

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);

Documentation Categories

ZAPTEST

FARM

LOAD