This C++ script automatically accepts Counter-Strike 2 matches for you.
It does this by analyzing your screen every 4 seconds and moving and clicking with your mouse when it detects the 'Accept' button.
Since this script does not interfere with any game files and just takes screenshots of your display it is completely VAC safe.
This script is for Linux only. If you are on Windows, please see my other repository.
Â
Note
Does not support Wayland yet!
Â
Easy method:
Head over to the release section and download the latest executable.
Place it on your system whereever you like.
Â
Hard way (compiling the project yourself):
Clone this repository using git or download it as a .zip.
Make sure you have libxtst-dev
, cmake
, make
and g++
installed. (Package names may vary depending on your distribution)
Open a terminal in the project's folder:
# Enter the build directory
cd build
# Create Makefile
cmake ..
# Build
make -j8
After the build has completed, you may move the cs2-autoaccept-linux
binary from the build
directory to anywhere on your system.
Â
Open a terminal in the folder you placed the file in.
# Make sure the very first time that the binary is executable
chmod +x ./cs2-autoaccept-linux
# Run it!
./cs2-autoaccept-linux
You can stop the script by either pressing CTRL+C in the terminal or by closing the terminal window entirely.
Warning
It is important that you run the executable from a terminal. Executing it with a double click may cause it to run in the background forever.
The script will start scanning your screen every 4 seconds.
Queue for a match in CS2. The script will automatically accept it for you.
Note
The game must be on your primary display and be focused. If you minimze the game the script won't work.
The script works in Windowed, as well as in Fullscreen and isn't affected by your brightness settings.
Stop/Close the window when you load into the match.
If not everyone accepted just leave the script open and it will continue scanning.
Important
Should the script fail to find anything, please make sure that you don't use a color correction profile for your display.
The scripts relies on matching colors in the screenshot it takes. A color profile changes these color values.
Â
Enjoy a toilet break while queueing!