Window Operations * SCW.

<< Click to Display Table of Contents >>

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

Window Operations * SCW.

"p" - Flag "Process ID"

Previous Top Next


MiniRobotLanguage (MRL)

 

"p" - Flag "Process ID"

Search Child Window

 

 

Intention

 

The "p"-flag ist mostly used with Top-Windows. Within a Top-window all child-windows have the same PID. You can however use it in very special cases for child-windows also.

 

Especially if you use the "T"-Flag, which does search through all windows (desktopwide).

 

You can localize a window safely, if you have the PID (Process ID) of the application behind that window.

 

Be sure that you have read and understood the chapter 1.7. Application and PID .

 

Hint: If you have localized a window, you also have the PID of the process behind that window in #pid#. You can save it for later use in a variable. Like this:

 

STW.c|pbwind

: §§PID=#pid#

 

or use:

 

STW.c|pbwind

HTV.§§PID

 

In both cases, you get the PID of that process into the local variable §§PID.

 

You can see the PID of a process  in the task-manager::

 

graphic

 

The PID value is a normal search parameter and can be used alone or together with other search parameters.

 

' Search a window from process with ID 3435

' and the given window class.

'

STW.ch|pbwind|580

MMV.

 

 

 

 

Short Examples:

 

' Locate window only by PID

STW.p|580

MMV.

 

ENR.

 

SCW.btc|250|Cancel|Button

 

 

 

 

 

Example

 

-

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    1. STW. - Decription

    SCW - Search-Child-Window

    "T" - Flag - SCW.