hammerspoon2-docs
    Preparing search index...

    Function getRelativePosition

    • Returns the mouse pointer position relative to the screen it is currently on. The returned coordinates have (0, 0) at the top-left corner of the screen that the cursor is on.

      Returns Record<string, number> | null

      An object with x and y number properties, or null if no screen can be determined.