Simulate keyboard and mouse events https://github.com/lfairy/robot
|Latest on Hackage:||1.4|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
The Haskell Robot
Robot is a library for sending fake keyboard and mouse events using Haskell. Applications will respond as though the user performed the actions themselves.
Only X11 systems are supported right now, but Windows and Mac can be added later if anyone cares.
Here are some things you can do:
Test graphical interfaces and websites!
Play silly pranks on your friends!
Finally beat those silly Flash games where you press the same button over and over again really fast. I don't like those.
First, download and install the library:
git clone https://github.com/lfairy/robot.git cd robot cabal install
Now try running some of the programs in the
Backends for Mac OS X, Windows, and Wayland
Actions currently run instantaneously, which can be an issue for some applications. Perhaps add a small delay between each operation like Java does.