PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Miscellaneous

LastWindowCaption

Syntax

LastWindowCaption

Description

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 & "."
EndIf

The above script fragment uses the LastWindowCaption variable to show to which window a timeout relates.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.