Command line way to click a mouse button.
Hi, I was just wondering if any of yous happened to know a way to click certain mouse buttons in X by executing a command in the shell. I have tried a few windows programs through wine that perform this function but they all seem to try and click in corner, and not where I aim the curser at.
Also, if you know of any linux programs that perform this function I would greatly appreciate it. |
Please help :/
|
Try out Xmacro. Looks like beta software so good luck!
|
Hey thanks for the reply. I gave Xmacro a whirl and it's been almost been 2 years since they updated it, looks like work has stopped.
It seems pretty hard to use. I just want to know how to record a macro without it making my mouse go all funny. I've got no idea how to use it really... I could probably create a script, but how do I pass that through xmacro to run it? Could anyone else give it a try and see what they come up with? |
Okay, I know exactly what I want to perform with this program.
So say if I have a file called 'mouse.scr' with the following lines: ---- MotionNotify 339 486 ButtonPress 1 ButtonRelease 1 ---- How would I parse that information to xmacroplay and have it loop (I assume there is someway to make a bash script loop, is there not?) Any help is always appreciate :) |
HURRAY
I discovered this for myself so I'm quite happy :) Here's what I did: ---- $ cat mouse.scr | xmacroplay :0 ---- And it worked! Now to read up more on bash scripting and find this loop I'm looking for. |
Congrats danielw! Thanks for posting your results.
|
All times are GMT -5. The time now is 05:21 PM. |