<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > Window Operations |
MiniRobotLanguage (MRL)
IWZ. Conditional Statement
If Window Zoomed
Intention
Conditional Statement.
Test if one or more specified window(s) are zoomed (maximized) or not. If no parameter is given, the actual window is been tested.
You can enable or disable child- or top-windows using the SWS. - Set Window State .-command.
IWZ. tells you, if the actual window is zoomed or not. If no parameter is given, the actual window is been tested. If you give parameter, these must be window handles, or the letters "c" or "t".
These letters stand for "child" and "Top". If given they will be replaced with the last window of that kind that has been localized.
c - last localized child-window
t - last localized Top-Window
Please note, that if the actual window is a child-window (e.g. a button), you need to specify "t" as parameter,if you want to test the actual top-window. Some examples:
'Get first window handle
STW.ct|CabinetWClass|c:
HTV.$$HAA
'Get second window handle
STW.ct|Chrome_WidgetWin_0|meebo.com
HTV.$$HAB
'Test both handles
IWZ.$$HAA|$$HAB
DBP.All windows are enabled
ELS.
DBP.At least one of the windows is disabled
EIF.
ENR.
Other modes of operation are:
' Check actual located window
IWZ.
' check last located child window
IWZ.c
' check actual Top-window
IWZ.t
' check window with handle in $$MYH
IWZ.$$MYH
NWZ. is the negative version "Not Window Zoomed".
Syntax
IWZ.[P1][|P2...|P20]… ELS. … EIF.
Parameter Explanation
P1 - numeric/variable or "c" or "t". If omitted actual
window is taken.
P2 - optional parameters which are also tested for enabled.
If one of them is disabled the test fails (implicit=AND).
Can be up to 20 additional parameters.
IWZ.'s can be nested to unlimited Depth, and they can also enclose Sub-Program Calls or FEX. (Enumerations) to unlimited Depth.
Example
'***********************************
' IWZ.-Sample
'***********************************
STW.t|Sample
MMV.
IWZ.
MBX.Ok
ELS.
MBX.No!
EIF.
END.
Remarks
-
Limitations:
-
See also:
• IWS. / NWS. - If Window State
• IWZ. / NWE. - If Window Enabled
• IWI. / NWI. - If Window Iconized
• IWV. / NWV. - If Window Visible
• IWZ. / NWZ. - If Window Zoomed