HU/injectBrowserMouseWheel: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
===Kötelező argumentumok=== | ===Kötelező argumentumok=== | ||
*'''webBrowser:''' | *'''webBrowser:''' a webböngésző | ||
*'''verticalScroll''': Amount of units you want the browser to scroll along the Y-axe. | *'''verticalScroll''': Amount of units you want the browser to scroll along the Y-axe. | ||
*'''horizontalScroll''': Amount of units you want the browser to scroll along the X-axe. | *'''horizontalScroll''': Amount of units you want the browser to scroll along the X-axe. |
Revision as of 15:48, 11 August 2018
This function injects mouse wheel events.
Szintaxis
bool injectBrowserMouseWheel ( browser webBrowser, int verticalScroll, int horizontalScroll )
OOP Syntax Help! I don't understand this!
- Method: browser:injectMouseWheel(...)
- Counterpart: injectBrowserMouseWheel
Kötelező argumentumok
- webBrowser: a webböngésző
- verticalScroll: Amount of units you want the browser to scroll along the Y-axe.
- horizontalScroll: Amount of units you want the browser to scroll along the X-axe.
Visszaadott érték
Returns true if the mouse action was successfully injected, false otherwise.
Példa
local webBrowser = createBrowser(1000, 1000, false, false) showCursor(true) function webBrowserRender() dxDrawImage(0, 0, 1000, 1000, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "https://www.youtube.com/tv#/watch?mode=transport&v=jofNR_WkoCE") addEventHandler("onClientRender", root, webBrowserRender) addEventHandler("onClientKey", root, onKey) end ) function onKey(button) if button == "mouse_wheel_down" then injectBrowserMouseWheel(webBrowser, -40, 0) elseif button == "mouse_wheel_up" then injectBrowserMouseWheel(webBrowser, 40, 0) end end
Lásd még
- HU/canBrowserNavigateBack
- HU/canBrowserNavigateForward
- HU/createBrowser
- HU/executeBrowserJavascript
- HU/focusBrowser
- HU/getBrowserProperty
- HU/getBrowserSettings
- HU/getBrowserSource
- HU/getBrowserTitle
- HU/getBrowserURL
- HU/injectBrowserMouseDown
- HU/injectBrowserMouseMove
- HU/injectBrowserMouseUp
- HU/injectBrowserMouseWheel
- HU/isBrowserDomainBlocked
- HU/isBrowserFocused
- HU/isBrowserLoading
- HU/loadBrowserURL
- HU/navigateBrowserBack
- HU/navigateBrowserForward
- HU/reloadBrowserPage
- HU/requestBrowserDomains
- HU/resizeBrowser
- HU/setBrowserAjaxHandler
- HU/setBrowserProperty
- HU/setBrowserRenderingPaused
- HU/setBrowserVolume
- HU/toggleBrowserDevTools
GUI Függvények
Fordította
- Surge