InjectBrowserMouseDown: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 9: | Line 9: | ||
bool injectBrowserMouseDown ( browser webBrowser, string mouseButton ) | bool injectBrowserMouseDown ( browser webBrowser, string mouseButton ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[Element/Browser|browser]]:injectMouseDown | {{OOP||[[Element/Browser|browser]]:injectMouseDown}} | ||
===Required arguments=== | ===Required arguments=== | ||
Line 19: | Line 19: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">addEventHandler("onClientClick", root, | <syntaxhighlight lang="lua"> | ||
addEventHandler("onClientClick", root, | |||
function(button, state) | |||
if state == "down" then | |||
injectBrowserMouseDown(browser, button) | |||
else | |||
injectBrowserMouseUp(browser, button) | |||
end) | end | ||
end | |||
) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{CEF_functions}} | {{CEF_functions}} | ||
[[hu:injectBrowserMouseDown]] | |||
[[RO:injectBrowserMouseDown]] |
Latest revision as of 08:34, 20 April 2020
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
- canBrowserNavigateBack
- canBrowserNavigateForward
- createBrowser
- executeBrowserJavascript
- focusBrowser
- getBrowserProperty
- getBrowserSettings
- getBrowserSource
- getBrowserTitle
- getBrowserURL
- injectBrowserMouseDown
- injectBrowserMouseMove
- injectBrowserMouseUp
- injectBrowserMouseWheel
- isBrowserDomainBlocked
- isBrowserFocused
- isBrowserLoading
- isBrowserRenderingPaused
- loadBrowserURL
- navigateBrowserBack
- navigateBrowserForward
- reloadBrowserPage
- requestBrowserDomains
- resizeBrowser
- setBrowserAjaxHandler
- setBrowserProperty
- setBrowserRenderingPaused
- setBrowserVolume
- toggleBrowserDevTools