Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does the script move the mouse?


There are many python libraries available for controlling the mouse/keyboard. Here are a few I've used or heard of:

Autopy: https://github.com/msanders/autopy

PyMouse: http://code.google.com/p/pymouse/wiki/Documentation

Dogtail: https://fedorahosted.org/dogtail/

If you're on Windows, I believe win32api / win32con also can work.


Cool. I don't suppose there is anything cross platform?


I know Autopy is cross platform, and I'm pretty sure PyMouse is too. Not sure about Dogtail.


It isn't used in this case, but Autohotkey is quite a popular scripting/macro language that allows you to simulate mouse and keyboard use programmatically. It's cross platform, and can be run straight through the interpreter or compiled into native executables on many platforms by bundling the interpreter.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: