Simulate keyboard and mouse events

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 to host generated Haddocks.

OtherLicense licensed by Chris Wong

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:

Quick start

First, download and install the library:

git clone
cd robot
cabal install

Now try running some of the programs in the examples directory.


  • Backends for Mac OS X, Windows, and Wayland

  • Screenshots

  • Actions currently run instantaneously, which can be an issue for some applications. Perhaps add a small delay between each operation like Java does.

Depends on 5 packages:
Used by 1 package:
comments powered byDisqus