HU/injectBrowserMouseDown: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 35: Line 35:


==Fordította==
==Fordította==
* Surge
* '''''Surge'''''

Revision as of 10:28, 11 August 2018

This function injects a mouse click (state: down).

Szintaxis

bool injectBrowserMouseDown ( browser webBrowser, string mouseButton )

OOP Syntax Help! I don't understand this!

Method: browser:injectMouseDown(...)


Kötelező argumentumok

  • webBrowser: A webböngésző
  • mouseButton: Az egérgomb (Lehetséges értékek: left, middle, right)

Visszaadott érték

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

Példa

addEventHandler("onClientClick", root,
	function(button, state)
	if state == "down" then
		injectBrowserMouseDown(browser, button)
	else
		injectBrowserMouseUp(browser, button)
	end 
end)

Lásd még

GUI Függvények

Fordította

  • Surge