sendDuiMouseButton
Client
Presses or releases a mouse button over a dui's page.
bool sendDuiMouseButton(dui dui, int x, int y [, string button = left, bool down = true])
Parameters
| Name | Type | Description |
|---|---|---|
| dui | dui | The dui. |
| x | int | Position on the page, in pixels from its top-left corner. |
| y | int | Position on the page, in pixels from its top-left corner. |
| button | string | "left", "middle" or "right". Any other value counts as "left".default left |
| down | bool | true presses, false releases.default true |
Returns
true if it was sent. false with an argument that is not a dui (logs a warning).
Example
local dui = createDui("https://example.com", 800, 600)
sendDuiMouseButton(dui, 400, 300, "left", true)
sendDuiMouseButton(dui, 400, 300, "left", false)