HU/injectBrowserMouseDown: Difference between revisions

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


==See also==
==See also==
{{CEF_functions}}
{{CEF_functions hu}}


[[en:injectBrowserMouseDown]]
[[en:injectBrowserMouseDown]]

Revision as of 17:13, 10 August 2018

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

Syntax

bool injectBrowserMouseDown ( browser webBrowser, string mouseButton )

OOP Syntax Help! I don't understand this!

Method: browser:injectMouseDown(...)


Required arguments

  • webBrowser: The web browser
  • mouseButton: The mouse button (Possible values: left, middle, right)

Returns

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

Example

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

See also

GUI Függvények