[Tool] Auto-Click script [Linux]
Today I was playing a bit around Craig's server, and I needed some concrete for the ongoing railway project. So, I gone to my storage, took cobble and cactus, and cooked it all in microwaves. Then, after that, I had a full inventory of stone. I thought it would be nice if I could just click once and make it all concrete. So, I came up with this idea: why don't I bind 100 mouse clicks to a specific keyboard shortcut? So... I found out about a program called "xdotool". Moreover, it was inside Kubuntu 15.04 repositories. To install it, I just used:
Then, I wrote this script:
Quite simple, huh?
It will click 100 times at the current mouse position. So, now we just need to make a keyboard shortcut that activates this script. In KDE, it is quite easy, just follow the pictures...





I hope this helps anyone...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
sudo apt-get install xdotool
Then, I wrote this script:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
#!/bin/bash
xdotool click --repeat 100 1
Quite simple, huh?
It will click 100 times at the current mouse position. So, now we just need to make a keyboard shortcut that activates this script. In KDE, it is quite easy, just follow the pictures...





I hope this helps anyone...