application, set, window, state, maximize, minimize, winapi, showwindow, scriptless, script-less, scripted, step, view, stepview

Method SetWindowState

Set the state of the AUT window if possible

Watch this video to learn how to use this method

Have a problem with playback?

Usage

Function SetWindowsState(
        Integer WindowState
)

Application

SetWindowState

Zap...Normal

WindowState

Parameters

WindowState

Type: Integer

Window state or command of ShowWindow WinAPI method.

States:

  • Normal = 5
  • Maximized = 3
  • Minimized = 2

Or use Zap.WindowStates type

Returns

No return value

Example

VBScript

' Make Application window maximized
Application("Demo").SetWindowState Zap.WindowState.Maximized

JavaScript

// Make Application window maximized
Application("Demo").SetWindowState(Zap.WindowState.Maximized);

Comment

Make application window Maximized

Application

SetWindowState

Zap...Maximized

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227