<< Click to Display Table of Contents >> Navigation: 3. Script Language > PDC. - Private Desktop Commands > PDC. - Private Desktop Commands |
MiniRobotLanguage (MRL)
PDC.Create Desktop no Explorer
Used to create a private Desktop (Hidden Desktop)
Intention
This Command will create e a new "private Desktop" (PD) without running the windows Explorer on this new desktop.
It only makes sense, to start a Program on that PD, immediately after its creation.
.
For more Details on "Private Desktops" (PD) see here: PDC - General Information.
Here is a Sample-Script.
VAR.$$PRO=?progs\Smart Package Robot\Desktops_Manager.exe
PDC.Create Desktop no Explorer|DTA
PDC.Run on Desktop WFI|DTA|$$PRO
PDC.Switch to Desktop|DTA
PAU.5
PDC.Goto Default
PDC.Close Desktop|DTA
MBX.!
ENR.
The result will be visible in the SPR-Editor's "Desktop Inspector".
Important:
PD's that are created without an "Explorer" may automatically close after the Script (and otehr Tasks running there) have ended!
Therefore they will only be visible as long as the Script is running.
Syntax:
PDC.Create Desktop no Explorer|P1
PDC.CDN|P1
Parameter Explanation:
P1 - The name of the new private Desktop.
Example:
'----------------------------------------
'
VAR.$$PRO=?progs\Smart Package Robot\Desktops_Manager.exe
PDC.Create Desktop no Explorer|DTA
PDC.Run on Desktop WFI|DTA|$$PRO
PDC.Switch to Desktop|DTA
PAU.5
PDC.Goto Default
PDC.Close Desktop|DTA
MBX.!
END.
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 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