The simpliest clicker ever(almost)
You need to install one pkg.
sudo pacman -S ydotool
sudo apt install ydotool
- To set a keyboard, you need to find its event in
/dev/input/event*, google how to do this. And then you need to change 15 and 17 lines inmain.cpp. Example: you got/dev/input/event5, 15.system("sudo chmod a+r /dev/input/event5");, 17.const char* device = "/dev/input/event5";.
To buld it you need to run
g++ -o main main.cpp
Run ./main in the project directory.
-
Enter the delay
-
Enter 1 or 2(1 is left mouse click, 2 is right mouse click).
Hold CAPSLOCK to start.