Tutorial: system.getMousePosition

system.getMousePosition

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

Example

fin.desktop.System.getMousePosition(function (mousePosition) {
    console.log("The mouse is located at left: " + mousePosition.left + ", top: " + mousePosition.top);
});

Mouse Position

//This response has the following shape:
{
    top: 264, //the top position of the mouse in virtual screen coordinates
    left: 692 //the left position of the mouse in virtual screen coordinates
}