Window Operations * SCW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > SCW. - Search-Child-Window >

Window Operations * SCW.

"V" - Flag "GoSub if not found. "

Previous Top Next


MiniRobotLanguage (MRL)

 

"V" - Flag "GoSub if not found"

Search Child Window

 

 

Intention

 

If the child-window (button, control etc.) is not found within the specified waiting time, several things can happen. Normally you will get an error-message and the script will end.

 

But that does not necessarily be what you want. Maybe you want just to see if the window is there and if not start a Subroutine to do something.

 

' "V" - Flag - on not found Gosub

STW.ctw|PBWindowClass:0|BCS|1

' This button is not found

' so we try anotehr one in the subprogram

SCW.ctVw|Button|InstaX|Sub|0

' Move Mouse to the Install Button

MMV.

ENR.

'-----------------------------------------------------------

' This Subprogram will be called if the window is not found

:Sub

' Try another button

SCW.ct|Button|Install

MLC.

RET.

 

The script above will try to locate the "BCS - Testform" and if its not yet started, it will be started and localized.

 

 

 

 

Short Examples:

 

' Code example for "V"-Flag (on not found GoSub)

STW.ct|TaiMain.UnicodeClass|MiniRobot.sh6 - HelpMaker 7.3.40.0

SCW.wSctV|0|TPanelx|{&NOTEXT:}|notf

MBX.#hwn#

ENR.

 

:notf

MBX.did not find this one!

RET.

 

 

 

Example

 

-

 

 

 

Remarks

 

In case you use the "o-Flag, together with the "V" -Flag ("on not Found Gosub"), the "V"-Flag will be ignored. The "o"-Flag has a generally higher priority.

 

 

 

Limitations:

 

 

 

 

See also:

 

    1. STW. - Decription

    SCW - Search-Child-Window

    "g" - Flag - SCW.

    "o" - Flag - SCW.

    "w" - Flag - SCW.