I'm interested in writing a program that takes control of keyboard and mouse in much the same way that one can with java.awt.Robot. I assume of course that there's no way to do this with standard libraries. Does anyone know of a good library I can connect to by means of FFI to achieve something like this?
I don't have any relevant experience, sorry. My first thought would be to look at other UI libraries, such as GTK,
It looks like this may be already exported to Haskell via gtk2hs. If you know how to use the C foreign function interface, the XTest extension library seems to have what you want. ( http://www.x.org/releases/X11R7.6/doc/libXtst/xtestlib.html ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With