Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > ITW. - If Top Window >

Window Operations * ITW. / NTW.

"o" - Flag "on not found Goto"

Previous Top Next


MiniRobotLanguage (MRL)

 

"o" - Flag "on not found Goto"

If Top Window

 

 

Intention

 

If the window you are looking for is not found within the specified waiting time, normally you will end up with an error-message.

 

Maybe you want just to jump at another place in the script the, and start a program. Or react in another way. That is where the "o" Flag enters the game. The script just continues. The window is not found and we tell the robot to jump to a Label in that case.

 

Take this example:

 

' Run application only if the window is not found

'

' 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

ITW.toXw|BCS|GoOn|0

GTO.weit

EIF.

 

:GoOn

EXE.?exepfad\Sample Apps\BSC-Testform.exe

 

: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.

 

 

 

 

Example

 

' Run application only if the window is not found

'

' 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

'

ITW.toX|BCS|GoOn

GTO.weit

EIF.

 

:GoOn

EXE.?exepfad\Sample Apps\BSC-Testform.exe

 

:weit

 

MBX.Ready

ENR.

 

 

 

 

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:

 

    "W" - Flag - ITW.

    "g" - Flag - ITW.

    "V" - Flag - ITW.

    "X" - Flag - ITW.