<< Click to Display Table of Contents >> Navigation: 3. Script Language > PDC. - Private Desktop Commands > PDC. - Private Desktop Commands |
MiniRobotLanguage (MRL)
ICD./NCD. - If/Not Current Desktop
Used to verify if the current Script runs on the specified Desktop or not
Intention
This Command will find out, if the running Script runs on the specified "private Desktop" (PD) or not.
For more Details on "Private Desktops" (PD) see here: PDC - General Information.
Usage is easy. You can just check whether your runs on that PD or not.
ICD.DTB
MBX.Running on DTB.
ELS.
MBX.Not running on DTB.
EIF.
Its possible to specify more then one Desktop-name (no limit).
In this case "OR" logic is applied. If the Script runs on "any of" these Desktops,
the condition evaluates to true for ICD. and to false for NCD.
' Test if the Script runs whether on Desktop "DTA" or "DTB" or on "Default"
ICD.DTA,DTB,Default
MBX.Running on DTB.
ELS.
MBX.Not running on DTB.
EIF.
Windows itself provides two Standard-Desktops, these are:
Default
Winlogon
Important:
Even if you Switch to a PD, all Robot-Commands will still be executed on the Desktop where the Robot was originally started. See below for an example on how to start a Script on a PD.
Syntax:
ICD.[P1][,P2][,Px]
NCD.[P1][,P2][,Px]
Parameter Explanation:
P1 - The name of the private Desktop that we want to check for..
Example:
'----------------------------------------
' This script will create a PD
' and demonstrate the ICD.-Query on and not on
' the new desktop.
'
GSB.Test
PDC.Create Desktop no Explorer|DTB
PRR.0|DTB
GSB.Test
ENR.
PRE.
MBX.!
ENR.
'-----------------------------------------
:Test
ICD.DTB
MBX.Running on DTB.
ELS.
MBX.Not running on DTB.
EIF.
RET.
ENR.
Remarks:
-
Limitations:
This Feature may require Windows Vista or higher.
See also:
• IPD./NPD. - If/Not Private Desktop
• PDC.Create Desktop no Explorer
• PDC.Create Desktop with Explorer
• PDC.Get current Desktop Name
• 2.1.5 '#HID: - Hidden Desktop Scripts
• 2.1.4 '#EXV: - Execute on System Desktop
• HDC. - Hidden Desktop Control
• #ONCE / # OEND - Multiple Include Protection
• 2.1.8 '#INC: - Include Files and Folders into the Executable