You last visited: Today at 07:32
Advertisement
CS:GO - AHK Trigger & Recoil script
Discussion on CS:GO - AHK Trigger & Recoil script within the Counter-Strike Hacks, Bots, Cheats & Exploits forum part of the Counter-Strike category.
04/04/2018, 11:57
#1
elite*gold: 0
Join Date: May 2008
Posts: 57
Received Thanks: 7
CS:GO - AHK Trigger & Recoil script
Want to share the Autohotkey script for CS:GO I am currently using. Many people say Autohotkey-scripts will never be VAC-detectable as it doesn't interfere with the game at all! All it does is imitating mousemovement and clicks.
VAC-Status: undetected
Functions:
1. Automated spraycontrol (for the AK only) - will control the recoil while you click Mouse1. It will try to do the pattern with all weapons though, so pause (F7) the script while using other weapons.
2. Triggerbot (Pixelbot) - Hold mouse4 (XButton1) while holding an angle. Dont move the mouse, otherwise it will shoot instantly. Pixelbots react to pixel-changes in your crosshair.
How to use:
1. Download Autohotkey (
)
2. Create a new script (right-click on desktop -> new -> autohotkey script | there are tonns of vidoes about it if you have never used it before)
3. Copy/paste the script posted below and save the script
4. Run it anytime and enjoy
Keys:
Activate AK recoil = "F5"
Activate Trigger = "F6"
All Standby = "F7"
Terminate the application completly= "F8"
Mouse1 = use recoil control
Mouse4 = activate Trigger
Script:
;Settings rec
sens:=2.2
;Settings Trigg
senstrig:=20
delz:=10
holdtiem:=250
crossset:=2
;color split
SplitRGBColor(RGBColor, ByRef Red, ByRef Green, ByRef Blue)
{
Red := RGBColor >> 16 & 0xFF
Green := RGBColor >> 8 & 0xFF
Blue := RGBColor & 0xFF
}
SplitBGRColor(BGRColor, ByRef Red, ByRef Green, ByRef Blue)
{
Red := BGRColor & 0xFF
Green := BGRColor >> 8 & 0xFF
Blue := BGRColor >> 16 & 0xFF
}
;Key binds
key_AK:="F5"
key_Trigg:="F6"
key_Standby:="F7"
key_Terminate:="F8"
key_pause:="xbutton2"
key_shoot:="LButton"
;Modifier
modifier:=2.52/sens
;Main loop
loop {
sleep 1
;Menu handling
;AK-47
if GetKeyState(key_AK)
{
ak:=true
humanizer:=3.8
waitdivider:=4.7
}
if GetKeyState(key_Trigg)
{
trigger:=true
}
if GetKeyState(key_Terminate)
{
sleep 2000
ExitApp
}
if GetKeyState(key_pause)
{
sleep 3000
}
if GetKeyState(key_Standby)
{
ak:=false
trigger:=false
}
;Beta trigger
if !GetKeyState("XButton1") && trigger==true
{
sleep 50
MouseGetPos, oneX, oneY
PixelGetColor, colorone, oneX+crossset, oneY+crossset
SplitRGBColor(colorone, oneRed, oneGreen, oneBlue)
}
if GetKeyState("XButton1") && trigger==true
{
sleep 1
MouseGetPos, twoX, twoY
PixelGetColor, colortwo, twoX+crossset, twoY+crossset
SplitRGBColor(colortwo, twoRed, twoGreen, twoBlue)
if (((oneRed-sens)<=twoRed) && ((oneRed+sens)<=twoRed)) or (((oneRed-sens)>=twoRed) && ((oneRed+sens)>=twoRed)) or (((oneGreen-sens)<=twoGreen) && ((oneGreen+sens)<=twoGreen)) or (((oneGreen-sens)>=twoGreen) && ((oneGreen+sens)>=twoGreen)) or (((oneBlue-sens)<=twoBlue) && ((oneBlue+sens)<=twoBlue)) or (((oneBlue-sens)>=twoBlue) && ((oneBlue+sens)>=twoBlue))
{
sleep delz
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
sleep holdtiem
DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
}
}
;NoRecoil
if GetKeyState(key_shoot)
{
;AK-47
if ak
{
loop
{
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
sleep 50
if !GetKeyState(key_shoot)
break
move(-4/humanizer*modifier, 7/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(4/humanizer*modifier, 19/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-3/humanizer*modifier, 29/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-1/humanizer*modifier, 31/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(13/humanizer*modifier, 31/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(8/humanizer*modifier, 28/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(13/humanizer*modifier, 21/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-17/humanizer*modifier, 12/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-42/humanizer*modifier, -3/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-21/humanizer*modifier, 2/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(12/humanizer*modifier, 11/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-15/humanizer*modifier, 7/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-26/humanizer*modifier, -8/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-3/humanizer*modifier, 4/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(40/humanizer*modifier, 1/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(19/humanizer*modifier, 7/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(14/humanizer*modifier, 10/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(27/humanizer*modifier, 0/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(33/humanizer*modifier, -10/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-21/humanizer*modifier, -2/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(7/humanizer*modifier, 3/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-7/humanizer*modifier, 9/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-8/humanizer*modifier, 4/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(19/humanizer*modifier, -3/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(5/humanizer*modifier, 6/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-20/humanizer*modifier, -1/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-33/humanizer*modifier, -4/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-45/humanizer*modifier, -21/humanizer*modifier, 4, 99/waitdivider)
if !GetKeyState(key_shoot)
break
move(-14/humanizer*modifier, 1/humanizer*modifier)
if !GetKeyState(key_shoot)
break
sleep 80
DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
sleep 1000
if !GetKeyState(key_shoot)
break
}
DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, 0, int, 0)
}
}
}
;Pistol
return
move(x, y, times=1, sleep=0)
{
Loop, %times%
{
DllCall("mouse_event", "UInt", 0x01, "UInt", x, "UInt", y)
if sleep
Sleep, %sleep%
}
}
I simply combined and edited some codes I found to my liking and thought I share it with you guys. The exact code I posted here is not posted anywhere else. Feel free to edit the code, incase you want to change some keys, the trigger waiting time or add recoil control for other weapons. You will find them online.
Feel free to ask questions, I'll try to answer them as soon as possible.
As always:
use at your own risk !
Enjoy!
10/24/2018, 01:49
#2
elite*gold: 0
Join Date: Jul 2016
Posts: 2
Received Thanks: 0
nice thx
11/09/2018, 16:44
#3
elite*gold: 0
Join Date: Oct 2018
Posts: 1
Received Thanks: 0
mouse_event is detected do not use
11/12/2018, 17:55
#4
elite*gold: 0
Join Date: Nov 2018
Posts: 15
Received Thanks: 3
it's ban able
07/19/2019, 08:02
#5
elite*gold: 0
Join Date: Jul 2019
Posts: 6
Received Thanks: 1
mouse_event function of windows.h library is detected by VAC. It's been this way for years now. If you want to make this script UD you have to find a way to bypass vac, but then again it would be foulish for just this RCS and the low responsive trigger.
08/26/2019, 19:12
#6
elite*gold: 0
Join Date: Jun 2019
Posts: 48
Received Thanks: 11
Quote:
Originally Posted by
VorVZakone
mouse_event function of windows.h library is detected by VAC. It's been this way for years now. If you want to make this script UD you have to find a way to bypass vac, but then again it would be foulish for just this RCS and the low responsive trigger.
Congrats on reviving a dead post from over a year ago :Þ
All times are GMT +2. The time now is 07:33 .