Description
Use the Sys.Desktop property to get the Desktop object that corresponds to the PC’s desktop.
Declaration
Applies To
The property is applied to the following object:
Property Value
The Desktop object that represents the desktop.
Example
The following example gets the currently active window and posts its screenshot and full name to the test log:
JavaScript, JScript
function Test()
{
  var w = Sys.Desktop.ActiveWindow();
  Log.Picture(w, "Active window", w.FullName);
}
Python
def Test():
  w = Sys.Desktop.ActiveWindow()
  Log.Picture(w, "Active window", w.FullName)VBScript
Sub Test
  Dim w
  Set w = Sys.Desktop.ActiveWindow
  Call Log.Picture(w, "Active window", w.FullName)
End Sub
DelphiScript
procedure Test;
var w;
begin
  w := Sys.Desktop.ActiveWindow;
  Log.Picture(w, 'Active window', w.FullName);
end;
C++Script, C#Script
function Test()
{
  var w = Sys["Desktop"]["ActiveWindow"]();
  Log["Picture"](w, "Active window", w["FullName"]);
}
