klyn.gui.windows.Window.simulateMouseClick
method

    public simulateMouseClick(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 full native mouse click.

For context menus, prefer `simulateMousePressed(..., 3)` before taking a capture so the menu remains open exactly like a real right-click press.

    win.simulateMouseClick(120, 80)