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

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


Miscellaneous

LastWindowClass

Syntax

LastWindowClass

Description

An instrinsic variable in which the class argument from the last executed SetWindow or WaitForWindow statement is retained.

Remarks

See also LastWindowCaption.

Example

WaitForWindow
Caption="*Notepad*"
Class="Notepad"
Timeout=5
If TimedOut Then
ScriptError "Timeout waiting for window with caption " & LastWindowCaption &
" and class " & LastWindowClass & "."
EndIf

The above script fragment uses the LastWindowCaption and LastWindowClass variables 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.