The OpenD Programming Language

SyntheticInput.pressMouseButton

Sends a fake mouse button press or release event.

Please note you need to call flushGui or return to the event loop for this to actually be sent on X11.

pressed param must be true if button is wheelUp or wheelDown.

struct SyntheticInput
void
pressMouseButton
(,
bool pressed
,
int delay = 0
)

Bugs

The delay parameter is not implemented yet on Windows.

The backButton and forwardButton will throw NotYetImplementedException on Windows.

All arguments will throw NotYetImplementedException on OSX Cocoa.

Meta