The TriggerBot that works in any game by detecting a new pixel in the center of screen.
You need some pkgs.
sudo pacman -S ydotool
sudo pacman -S grim
sudo apt install ydotool
sudo apt install grim
-
To set delay you can to change trig.setDelay(80) at 94 line of code.
-
To set a triggerKey you can change trig.setKey(58) at 95 line of code. (It's a key code, by default set to CAPSLOCK)
-
(You must do this!) To set your resolution, you need to run file
./getResolution(Its sourse code is getRes.c). Then write your screen resolution. You will get the string, paste it into themain.cppat 33 and 38 line of code. Example: you got the1715,715 10x10from./getResolution. You paste it in 33 and 38 lines like this: 33.system("grim -g \"1715,715 10x10\" clip.png");38.system("grim -g \"1715,715 10x10\" action.png"); -
(You must do this!) 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 49 and 51 lines.
To buld it you need to run
g++ -o main main.cpp
Run ./main in the project directory
Ingame u need to stand and hold capslock.