Untitled
unknown
plain_text
2 years ago
3.9 kB
14
Indexable
#Persistent
#NoEnv
#InstallKeybdHook
#UseHook
#SingleInstance, Force
SetKeyDelay,-1, 8
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
SendMode, InputThenPlay
SetBatchLines,-1
ListLines, Off
CoordMode, Pixel, Screen, RGB
CoordMode, Mouse, Screen
Process, Priority, % DllCall("GetCurrentProcessId"), High
; Adjustable settings
aimbot_Enabled := 1 ; Toggle for enabling/disabling aimbot
aimbot_CFovX := 35 ; Crosshair FOV (X-axis)
aimbot_CFovY := 35 ; Crosshair FOV (Y-axis)
aimbot_Offset_X := 1.00 ; Aimbot offset on X-axis
aimbot_Offset_Y := 0.75 ; Aimbot offset on Y-axis
aimbot_max_move_pixels := 5 ; Maximum pixels to move when aiming
aimbot_only_hs_mode := 0 ; Toggle for headshot-only mode
trigger_Enabled := 0 ; Toggle for enabling/disabling trigger bot
aimbot_ColVn := 50 ; Color variation for aimbot ;
; Color settings
if (aimbot_only_hs_mode == 1) {
EMCol := "0xfeca2a, 0xfec928, 0xffdf49 , 0xfcc725 , 0xf6bf1a , 0xf0b810"
} else if (aimbot_only_hs_mode == 0) {
EMCol := "0xfeca2a, 0xfec928, 0xffdf49 , 0xfcc725 , 0xf6bf1a , 0xf0b810"
}
; Other settings
AntiShakeX := (A_ScreenHeight // 160)
AntiShakeY := (A_ScreenHeight // 128)
ZeroX := (A_ScreenWidth // 2)
ZeroY := (A_ScreenHeight // 2)
; Flags to indicate if Aimbot and TriggerBot are active or not
AimbotActive := true ; Set to true by default, controls if the aimbot is active
TriggerBotActive := false ; Set to false by default, controls if the triggerbot is active
; Calculate the coordinates of the scanning area for aiming within the field of view
ScanL := ZeroX - aimbot_CFovX ; Left boundary of the aiming scan area
ScanR := ZeroX + aimbot_CFovX ; Right boundary of the aiming scan area
ScanT := ZeroY - aimbot_CFovY ; Top boundary of the aiming scan area
ScanB := ZeroY + aimbot_CFovY ; Bottom boundary of the aiming scan area
; Calculate the coordinates of the nearby scanning area for fine-tuning aiming
NearAimScanL := ZeroX - AntiShakeX ; Left boundary of the nearby aiming scan area
NearAimScanR := ZeroX + AntiShakeX ; Right boundary of the nearby aiming scan area
NearAimScanT := ZeroY - AntiShakeY ; Top boundary of the nearby aiming scan area
NearAimScanB := ZeroY + AntiShakeY ; Bottom boundary of the nearby aiming scan area
Loop {
; Search for target pixels within the nearby aiming scan area
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, aimbot_ColVn, Fast RGB
if (!ErrorLevel=0) {
loop, 10 {
if (AimbotActive == 1) {
KeyWait, LButton, D
; Search for target pixels within the main aiming scan area
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, aimbot_ColVn, Fast RGB
; MsgBox, This is a debug message.
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
DirX := AimX > 0 ? 1 : -1
DirY := AimY > 0 ? 1 : -1
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY
; Calculate the amount of mouse movement based on aim offset and user-defined offset
MoveX := (AimOffsetX * DirX) / 8 * aimbot_Offset_X
MoveY := (AimOffsetY * DirY) / 8 * aimbot_Offset_Y
; Perform mouse movement using DllCall to simulate aiming
DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
}
}
}
}
F1::ToggleBot(AimbotActive)
F3::ToggleBot(TriggerBotActive)
F2::ExitApp
ToggleBot(targetVar) {
targetVar := !targetVar
SoundBeep, % (targetVar ? 500 : 900), 300
}
Editor is loading...