<< Click to Display Table of Contents >> Navigation: 3. Script Language > PDC. - Private Desktop Commands > PDC. - Private Desktop Commands |
MiniRobotLanguage (MRL)
PDC.Close Desktop
Used to destroy a private Desktop and all programs running on that PD (Hidden Desktop)
Intention
Generally we do not recommend to use this command, unless you have reasons to remove the PD.
In any normal use, you can just leave the PD, it will be removed at the next reboot anyway.
Desktops can not be closed if there are programs running.
Therefore the command will try to close all programs on that Desktop.
Using this command will close all Programs running on a "Private Desktop" without further notice.
Even then, it may not be possible to close a "Private Desktop".
Using this Command may close a"private Desktop" (PD) if possible.
If not, a "empty Desktop" without anything will remain until the next reboot of the PC.
For more Details on "Private Desktops" (PD) see here: PDC - General Information.
To create and destroy a PD you can simply type:
PDC.Create Desktop with Explorer|Desktop-1
MBX.Private Desktop created
PDC.close desktop|Desktop-1
MBX.Private Desktop destroyed
ENR.
The changes will be visible in the SPR-Editor's "Desktop Inspector".
Important:
When trying to close a PD, the Skript will need to switch to this PD and then close all Processes that are connected to the PD!
This command may have therefore unexpected side-effects! Also the Screen may flicker.
Under special circumstances this comamnd may also close programs that run on another desktop.
Windows itself provides two Standard-Desktops, these are:
Default
Winlogon
neither of these can be closed.
Syntax:
PDC.Close Desktop|P1
PDC.CDL|P1
Parameter Explanation:
P1 - The name of the private Desktop that shall be closed.
Example:
'----------------------------------------
'
PDC.Create Desktop with Explorer|Desktop-1
MBX.Private Desktop created
PDC.close desktop|Desktop-1
MBX.Private Desktop destroyed
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 or destroy 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