HU/injectBrowserMouseDown: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Client function}}
{{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).
This function injects a mouse click (state: down).
}}
}}


==Syntax==
==Szintaxis==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
bool injectBrowserMouseDown ( browser webBrowser, string mouseButton )
bool injectBrowserMouseDown ( browser webBrowser, string mouseButton )
Line 11: Line 11:
{{OOP||[[Element/Browser|browser]]:injectMouseDown}}
{{OOP||[[Element/Browser|browser]]:injectMouseDown}}


===Required arguments===
===Kötelező argumentumok===
*'''webBrowser:''' The web browser
*'''webBrowser:''' The web browser
*'''mouseButton:''' The mouse button (Possible values: ''left'', ''middle'', ''right'')
*'''mouseButton:''' The mouse button (Possible values: ''left'', ''middle'', ''right'')


===Returns===
===Visszaadott érték===
Returns ''true'' if the click was successfully injected, ''false'' otherwise.
Returns ''true'' if the click was successfully injected, ''false'' otherwise.


==Example==
==Példa==
<syntaxhighlight lang="lua">addEventHandler("onClientClick", root,
<syntaxhighlight lang="lua">addEventHandler("onClientClick", root,
function(button, state)
function(button, state)
Line 29: Line 29:
</syntaxhighlight>
</syntaxhighlight>


==See also==
==Lásd még==
{{CEF_functions hu}}
{{CEF_functions hu}}


[[en:injectBrowserMouseDown]]
[[en:injectBrowserMouseDown]]
==Fordította==
* Surge

Revision as of 17:15, 10 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: The web browser
  • mouseButton: The mouse button (Possible values: 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