InjectBrowserMouseUp: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 19: Line 19:


==Example==
==Example==
Todo
<syntaxhighlight lang="lua">addEventHandler("onClientClick", root,
function(button, state)
if state == "down" then
injectBrowserMouseDown(browser, button)
else
injectBrowserMouseUp(browser, button)
end
end
end</syntaxhighlight>


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

Revision as of 10:42, 13 April 2015

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

Syntax

bool injectBrowserMouseUp ( browser webBrowser, string mouseButton )

OOP Syntax Help! I don't understand this!

Method: browser:injectMouseUp(...)
Counterpart: injectBrowserMouseUp


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
end

See also