Click or drag to resize

DesktopSystemgetMousePosition Method

Returns the mouse in virtual screen coordinates (left, top).

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 17.5.1
Syntax
C#
public void getMousePosition(
	AckCallback callback,
	AckCallback errorCallback = null
)

Parameters

callback
Type: Openfin.DesktopAckCallback
A function that is called and passed an object containing the position of the mouse.
errorCallback (Optional)
Type: Openfin.DesktopAckCallback
(Optional) A function that is called if the method fails. The reason for failure is passed as an argument.
Remarks
The returned object takes the form: { top: (integer) the top position of the mouse in virtual screen coordinates, left: (integer) the left position of the mouse in virtual screen coordinates }
See Also