InjectBrowserMouseMove

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This function injects a mouse movement.

Syntax

bool injectBrowserMouseMove ( browser webBrowser, int posX, int posY )

OOP Syntax Help! I don't understand this!

Method: browser:injectMouseMove(...)


Required arguments

  • webBrowser: The browser which will retrieve the mouse movement
  • posX: Absolute X screen coordinate
  • posY: Absolute Y screen coordinate

Returns

Returns true if the movement was injected successfully, false otherwise.

Example

addEventHandler("onClientCursorMove", root,
    function (relativeX, relativeY, absoluteX, absoluteY)
        injectBrowserMouseMove(browser, absoluteX, absoluteY)
    end
)

See also