Window Operations * SCW.

<< Click to Display Table of Contents >>

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

Window Operations * SCW.

"c" - Flag "class"

Previous Top Next


MiniRobotLanguage (MRL)

 

"c"-Flag "class"

Search Child Window

 

 

Intention

 

Child-Window-Class" value. This is the "window class" of the child-window (button,control etc.)  we are looking for. Some typical window classes for child-windows are:

 

    button                 (button or checkmark)

    edit                     (editable text)

    static                   (static text)      

    systabcontrol32   (Tab-Control)

    systreeview32      (Tree-Control)

 

But there are many more, see example below.

 

This flag needs a parameter. It uses the 1.4. The Prototype Parameter System.

As all text-parameters, the "class" parameter supports the 3.2 Standard-Search Pattern .

Therefore you do not always need to type the whole class string.

Its enough to give a unique part of the value. By default the value is not case sensitive.

 

How do you get the window-class?

 

If you drive with the mouse over the button or control, then you can see the class as well as other informations about the control in the "windows inspector". See example picture below. The Inspector is integrated in the MR-Editor. Possibly you need to switch the "windows inspector" on before he appears at the bottom of the Editor..

 

graphic

 

 

Use the class flag most often together with other flags, like the "t"-flag, to locate the Child-Window of your choice.

 

STW.c|WindowClass

SCW.ct|Button|Ok

MMV.

 

 

 

 

Short Examples:

 

SCW.ct|button|Cancel|0

 

 

 

 

Example

 

' c - class

' n - number

' t - text

 STW.ct|Tai0470.UnicodeClass|Power Editor

 SCW.nct|1|TPanel|{&NOTEXT:}

 SCW.nct|1|TeePageControl|{&NOTEXT:}

 SCW.nct|1|TeeTabSheet|{&NOTEXT:}

 SCW.nct|2|TPanel|{&NOTEXT:}

 SCW.nct|1|TAdvGlowButton|Apply

 MLE.

 

 

Remarks

 

-

 

 

Limitations:

 

 

 

 

See also:

 

    SCW - Search-Child-Window

    1.4. The Prototype Parameter System

    3.2 Standard-Search Pattern

    "t" - Flag - SCW.