2013-07-14 10:45:01 +02:00
|
|
|
XInputSimulator
|
|
|
|
===============
|
|
|
|
|
2013-07-14 11:07:05 +02:00
|
|
|
Cross (X) Plattform (Linux/Mac/Win) Simulator for input devices to simulate mouse moves/clicks/scrolls or keyboard keystrokes.
|
2013-07-14 14:40:09 +02:00
|
|
|
####How to use
|
2013-07-14 14:35:32 +02:00
|
|
|
For a detailed example see main.cpp
|
2013-07-14 14:40:09 +02:00
|
|
|
```cpp
|
2013-07-14 17:06:35 +02:00
|
|
|
sim.mouseMoveTo(500,400); //set mouse to screen cords 500x400
|
|
|
|
sim.mouseMoveRelative(400, -100); //move frome there 400px in x to the right and -100px in y upwards
|
|
|
|
sim.mouseDown(1); //press left mouse and hold
|
|
|
|
sim.mouseMoveRelative(0, 300); //drag/mark with pressed mousebutton 300px down
|
|
|
|
sim.mouseUp(1); //release the mousebutton press
|
2013-07-14 14:40:09 +02:00
|
|
|
```
|
2013-07-14 14:32:44 +02:00
|
|
|
This program is published under the terms of the LGPL (http://www.gnu.org/licenses/)
|