type, window, state, winapi, zap, namespace, maximize, minimize, normal, custom, step, scriptless, script-less, scripted, step, view, stepview

Type Zap.WindowStates

Watch this video to learn how to use this method

Have a problem with playback?

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

Usage

Type Zap.WindowStates

ZAP Utility

ZAP Utility step

...States.Normal

state

Output Parameter

Values

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

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

Script-Less next step

ZAP Utility

ZAP Utility step

...Maximized

Zap.Var..."state")

Script-Less next step

Application

ZAP Object step

SetWindowState

Zap.Var..."state")

Contact Us

1425 Market Blvd Suite 530-230

Roswell, GA 30076, USA

(800) 795-3552