Syntax
LastWindowCaptionDescription
An instrinsic variable in which the caption argument from the last executed SetWindow or WaitForWindow statement is retained.Remarks
See also LastWindowClass.Example
WaitForWindow Caption="*Notepad*" Timeout=5
If TimedOut Then
ScriptError "Timeout waiting for window with caption " & LastWindowCaption & "."
EndIfThe above script fragment uses the LastWindowCaption variable to show to which window a timeout relates.