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

...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

ZAP Utility

...Maximized

Zap.Var..."state")

Application

SetWindowState

Zap.Var..."state")

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227