klyn.gui.windows.Window.simulateMousePressed
method
public native simulateMousePressed(x as Int, y as Int, button as Int = 1, alt as Boolean = false, control as Boolean = false, shift as Boolean = false) as Void
Description

Simulates a native mouse press routed through the window hit-testing pipeline.

This is intended for GUI validation and screenshot scripts. It uses the same coordinates and button numbering as MouseEvent: 1 for left, 2 for middle and 3 for right.

Parameters
ParameterDescription
xX coordinate in window client coordinates.
yY coordinate in window client coordinates.
buttonMouse button to simulate.
Example
win.simulateMousePressed(80, 220, 3)  # right click