#TargetWindowError

Avoid errors when target window is not found.

#TargetWindowError OnOff

Parameters

OnOff (optional)

When parameter is omitted, it defaults to Off. On/1 = throw if window not found, Off/0 = don't throw if window not found.

Example

#TargetWindowError
WinActivate "this window does not exist and no error is shown"