Window - Find

Searches for a running window (by the text that appears in the window's title bar) and stores the hWnd value for that window in a variable. The hWnd value can then be used with other Window actions.

Action ID:
Action Category:
Action List Syntax:

127
Window
<<VARIABLE>>
= Window.Find (<<FINDTEXT>>)

Settings

Window to Find

Window title:

The window title to search for in order to find the target window. AutoPlay will search for a window with only this text in its title bar (e.g. "AutoPlay Application").

Variable

Store result in variable:

The hWnd value of the first matching window found will be stored in this variable. (This value is not very useful on its own; its main purpose is to be used with the other Window actions.)

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_WINDOW_FIND

MSG_ERR_WINDOW_FIND
MSG_ERR_WINDOW_NO_MATCHING_PARAMS
Search for: <<FINDTEXT>>

Examples

Moving a window

Moving a window (advanced)