Window - Bring to Front

Brings a specific window to the front of the desktop (in front of all other windows).

Action ID:
Action Category:
Action List Syntax:

53
Window
Window.BringToFront (<<HWND>>)

Settings

hWnd:

An integer value that represents the "handle" of the window on the user's desktop that will be brought to the front. The hWnd value can be determined using a "Window - Find" action, or the built-in variable %MenuHWnd% (which is the hWnd value for the AutoPlay application's window) can be used.

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_WINDOW_BRING_TO_FRONT

MSG_ERR_WINDOW_BRING_TO_FRONT
MSG_ERR_WINDOW_HWND_NOT_FOUND
<<HWND>>

Examples

Moving a window

Moving a window (advanced)