<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > ITW. - If Top Window > Window Operations * ITW. / NTW. |
MiniRobotLanguage (MRL)
"p" - Flag "Process ID"
If Top Window
Intention
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:
ITW.c|pbwind
: §§PID=#pid#
EIF.
or use:
ITW.c|pbwind
HTV.§§PID
EIF.
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::
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.
'
ITW.ch|pbwind|580
MMV.
EIF.
Example
' Locate window only by PID
ITW.p|580
MMV.
EIF.
ENR.
Remarks
-
Limitations:
-
See also:
• GPI. - Get Process Information
• IEP. / NEP. - If-Exists-Process
• WPT. - Wait-Process-Termination