InjectBrowserMouseMove: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Link to the Romanian translation of this page added.)
Line 24: Line 24:
end  
end  
addEventHandler ( "onClientCursorMove" , root , onCursorMove )</syntaxhighlight>
addEventHandler ( "onClientCursorMove" , root , onCursorMove )</syntaxhighlight>
==See Also==
Todo


==See also==
==See also==
Line 32: Line 29:


[[hu:injectBrowserMouseMove]]
[[hu:injectBrowserMouseMove]]
[[RO:injectBrowserMouseMove]]

Revision as of 12:18, 8 April 2020

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

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

See also