Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

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

Window Operations * ITW. / NTW.

"u" - Flag "invisible"

Previous Top Next


MiniRobotLanguage (MRL)

 

"u" - Flag "invisible"

If Top Window

 

 

Intention

 

To ignore invisible windows is one of the default settings of the ITW. command. Therefore if you want to search for a window that has is invisible, you will need the "u"-flag.

 

The "u"-Flag will override the default behavior. It will make ITW. to ignore visible windows and look for invisible windows, only.

 

If you want to catch both, the "a"-flag is what you need.

 

However the "a"->Flag will automatically also enable the search for disabled windows. If you do not want that, just add a prototype "e" after the "a". As the prototype on the right has a higher priority, you get exactly what you want this way.

 

In the same way, you can use the "u" - flag together with the "a" to search only windows that are invisible. No matter if they are enabled or not.

 

Lets take a look, on this. This will search only for invisible windows.

 

ITW.cu|WindowClass

MMV.

EIF.

 

Now we would like to search for windows which are visible, as well as for invisible windows. We can do that in two ways.The first way is like this:

 

ITW.cuv|WindowClass

MMV.

EIF.

 

The robot understands that we want visible and invisible windows. If we just give all two prototypes. But there is another way to do it. We can do this:

 

ITW.cae|WindowClass

MMV.

EIF.

 

The "a" Flag says "search all windows", enabled, disabled, visible and invisible. Now we just need to tell the robot that we do not want to get the disabled windows. We do this by adding the "e"-Flag after the "a". In this case the "e"-Flag will override the "a"-Flag. And tell the robot "we just want visible windows.".

 

 

 

 

Example

 

CAW.PBWindowClass:0|BCS - Testform

'

' Start an Application only,

' if that Application is not yet running.

'

ITW.wtUX|0|BCS - Testform|found

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

:found

EIF.

ITW.p|#pid#

' Next we make the window invisible

SWS.i

' Wait half of a second

PAU.2.5

EIF.

' We locate it even though its invisible

ITW.wtu|1|BCS - Testform

' and make it visible again

SWS.v

EIF.

ENR.

 

 

 

Remarks

 

 

 

 

Limitations:

 

 

 

 

See also:

 

    "e" - Flag - ITW.

    "f" - Flag - ITW.

    "a" - Flag - ITW.

    "v" - Flag - ITW.

    1.8. Selecting the Application (Topwindow)