<< Click to Display Table of Contents >> Navigation: 3. Script Language > PDC. - Private Desktop Commands > PDC. - Private Desktop Commands |
MiniRobotLanguage (MRL)
PDC.Switch to Desktop
Used to switch the View to a private Desktop (Hidden Desktop)
Intention
This Command will switch the View to a "private Desktop" (PD).
This way you can see whatever happens on that PD.
IMPORTANT:
Even if you Switch the View to a PD, all Robot-Commands will be executed on the Desktop where the Robot was originally started. This command does only switch the View.
For more Details on "Private Desktops" (PD) see here: PDC - General Information.
To just create a PD and Switch there you can simply type:
PDC.Create Desktop no Explorer|Desktop-1
PDC.Switch to Dektop|Desktop-1
PAU.2
PDC.Goto Default
ENR.
Here is another example that will switch to and back from a new created Desktop.
PDC.Create Desktop with Explorer|DTF
PDC.Switch to Desktop|DTF
PRR.0|DTF
MBX.I am on the DTF-Desktop
PDC.Goto Default
PRE.
MBX.End the Script
ENR.
Syntax:
PDC.Switch Desktop|P1
PDC.swd|P1
Parameter Explanation:
P1 - The name of the private Desktop.
Example:
'-----------------------------------------
' This Script will creat e Desktop and start a
' new Script on that Desktop using the PRR.-Command
'
PDC.Create Desktop with Explorer|DTF
PDC.Switch to Desktop|DTF
PRR.0|DTF
MBX.I am on the DTF-Desktop
PDC.Goto Default
PRE.
MBX.End the Script
ENR.
Remarks:
This feature is currently experimental, therefore not all features of the SPR and the SPR-Editor may work as expected on private Desktops. To create a private Desktop, the Executable needs Admin-Rights.
Limitations:
This Feature may require Windows Vista or higher.
See also:
• 2.1.5 '#HID: - Hidden Desktop Scripts
• ICD./NCD. - If/Not Current Desktop
• IPD./NPD. - If/Not Private Desktop
• PDC.Create Desktop no Explorer
• PDC.Create Desktop with Explorer
• PDC.Get current Desktop Name
• 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