Window Operations * SCW.

<< Click to Display Table of Contents >>

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

Window Operations * SCW.

"o" - Flag "on not found Goto"

Previous Top Next


MiniRobotLanguage (MRL)

 

"o"-Flag "on not found Goto"

Search Child Window

 

 

Intention

 

If the child-window (button, control etc.) is not found within the specified waiting time, normally you will end up with an error-message and the script will stop.

 

Maybe you want something else.

Using the "o"-Flag you can avoid the error and instead  jump to another place in the script.

Using the "o"-Flag, the script just continues in that case. The window is not found and we tell the robot to jump to a Label in that case.

 

Take this example:

 

' t - text (caption of the window)

' o - goto Label "GoOn" if the window was NOT found

' X - continue the script as normal, without error,

'     if the window is not found

STW.t|BCS

SCW.toXw|Next|GoOn|0

GTO.weit

 

:GoOn

MBS: The Next Button was not found!

 

:weit

 

MBX.Ready

ENR.

 

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.

 

 

Short Examples:

 

' t - text (caption of the window)

' o - goto Label "GoOn" if the window was NOT found

' X - continue the script as normal, without error,

'     if the window is not found

STW.t|BCS

SCW.toXw|Next|GoOn|0

GTO.weit

 

:GoOn

MBS: The Next Button was not found!

 

:weit

 

MBX.Ready

ENR.

 

 

 

 

 

 

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.

    "w" - Flag - SCW.

    "V" - Flag - SCW.