Skip to content

daffukk/LinuxTriggerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GNU/Linux TriggerBot

The TriggerBot that works in any game by detecting a new pixel in the center of screen.

Setup

You need some pkgs.

For arch based:

sudo pacman -S ydotool
sudo pacman -S grim

For debian based;

sudo apt install ydotool
sudo apt install grim

Next you need to pick delay, triggerKey, resolution and your keyboard.

  • 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 the main.cpp at 33 and 38 line of code. Example: you got the 1715,715 10x10 from ./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

Run ./main in the project directory

Ingame u need to stand and hold capslock.

About

GNU/Linux triggerbot that works in any game. You can set your delay and trigger btn if you want

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published