Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

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

Window Operations * ITW. / NTW.

"X" - Flag "run without error"

Previous Top Next


MiniRobotLanguage (MRL)

 

"X" - Flag "run without error"

If Top Window

 

 

Intention

 

If the window you are looking for is not found within the specified waiting time, several things can happen. Normally you will just get an error-message. If you do not want to get an error, but just have the script continue running, use the "X"-Flag.

 

You can use the #tio# 3.1 Systemvariables to check if the window was found or not. Also you can use the "V","W","g" and "o" Flags to react inside the ITW.

 

For example in such a script:

 

ITW.cXg|WindowClass|found

MMV.

EIF.

:found

MPO.

 

This script will invert the normal behavior of ITW. It will continue running in case of the window is not found. And in case the window is found, it will jump to the Label "found".

 

 

 

Example

 

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

' "X"-Flag Sample 1

' Run only if its not yet running ...

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

'

' Run application only if the window is not found

'

' t - text (caption of the window)

'

NTW.tw|BCS

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

EIF.

MBX.Ready

ENR.

 

 

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

' "X"-Flag Sample 2

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

'#EXE:?pfad\

'#SPI:ForceWrite

'

' Start an Application only, if that Application is not

' yet running.

'

' We use ITW here to test if the Application is already running

' in that case we jump over the EXE-command and contine.

' We use the following flags:

' w ... 0 - Set waiting time to 0 seconds

' t ... "BCS - Testform" - this is the caption text of the window

'  we search for

'

ITW.wt|0|BCS - Testform

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

EIF.

 

' Now we can use the Application and press Buttons

ITW.wt|0|BCS - Testform

SCW.nctb|1|Button|Next|0

' Compatible Button Click

MLC.

EIF.

 

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

ENR.

 

 

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

 

 

See also:

 

    "g" - Flag - ITW.

    "o" - Flag - ITW.

    "w" - Flag - ITW.

    "V" - Flag - ITW.