Hacker News new | ask | show | jobs
by y-c-o-m-b 1806 days ago
I know a lot of people here use Linux or dual-boot with Windows.

Question: I have some automated testing software I wrote which uses user32.dll to perform mouse clicks, so is there a way to make that work on Linux? It's the only thing holding me back from switching to Linux permanently.

2 comments

Please take a look at a program called `keynav`. I use it for clicking things with my keyboard instead of the mouse, and it works almost flawlessly, except in VirtualBox.

It's source-included, so you can figure out the method they use.

https://github.com/jordansissel/keynav

Nice i'll take a look, cheers.
xtest is an entire X11 extension designed exclusively for the purpose of faking user input for automated testing purposes.

Just search for xtest + your favorite programming language and you are likely to find a binding.

Most utilities use this behind the scenes (e.g. xdotool).