AHK Script megathread
It's happened before. The only case I remember was a streamer or some shit got overwatched for using a macro that did a 180 turn. Looked like aimbot. But it got lifted since he was popular and he had evidence of the macros he was using. Either way, you're at risk and need to be careful because some autists will overwatch for using jump scripts.
I would like to ask how do I open multiple ahk files?Or I just combine all those scripts in one ahk files like putting altogether bhop,less recoil,etc?
it's better if you used your gaming mouse macro software you don't get detected as easy
okay guys?
Code:
*$space::
While (GetKeyState("Space", "P"))
{
Send,{space}
Sleep,20
}
Return
I actually fail to see how people can even use these :P I've tried heaps of bhop script's and they are extremely unreliable and stop all the time
- - - Updated - - -
Note: this is NOT a hack!!! It is just a script that simulates mouse movements and clicks!
For more human-like behavior, the script has random sleep times.
Features:
Auto-buy: bind to one of the three numpad keys
Burst, 2x tap, 1x tap fire modes
Auto fire (make your pistol or shotgun full auto!)
recoil reducer (moves mouse down) yeah!
For the recoil reducer, I use 3 for most primary weapons (ak 47, m4a1, etc.) and 2 for deagle and 1 for other pistols (assuming that for the pistols that auto fire is on) THIS DEPENDS ON UR SENSITIVITY! test out the values!
Controls:
Numpad 1-3 to choose preset (buy)
Numpad 4 to make your semi-auto weapon fully auto!
Numpad 7-9 to choose fire mode
RCtrl to change fire mode to default
RAlt to toggle recoil reducer
Requirements:
run csgo in windowed mode
make a new .txt file named buy_info and paste the following in:
It is the weapon info for the buy script
Also, make another .txt file named buy_save and paste the following in:
That is where the presets are saved.
Script Code:
I found this on AHK website, I do not claim it to be mine, credits left un-touch.
Note: this is NOT a hack!!! It is just a script that simulates mouse movements and clicks!
For more human-like behavior, the script has random sleep times.
Features:
Auto-buy: bind to one of the three numpad keys
Burst, 2x tap, 1x tap fire modes
Auto fire (make your pistol or shotgun full auto!)
recoil reducer (moves mouse down) yeah!
For the recoil reducer, I use 3 for most primary weapons (ak 47, m4a1, etc.) and 2 for deagle and 1 for other pistols (assuming that for the pistols that auto fire is on) THIS DEPENDS ON UR SENSITIVITY! test out the values!
Controls:
Numpad 1-3 to choose preset (buy)
Numpad 4 to make your semi-auto weapon fully auto!
Numpad 7-9 to choose fire mode
RCtrl to change fire mode to default
RAlt to toggle recoil reducer
Requirements:
run csgo in windowed mode
make a new .txt file named buy_info and paste the following in:
Code:
nova|xm1014|sawedoff|m249|negev|mac10|mp7|ump45|p90|bizon|famas|m4a1|ssg08|aug|awp|scar20 elite|p250|tec9|deagle vest|vesthelm|Taser|defuser molotov|decoy|flashbang|hegrenade|smokegrenade Nova|XM1014|Sawed-Off/MAG-7|M249|Negev|MAC-10/MP9|MP7|UMP-45|P90|PP-Bizon|Galil AR/FAMAS|AK47/M4A4/M4A1-S|SSG 08|SG 553/AUG|AWP|G3SG1/SCAR-20 Dual Berettas|P250|Tec-9/Five-SeveN/CZ75-Auto|Desert Eagle Kevlar Vest|Kevlar + Helmet|Zeus x27|Defuse/Rescue Kit Molotov/Incendiary Grenade|Decoy Grenade|Flashbang|High Explosive Grenade|Smoke Grenade
Also, make another .txt file named buy_save and paste the following in:
Code:
None#None#None#None^None#None#None#None^None#None#None#None
Script Code:
Code:
;CS:GO Auto Buy and CS:GO Tools
;By: EpicnessCoding
;There is random sleep times for more human-like inputs
;Have Fun!
#singleInstance, force ;one instance is easier to handle
SendMode Input ;for the fast sending keys
;0 = default
;1 = tap once
;2 = tap twice
;3 = burst
;4 = fully auto for semi auto
fireMode = 0
;0 = off
;1 = on
noRecoil = 0
firstShotRecoilTimeMax = 15
firstShotRecoilTime = 0
firstShotRestTimeMax = 5
firstShotRestTime = 0
FileRead, tempWepText, %A_WorkingDir%\buy_info.txt
;remove all of the \r for simplicity
StringReplace, tempWepText, tempWepText, `r, ,
;arrays 1-4 is console name
;arrays 5-8 is label (alias)
StringSplit, wepArray, tempWepText, `n,
;the split string array is for the sake of simplicity
StringSplit, wepArraySplit1, wepArray1, |,
StringSplit, wepArraySplit2, wepArray2, |,
StringSplit, wepArraySplit3, wepArray3, |,
StringSplit, wepArraySplit4, wepArray4, |,
;read the saved presets file
FileRead, tempSaveText, %A_WorkingDir%\buy_save.txt
StringReplace, tempSaveText, tempSaveText, `r, ,
StringSplit, tempSaveArray, tempSaveText, ^,
StringSplit, tempSaveArraySplit1, tempSaveArray1, #,
StringSplit, tempSaveArraySplit2, tempSaveArray2, #,
StringSplit, tempSaveArraySplit3, tempSaveArray3, #,
;this is were the saved presets are stored
primary1 := tempSaveArraySplit11
secondary1 := tempSaveArraySplit12
gear1 := tempSaveArraySplit13
grenade1 := tempSaveArraySplit14
primary2 := tempSaveArraySplit21
secondary2 := tempSaveArraySplit22
gear2 := tempSaveArraySplit23
grenade2 := tempSaveArraySplit24
primary3 := tempSaveArraySplit31
secondary3 := tempSaveArraySplit32
gear3 := tempSaveArraySplit33
grenade3 := tempSaveArraySplit34
;show GUI
Gui, Show, w320 h500, CS:GO Tools
Gui, Add, Text, x10 y10, Primary:
Gui, Add, DropDownList, x10 y30 w150 vPrimaryWep Choose1 AltSubmit, None|%wepArray5%
Gui, Add, Text, x10 y60, Secondary:
Gui, Add, DropDownList, x10 y80 w150 vSecondaryWep Choose1 AltSubmit, None|%wepArray6%
Gui, Add, Text, x10 y110, Gear:
Gui, Add, ListBox, x10 y130 w150 h120 vGearWep Multi Choose1 AltSubmit, None|%wepArray7%
Gui, Add, Text, x10 y250, Grenade:
Gui, Add, ListBox, x10 y270 w150 h120 vGrenadeWep Multi Choose1 AltSubmit, None|%wepArray8%
Gui, Add, GroupBox, x170 y100 w135 h130, Other:
Gui, Add, Text, x180 y120 w200 vFIREMODE cBlue, Fire Mode: Default
Gui, Add, Text, x180 y140 vNORECOIL cBlue, No Recoil: Off
Gui, Add, Text, x180 y160 cBlue, No Recoil Amount:
Gui, Add, Edit
Gui, Add, UpDown, vNORECOILAMT Range1-6, 1
Gui, Add, CheckBox, x180 y210 vFireStop, Stop On Fire
Gui, Add, Text, x10 y390, Set As Key:
Gui, Add, Button, x10 y410 w60 h60 vPRESET1BUTTON gPRESET1, Numpad 1
Gui, Add, Button, x80 y410 w60 h60 vPRESET2BUTTON gPRESET2, Numpad 2
Gui, Add, Button, x150 y410 w60 h60 vPRESET3BUTTON gPRESET3, Numpad 3
Gui, Add, GroupBox, x-5 y470 w325 h500,
Gui, Add, Text, x5 y480, The Ultimate CS:GO Tools!
Gui, Add, Text, x220 y480, By: EpicnessCoding
OnExit, GuiClose
return ;return so that the program does not run the code below on start-up
;handle the preset button clicks
PRESET1:
GuiControlGet, PrimaryWep
GuiControlGet, SecondaryWep
GuiControlGet, GearWep
GuiControlGet, GrenadeWep
PrimaryWep -= 1
SecondaryWep -= 1
if(PrimaryWep != 0)
primary1 := wepArraySplit1%PrimaryWep%
else
primary1 := "None"
if(SecondaryWep != 0)
secondary1 := wepArraySplit2%SecondaryWep%
else
secondary1 := "None"
Loop, parse, GearWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
gear1 := wepArraySplit3%tempVar%
else
gear1 := gear1 . "|" . wepArraySplit3%tempVar%
}else{
gear1 := "None"
}
}
Loop, parse, GrenadeWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
grenade1 := wepArraySplit4%tempVar%
else
grenade1 := grenade1 . "|" . wepArraySplit4%tempVar%
}else{
grenade1 := "None"
break
}
}
return
PRESET2:
GuiControlGet, PrimaryWep
GuiControlGet, SecondaryWep
GuiControlGet, GearWep
GuiControlGet, GrenadeWep
PrimaryWep -= 1
SecondaryWep -= 1
if(PrimaryWep != 0)
primary2 := wepArraySplit1%PrimaryWep%
else
primary2 := "None"
if(SecondaryWep != 0)
secondary2 := wepArraySplit2%SecondaryWep%
else
secondary2 := "None"
Loop, parse, GearWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
gear2 := wepArraySplit3%tempVar%
else
gear2 := gear2 . "|" . wepArraySplit3%tempVar%
}else{
gear2 := "None"
}
}
Loop, parse, GrenadeWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
grenade2 := wepArraySplit4%tempVar%
else
grenade2 := grenade2 . "|" . wepArraySplit4%tempVar%
}else{
grenade2 := "None"
break
}
}
return
PRESET3:
GuiControlGet, PrimaryWep
GuiControlGet, SecondaryWep
GuiControlGet, GearWep
GuiControlGet, GrenadeWep
PrimaryWep -= 1
SecondaryWep -= 1
if(PrimaryWep != 0)
primary3 := wepArraySplit1%PrimaryWep%
else
primary3 := "None"
if(SecondaryWep != 0)
secondary3 := wepArraySplit2%SecondaryWep%
else
secondary3 := "None"
Loop, parse, GearWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
gear3 := wepArraySplit3%tempVar%
else
gear3 := gear3 . "|" . wepArraySplit3%tempVar%
}else{
gear3 := "None"
}
}
Loop, parse, GrenadeWep, |
{
tempVar := A_LoopField - 1
if(tempVar != 0){
if(A_Index == 1)
grenade3 := wepArraySplit4%tempVar%
else
grenade3 := grenade3 . "|" . wepArraySplit4%tempVar%
}else{
grenade3 := "None"
break
}
}
return
GuiClose:
FileDelete, %A_WorkingDir%\buy_save.txt
saveText := primary1 . "#" . secondary1 . "#" . gear1 . "#" . grenade1 . "^" . primary2 . "#" . secondary2 . "#" . gear2 . "#" . grenade2 . "^" . primary3 . "#" . secondary3 . "#" . gear3 . "#" . grenade3
FileAppend, %saveText%, %A_WorkingDir%\buy_save.txt
ExitApp
SetTitleMatchMode, 3
#IfWinActive Counter-Strike: Global Offensive
*RAlt::
noRecoil += 1
if(noRecoil > 1){
noRecoil = 0
}
if(noRecoil == 0)
GuiControl, , NORECOIL, No Recoil: Off
else
GuiControl, , NORECOIL, No Recoil: On
return
;toggles the fireMode using right ctrl
*RCtrl::
fireMode = 0 ;default
KeyWait, RCtrl
GuiControl, , FIREMODE, Fire Mode: Default
return
*Numpad7::
fireMode = 1 ;tap once
KeyWait, Numpad7
GuiControl, , FIREMODE, Fire Mode: 1x Tap Fire
return
*Numpad8::
fireMode = 2 ;tap twice
KeyWait, Numpad8
GuiControl, , FIREMODE, Fire Mode: 2x Tap Fire
return
*Numpad9::
fireMode = 3 ;burst
KeyWait, Numpad9
GuiControl, , FIREMODE, Fire Mode: Burst Fire
return
*Numpad4::
fireMode = 4 ;full auto for semi auto
KeyWait, Numpad4
GuiControl, , FIREMODE, Fire Mode: Auto Fire
return
;handles the numpad events (use preset)
*Numpad1::
Send ``
Random, tempRand, 140, 160
Sleep %tempRand%
if(primary1 != "None"){
Send buy%A_Space%%primary1%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(secondary1 != "None"){
Send buy%A_Space%%secondary1%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(gear1 != "None"){
Loop, parse, gear1, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
if(grenade1 != "None"){
Loop, parse, grenade1, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
Random, tempRand, 140, 160
Sleep %tempRand%
Send {ESC}
return
*Numpad2::
Send ``
Random, tempRand, 140, 160
Sleep %tempRand%
if(primary2 != "None"){
Send buy%A_Space%%primary2%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(secondary2 != "None"){
Send buy%A_Space%%secondary2%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(gear2 != "None"){
Loop, parse, gear2, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
if(grenade2 != "None"){
Loop, parse, grenade2, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
Random, tempRand, 140, 160
Sleep %tempRand%
Send {ESC}
return
*Numpad3::
Send ``
Random, tempRand, 140, 160
Sleep %tempRand%
if(primary3 != "None"){
Send buy%A_Space%%primary3%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(secondary3 != "None"){
Send buy%A_Space%%secondary3%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
if(gear3 != "None"){
Loop, parse, gear3, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
if(grenade3 != "None"){
Loop, parse, grenade3, |
{
Send buy%A_Space%%A_LoopField%
Random, tempRand, 140, 160
Sleep %tempRand%
Send {Enter down}
Sleep 50
Send {Enter up}
Sleep 50
}
}
Random, tempRand, 140, 160
Sleep %tempRand%
Send {ESC}
return
;handles left click for the burst and tap fire
$*LButton::
GuiControlGet, FireStop
if(FireStop == 1){
if(GetKeyState("a", "P") && !GetKeyState("d", "P")){
Hotkey, *a, dummyLabel, On
Send {a down}
Sleep 20
Send {a up}
}else if(GetKeyState("d", "P") && !GetKeyState("a", "P")){
Hotkey, *d, dummyLabel, On
Send {d down}
Sleep 20
Send {d up}
}
if(GetKeyState("w", "P") && !GetKeyState("s", "P")){
Hotkey, *w, dummyLabel, On
Send {w down}
Sleep 20
Send {w up}
}else if(GetKeyState("s", "P") && !GetKeyState("w", "P")){
Hotkey, *s, dummyLabel, On
Send {s down}
Sleep 20
Send {s up}
}
}
GuiControlGet, NORECOILAMT
if(fireMode == 0){ ;default
Click down
While GetKeyState("LButton", "P"){
if(noRecoil == 1){
if(firstShotRestTime > firstShotRestTimeMax){
if(firstShotRecoilTime > firstShotRecoilTimeMax){
mouseXY(0, NORECOILAMT)
Random, tempRand, 200, 220
Sleep %tempRand%
}else{
firstShotRecoilTime += 1
mouseXY(0, NORECOILAMT * 2)
Random, tempRand, 20, 40
Sleep %tempRand%
}
}else{
firstShotRestTime += 1
Random, tempRand, 20, 40
Sleep %tempRand%
}
}
}
Click up
}else if(fireMode == 1){ ;tap once
Click down
Random, tempRand, 40, 60
Sleep %tempRand%
Click up
}else if(fireMode == 2){ ;tap twice
Click down
Random, tempRand, 40, 60
Sleep %tempRand%
Click up
Random, tempRand, 50, 70
Sleep %tempRand%
Click down
Random, tempRand, 40, 60
Sleep %tempRand%
Click up
}else if(fireMode == 3){ ;burst
Click down
Random, tempRand, 175, 250
Sleep %tempRand%
Click up
}else if(fireMode == 4){ ;auto for semi-autos
While GetKeyState("LButton", "P"){
Click down
Random, tempRand, 30, 40
Sleep %tempRand%
Click up
Sleep 20
if(noRecoil == 1){
mouseXY(0, NORECOILAMT)
}
Random, tempRand, 30, 40
Sleep %tempRand%
}
}
firstShotRecoilTime = 0
firstShotRestTime = 0
if(FireStop == 1){
Hotkey, *a, dummyLabel, Off
Hotkey, *d, dummyLabel, Off
Hotkey, *w, dummyLabel, Off
Hotkey, *s, dummyLabel, Off
if(GetKeyState("a", "P") && !GetKeyState("d", "P")){
Sleep 20
Send {a down}
Sleep 20
Send {a up}
}else if(GetKeyState("d", "P") && !GetKeyState("a", "P")){
Sleep 20
Send {d down}
Sleep 20
Send {d up}
}
if(GetKeyState("w", "P") && !GetKeyState("s", "P")){
Sleep 20
Send {w down}
Sleep 20
Send {w up}
}else if(GetKeyState("s", "P") && !GetKeyState("w", "P")){
Sleep 20
Send {s down}
Sleep 20
Send {s up}
}
}
return
mouseXY(x, y) ;moves the mouse (relative movements)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
dummyLabel: ;does nothing (to disable a key)
return
anyone got a qq script for sniping? and how to toggle it?
What did i have to do with that Codes!!!! 
- - - Updated - - -
how can i use the scripts?
- - - Updated - - -
What does this codes mean? They are just letters!

- - - Updated - - -
how can i use the scripts?
- - - Updated - - -
What does this codes mean? They are just letters!

Simple and efficient bhop script created by me 
All you gotta do is hold spacebar

All you gotta do is hold spacebar

*space::
Loop
{
GetKeyState,state,space,P
if state = U
break
Send,{space}
Sleep,22
}
return
Loop
{
GetKeyState,state,space,P
if state = U
break
Send,{space}
Sleep,22
}
return
This thread will be unstuck and closed since now there's this subsection, which is specifically for the release of CS:GO Scripts and related stuff.
/Closed.
/Closed.
This thread is closed for replies.
Similar Threads
Call of Duty Modern Warfare 2 HelpNeed help with an AHK script
1 Vindictus HelpAHK script not working ONLY on vindictus :(DU 0 Battlefield Hacks & CheatsBattlefield Dual Weapon AHK script
25 Call of Duty Modern Warfare 3 Coding, Programming & Source CodeAHK ScriptRS 1 Realm of the Mad God DiscussionsAHK Script - Vault to Inv.RU 0
