mouse_automation
A winapi wrapper that provides easy mouse automation. Can be used from a variety of languages.
Installation
Rust
Add this to the toml file:
[]
= "0.1.1"
Example:
extern crate mouse_automation;
Functionality
Moving the mouse
mouse_automation.move_mouse;
Third parameter should be true for asbolute movement, and false for relative.
Simulating a click
mouse_automation.LEFT.down;
mouse_automation.LEFT.up;
mouse_automation.RIGHT.down;
mouse_automation.RIGHT.up;
mouse_automation.MIDDLE.down;
mouse_automation.MIDDLE.up;
Two commands are needed to simulate a click, the first sends a down event, and the second an up event.
Wheel scrolling
mouse_automation.wheel;
The sign of the parameter indicates the direction of the scrolling.