Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haskell and java.awt.Robot

Tags:

haskell

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?

like image 392
Ara Vartanian Avatar asked Jul 07 '26 17:07

Ara Vartanian


1 Answers

I don't have any relevant experience, sorry. My first thought would be to look at other UI libraries, such as GTK,

  • http://developer.gnome.org/gdk/stable/GdkDisplay.html#gdk-display-warp-pointer

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 ).

like image 120
gatoatigrado Avatar answered Jul 13 '26 15:07

gatoatigrado



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!