HU/injectBrowserMouseDown: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Client function hu}}
{{Client function hu}}
{{New feature/item|3.0150|1.5||
{{New feature/item|3.0150|1.5||
This function injects a mouse click (state: down).
Ez a function egy egérkattintást szimulál (állapot: down).
}}
}}


Line 16: Line 16:


===Visszaadott érték===
===Visszaadott érték===
Returns ''true'' if the click was successfully injected, ''false'' otherwise.
Visszatérési értéke ''true'', ha a klikk szimulálása sikeres volt, egyébként ''false'' .


==Példa==
==Példa==
Line 35: Line 35:


==Fordította==
==Fordította==
* '''''Surge'''''
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''''

Latest revision as of 13:07, 21 August 2018

Ez a function egy egérkattintást szimulál (állapot: 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

Visszatérési értéke true, ha a klikk szimulálása sikeres volt, egyébként false .

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