system.vision.getCurrentDesktop
This function replaces system.gui.getCurrentDesktop. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Returns the handle of the desktop this function was called from. Commonly used with the system.vision.desktop function.
If you have already created a reference to your desktop in a script, you can use the VisionUtilities wrapper class instance method getHandle() instead. Note that you may have to repeat the desktop handle when using this method.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.getCurrentDesktop()
Parametersβ
Nothing
Returnsβ
String - The handle of the current desktop.
Scopeβ
Vision Client
Code Exampleβ
# Shows the desktop's handle in a message box.
system.vision.showMessage("This desktop's handle is: %s" % system.vision.getCurrentDesktop())