You can also simulate mouse clicks by using the MouseDown and MouseUp methods of the Desktop object or the MouseDown and MouseUp methods of the LLPlayer object.
The click, double-click and drag actions have an additional parameter that specifies the keys or a combination of keys ( Ctrl, Alt, Shift) that are pressed during simulating an event. HoverMouse - Simulates moving the mouse pointer to the specified position within an object.Įach of these actions have parameters that specify window-related coordinates of the event. To simulate clicks, double-clicks, dragging and hovering (hot-tracking) operations, each onscreen object and objects inherited from the onscreen object ( window, Win32ComboBox, Win32TreeView and others) contain special actions:Ĭlick, ClickR, ClickM - Simulates a single click performed with the left, right or middle mouse button.ĭblClick, DblClickR, DblClickM - Simulates a double-click performed with the left, right or middle mouse button.ĭrag, DragR, DragM - Simulates a dragging operation performed with the left, right or middle mouse button.