Divooka Reference

Desktop Window

15 nodes

On this page 15

Make Desktop Window

Function

A window somewhere on the desktop, and which process owns it.

Signature
DesktopWindow -> Desktop Window
    Handle: IntPtr
    Title: Text
    ProcessId: Integer
    ProcessName: Text
    Bounds: Screen Rectangle
    DisplayState: Window Display State
DesktopWindow DesktopWindow(
    nint Handle,
    string Title,
    int ProcessId,
    string ProcessName,
    ScreenRectangle Bounds,
    WindowDisplayState DisplayState)

Parameters

nametypedefaultdescription
HandleIntPtr—The platform's identifier: an HWND on Windows, an X11 window id, a CGWindowID.
TitleText—The window's title bar text. Empty where the platform will not report it.
ProcessIdInteger—The owning process, or 0 where unknown.
ProcessNameText—The owning process's name without extension, or empty where unknown.
BoundsScreen Rectangle—Where it sits, in virtual-desktop coordinates. A window's bounds are not where it will reappear: Windows parks one at (-32000, -32000) with the size of its title bar, which is what enumeration observes and reports. Restore it first if the bounds matter.
DisplayStateWindow Display State—Minimised, maximised or ordinary.

Returns

resultDesktop Window
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Deconstruct

Function

This node carries no documentation.

Signature
Deconstruct(Desktop Window: Desktop Window) -> (Handle: IntPtr, Title: Text, ProcessId: Integer, ProcessName: Text, Bounds: Screen Rectangle, DisplayState: Window Display State)
void Deconstruct(
    DesktopWindow Desktop Window,
    out nint Handle,
    out string Title,
    out int ProcessId,
    out string ProcessName,
    out ScreenRectangle Bounds,
    out WindowDisplayState DisplayState)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

HandleIntPtr
TitleText
ProcessIdInteger
ProcessNameText
BoundsScreen Rectangle
DisplayStateWindow Display State
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Equals

Function

This node carries no documentation.

Overload 1 of 2

Signature
Equals(Desktop Window: Desktop Window, obj: Any) -> Truth
bool Equals(DesktopWindow Desktop Window, object obj)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—
objAny—

Returns

resultTruth

Overload 2 of 2

Signature
Equals -> Truth
    Desktop Window: Desktop Window
    other: Desktop Window
bool Equals(DesktopWindow Desktop Window, DesktopWindow other)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—
otherDesktop Window—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Bounds

Function

Where it sits, in virtual-desktop coordinates. A window's bounds are not where it
will reappear: Windows parks one at (-32000, -32000) with the size of its title bar, which is what
enumeration observes and reports. Restore it first if the bounds matter.

Signature
Bounds(Desktop Window: Desktop Window) -> Screen Rectangle
ScreenRectangle Bounds(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultScreen Rectangle
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Display State

Function

Minimised, maximised or ordinary.

Signature
DisplayState(Desktop Window: Desktop Window) -> Window Display State
WindowDisplayState DisplayState(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultWindow Display State
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Exists

Function

False for DesktopWindow.None. A caller checks this rather than comparing handles to zero.

Signature
Exists(Desktop Window: Desktop Window) -> Truth
bool Exists(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Handle

Function

The platform's identifier: an HWND on Windows, an X11 window id, a CGWindowID.

Signature
Handle(Desktop Window: Desktop Window) -> IntPtr
nint Handle(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultIntPtr
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Process Id

Function

The owning process, or 0 where unknown.

Signature
ProcessId(Desktop Window: Desktop Window) -> Integer
int ProcessId(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Process Name

Function

The owning process's name without extension, or empty where unknown.

Signature
ProcessName(Desktop Window: Desktop Window) -> Text
string ProcessName(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Title

Function

The window's title bar text. Empty where the platform will not report it.

Signature
Title(Desktop Window: Desktop Window) -> Text
string Title(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Get Hash Code

Function

This node carries no documentation.

Signature
GetHashCode(Desktop Window: Desktop Window) -> Integer
int GetHashCode(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultInteger
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

To String

Function

Reads as a window rather than as a record's field list, for a log line or a status bar.

Signature
ToString(Desktop Window: Desktop Window) -> Text
string ToString(DesktopWindow Desktop Window)

Parameters

nametypedefaultdescription
Desktop WindowDesktop Window—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Events Routine StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

None

Function

No window: what "nothing is in front" and "nothing matched" both report.

Signature
None() -> Desktop Window
DesktopWindow None()

Returns

resultDesktop Window
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Op Equality

Function

This node carries no documentation.

Signature
op_Equality -> Truth
    left: Desktop Window
    right: Desktop Window
bool op_Equality(DesktopWindow left, DesktopWindow right)

Parameters

nametypedefaultdescription
leftDesktop Window—
rightDesktop Window—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation

Op Inequality

Function

This node carries no documentation.

Signature
op_Inequality -> Truth
    left: Desktop Window
    right: Desktop Window
bool op_Inequality(DesktopWindow left, DesktopWindow right)

Parameters

nametypedefaultdescription
leftDesktop Window—
rightDesktop Window—

Returns

resultTruth
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Desktop Window
Package
Desktop Automation