<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > Window Operations |
MiniRobotLanguage (MRL)
MAW. Command
Missing Active Window
Intention
Stops script execution at the given Line until the last localized window disappears (is closed). The command has possible prototypes for advanced usage.
Syntax
MAW.[P1][|P2][|P3]
Parameter Explanation
P1 - optional: Prototypes
h - handle, if specified, you need to supply the window-handle
of the window to wait for.
t - timeout, if specified the command will only wait the specified
amount of time in seconds and then go on with the next command.
The timeout flag is set in that case, otherwise its cleared.
p - Top-Window from actual window has to be closed..
a - continues if the window becomes invisible or disabled.
v - continues if the window becomes invisible.
e - continues if the window becomes disabled.
P2 - optional: Variable
P3 - optional: time to pause in seconds
Example
'***********************************************
' This Example will locate a Window and wait till
' it is removed.
' Please note that you need to have such a window.
'***********************************************
DBM.2
STW.c|#32770
MAW.
PRT. Window was removed
DMP.
END.
'***********************************************
' This Example will locate a Window and wait till
' it is removed. It will use a timeout of 5 Seconds.
' Please note that you need to have such a window.
'***********************************************
DBM.2
STW.c|#32770
HTV.$$MYW
' Locating another window
STW.c|ieframe
' We use the handle therefore we wait
' until the #32770 window is been closed.
MAW.ht|$$MYW|5
PRT. Window was removed or timeout happened
DMP.
END.
'***********************************************
' This Example will wait till the IE 6 is ready
'***********************************************
STW.c|ieframe
SCW.cw|explorer_server|360
SCW.cdw|msctls_progress32|2|160
HTV.§§HTC
MAW.v
MBX.IE is ready.
END.
Remarks
-
Limitations:
-
See also: