HU/injectBrowserMouseUp: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Client function hu}} {{New feature/item|3.0150|1.5|| This function injects a mouse click (state: up). }} ==Szintaxis== <syntaxhighlight lang="lua"> bool injectBr...")
 
Line 30: Line 30:


==Lásd még==
==Lásd még==
{{CEF_functions}}
{{CEF_functions_hu}}


[[en:injectBrowserMouseUp]]
[[en:injectBrowserMouseUp]]

Revision as of 10:31, 11 August 2018

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

Szintaxis

bool injectBrowserMouseUp ( browser webBrowser, string mouseButton )

OOP Syntax Help! I don't understand this!

Method: browser:injectMouseUp(...)


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