Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance force
- SetBatchLines, -1
- SetWinDelay, -1
- ListLines Off
- Process, Priority,, high
- DetectHiddenWindows, On
- initial_load_config := "0"
- x1 := Round(A_ScreenWidth / 13.913)
- y1 := Round(A_ScreenHeight / 5.8695)
- radar_radius := Round(A_ScreenWidth / 15.484)
- radar_radius_2 := radar_radius*2
- low_fov_px := Round(radar_radius / 24.8)
- if ((A_ScreenWidth=1280)and(A_ScreenHeight=1024))or((A_ScreenWidth=1280)and(A_ScreenHeight=960))or((A_ScreenWidth=1152)and(A_ScreenHeight=864))
- {
- x1 := Round(1920 / 13.913)
- y1 := Round(1080 / 5.8695)
- radar_radius := Round(1920 / 15.484)
- radar_radius_2 := radar_radius*2
- low_fov_px := Round(radar_radius / 24.8)
- }
- FileRead, aimbot_key, ahk_aimbot_key.txt
- stringreplace, aimbot_key, aimbot_key, *~$
- if (workingDir = "desktop")
- {
- if (initial_load_config = "0")
- {
- SetWorkingDir, E:\w1zware CSGO\Config
- FileRead, Legit, current_profile.txt
- SetWorkingDir, E:\w1zware CSGO\Config\%Legit%
- }
- else
- {
- SetWorkingDir, E:\w1zware CSGO\Config
- FileAppend, %Legit%,
- SetWorkingDir, E:\w1zware CSGO\Config\%Legit%
- }
- FileRead, aimbot, ahk_aimbot.txt
- FileRead, aim_delay, ahk_aimbot_delay.txt
- FileRead, aim_fov, ahk_aimbot_fov.txt
- FileRead, aim_lock_speed, ahk_aimbot_lock_speed.txt
- FileRead, aim_trace_speed, ahk_aimbot_trace_speed.txt
- FileRead, aimbot_type, ahk_aimbot_mode.txt
- FileRead, aim_smooth, ahk_aimbot_smooth.txt
- FileRead, aim_offset, ahk_aimbot_offset.txt
- }
- FileRead,connection_log, E:\Program Files (x86)\Steam\logs\connection_log.txt
- SetSteamID_loc:=InStr(connection_log,"SetSteamID(",,0)
- ClosingBracket_loc:=InStr(connection_log,"]",,SetSteamID_loc+17)
- SteamID:=SubStr(connection_log,SetSteamID_loc+17,ClosingBracket_loc-(SetSteamID_loc+17))
- FileRead,user_config,E:\Program Files (x86)\Steam\userdata\%SteamID%\730\local\cfg\config.cfg
- Sensitivity_loc:=InStr(user_config,"`nsensitivity """)
- ClosingQuote_loc:=InStr(user_config,"""",,Sensitivity_loc+14)
- sensitivity:=SubStr(user_config,Sensitivity_loc+14,ClosingQuote_loc-(Sensitivity_loc+14))
- ZoomSensitivity_loc:=InStr(user_config,"`nzoom_sensitivity_ratio_mouse")
- ClosingQuote_loc:=InStr(user_config,"""",,ZoomSensitivity_loc+31)
- zoom_sensitivity:=SubStr(user_config,ZoomSensitivity_loc+31,ClosingQuote_loc-(ZoomSensitivity_loc+31))
- IfInString,user_config,`nbind "]"
- {
- IfNotInString,user_config,`nbind "]" "zoom_sensitivity_ratio_mouse %zoom_sensitivity%"
- MsgBox Error: Please unbind the key "]" or rebind it to another key in CSGO. The script needs to use this key for some features.
- else
- {
- }
- }
- else
- FileAppend,bind "]" "zoom_sensitivity_ratio_mouse %zoom_sensitivity%"`n,E:\Program Files (x86)\Steam\userdata\%SteamID%\730\local\cfg\config.cfg
- IfInString,user_config,`nbind "\"
- {
- IfNotInString,user_config,`nbind "\" "zoom_sensitivity_ratio_mouse 2.25"
- MsgBox Error: Please unbind the key "\" or rebind it to another key in CSGO. The script needs to use this key for some features.
- else
- {
- }
- }
- else
- FileAppend,bind "\" "zoom_sensitivity_ratio_mouse 2.25"`n,E:\Program Files (x86)\Steam\userdata\%SteamID%\730\local\cfg\config.cfg
- aimbot:
- gui, submit, NoHide
- SetKeyDelay -1
- SetMouseDelay -1
- if (aimbot = "1")
- Send {Blind}{\}
- aim_lock := 10 / aim_lock_speed
- aim_trace := 10 / aim_trace_speed
- if (aim_fov>radar_radius)
- aim_fov_b := (aim_fov - radar_radius)
- if (aim_fov<radar_radius)
- aim_fov_b := 0
- if (A_ScreenWidth=1920) and (A_ScreenHeight=1080)
- x1 := (138 - aim_offset)
- else
- x1 := (Round(A_ScreenWidth / 13.913) - aim_offset)
- if GetKeyState(aimbot_key,"P") and aimbot = "1" and aimbot_type = "SilentAim" and script = "1"
- if GetKeyState(aimbot_key,"P") and aimbot = "1" and aimbot_type = "Snap" and script = "1"
- {
- SetMouseDelay 10
- DllCall("Sleep",UInt,15)
- Send {Blind}{LButton}
- }
- while GetKeyState(aimbot_key,"P") and aimbot = "1" and aimbot_type = "Normal" and script = "1" and aim_smooth = "0"
- {
- Sleep %aim_delay%
- }
- while GetKeyState(aimbot_key,"P") and aimbot = "1" and aimbot_type = "Normal" and script = "1" and aim_smooth = "1"
- {
- DllCall("Sleep",UInt,aim_delay)
- }
- if (aimbot = "1")
- Send {Blind}{]}
- SetKeyDelay 10
- SetMouseDelay 10
- ToolTip
- return
- inputbox:
- gui, submit, nohide
- inputx := 1
- InputBox, inputx, , Type the toggle you want (ex. aimbot on),,,,,,, 90
- if ErrorLevel
- return
- else
- {
- if inputx = commands
- {
- MsgBox, Available commands:`n `naimbot [on off]`naimbot_smooth [on off]`nbhop [on off]`ntriggerbot [on off]`nnorecoil [on off]`nspinbot [on off]`nautofire [on off]`nstrafehack [on off]`nzeus [on off]`nlagswitch [on off]`nspinbot_type [360, Random, Down + 360]`ntriggerbot_sensitivity [Number]`naimbot_delay [delay in ms]`naimbot_fov [Number]`naimbot_lock_speed [Number]`naimbot_trace_speed [Number]`nautofire_delay [delay in ms]`nchatspam_delay [delay in ms]`nbuybind [1,2,3] [weapon, weapon,....]`nnorecoil_type [AK-47, M4A4]`nsensitivity [your sensitivity]`n
- goto, inputbox
- }
- if (inputx = "script on") or (inputx = "script 1")
- {
- GuiControl,, script, 1
- MsgBox Script turned ON
- goto, inputbox
- }
- if (inputx = "script off") or (inputx = "script 0")
- {
- GuiControl,, script, 0
- MsgBox Script turned OFF
- goto, inputbox
- }
- if (inputx = "aimbot on") or (inputx = "aimbot 1")
- {
- GuiControl,, aimbot, 1
- MsgBox Aimbot turned ON. Key: LeftAlt
- goto, inputbox
- }
- if (inputx = "aimbot off") or (inputx = "aimbot 0")
- {
- GuiControl,, aimbot, 0
- MsgBox Aimbot turned OFF
- goto, inputbox
- }
- if (inputx = "aimbot_smooth on") or (inputx = "aimbot_smooth 1")
- {
- GuiControl,, aim_smooth, 1
- MsgBox Smooth Aimbot turned ON
- goto, inputbox
- }
- if (inputx = "aimbot_smooth off") or (inputx = "aimbot_smooth 0")
- {
- GuiControl,, aim_smooth, 0
- MsgBox Smooth Aimbot turned OFF
- goto, inputbox
- }
- if inputx = aimbot
- {
- if aimbot = 1
- {
- MsgBox Aimbot is currently ON. Key: %aimbot_key%
- }
- else
- {
- MsgBox Aimbot is currently OFF
- }
- goto, inputbox
- }
- }
- ifinstring, inputx, aimbot_type
- {
- aimbot_type := SubStr(inputx, 13)
- if (aimbot_type != "Normal") and (aimbot_type != "Snap") and (aimbot_type != "SilentAim")
- {
- MsgBox,, Error, Invalid Aimbot type
- }
- else
- {
- if aimbot_type = Normal
- {
- GuiControl,, aimbot_type, |Normal||Snap|SilentAim|
- }
- if aimbot_type = Snap
- {
- GuiControl,, aimbot_type, |Normal|Snap||SilentAim|
- }
- if aimbot_type = SilentAim
- {
- GuiControl,, aimbot_type, |Normal|Snap|SilentAim||
- }
- MsgBox Aimbot type set to %aimbot_type%
- }
- goto, inputbox
- }
- ifinstring, inputx, sensitivity
- {
- if inputx = sensitivity
- {
- MsgBox Current sensitivity: %sensitivity%
- goto, inputbox
- }
- if (workingDir = "Downloads")
- {
- SetWorkingDir,E:\w1zware CSGO\Config\%current_profile%
- }
- else
- {
- SetWorkingDir, E:\w1zware CSGO\Config\%current_profile%
- }
- sensitivity := SubStr(inputx, 13)
- FileDelete, ahk_sensitivity.txt
- FileAppend, %sensitivity%, ahk_sensitivity.txt
- MsgBox Sensitivity set to %sensitivity%
- goto, inputbox
- }
- ifinstring, inputx, aimbot_fov
- {
- if inputx = aimbot_fov
- {
- MsgBox Current Aimbot FOV: %aim_fov%
- goto, inputbox
- }
- aim_fov := SubStr(inputx, 12)
- GuiControl,, aim_fov, %aim_fov%
- MsgBox Aimbot FOV set to %aim_fov%
- goto, inputbox
- }
- ifinstring, inputx, aimbot_delay
- {
- if inputx = aimbot_delay
- {
- MsgBox Current Aimbot delay: %aim_delay%
- goto, inputbox
- }
- aim_delay := SubStr(inputx, 14)
- GuiControl,, aim_delay, %aim_delay%
- MsgBox Aimbot delay set to %aim_delay%
- goto, inputbox
- }
- ifinstring, inputx, aimbot_lock_speed
- {
- if inputx = aimbot_lock_speed
- {
- MsgBox Current Aimbot lock speed: %aim_lock_speed%
- goto, inputbox
- }
- aim_lock_speed := SubStr(inputx, 19)
- GuiControl,, aim_lock_speed, %aim_lock_speed%
- MsgBox Aimbot lock speed set to %aim_lock_speed%
- goto, inputbox
- }
- ifinstring, inputx, aimbot_trace_speed
- {
- if inputx = aimbot_trace_speed
- {
- MsgBox Current Aimbot trace speed: %aim_trace_speed%
- goto, inputbox
- }
- aim_trace_speed := SubStr(inputx, 20)
- GuiControl,, aim_trace_speed, %aim_trace_speed%
- MsgBox Aimbot trace speed set to %aim_trace_speed%
- goto, inputbox
- }
- else
- {
- MsgBox,, Error, Unknown command. Type "commands" in the InputBox to show a list of available commands.
- goto, inputbox
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement