First the anecdote: I was playing a browser game, and though it was kind of fun, I found that "grinding" was actually very well rewarded. It was also the case that a simple mouse-clicker program could do the job for you. I then started to wonder how I could make a Haskell program that controlled the mouse. Alas, after a somewhat disappointing Google search, all I could find was people referring to GLUT and a few other modules that supported reactions to mouse input instead of giving mouse output.
Now the question: What Haskell packages support mouse output, and where can I learn more?
The X11 package offers warpPointer
for moving the mouse and sendEvent
for simulating clicks. I'm not 100% sure about how to set up an event pointer to hand off to sendEvent
, though; it's possible that the current bindings don't include the necessary functions. Patches welcome!
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