Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › MultiPlayer Game Hacks & Cheats › Other First Person Shooter Hacks › Need help with ahk code for ironsight

Need help with ahk code for ironsight

Posts 1–5 of 5 · Page 1 of 1
Tiempo1
Tiempo1
Need help with ahk code for ironsight
Need help for aimbot and triggerbot for ironsight ahk code
Error - https://gyazo.com/e66e22e2468d5a1c9df020b80fdb3a3f



k0 = 0x15348675
k1 = 0x34867867
k2 = 0x45378676
k3 = 0x78653446
l0 = 0x54378373
l1 = 0x78678676
m0 = 0x78678667
m1 = 0x78678375
#NoEnv
#SingleInstance force
version = Aimbot IRONSIGHT v0.5
Gui, Add, Text, x12 y40 w200 h30 , Start Bot { F1 }
Gui, Add, Text, x12 y80 w200 h30 , Restart Program { F12 }
Gui, Add, Text, x12 y100 w200 h30 , Pause/Resume { Alt }
Gui, Add, CheckBox, x12 y120 w53 h20 vaimbot, Aimbot
Gui, Add, Text, x65 y120 w20 h30 , ---
Gui, Add, CheckBox, x81 y120 w155 h20 vaimbotsmooth, Smooth Aimbot
Gui, Add, CheckBox, x12 y140 w70 h20 vtrigger, TriggerBot
Gui, Add, CheckBox, x81 y140 w100 h20 vsniper, SniperSettings
Gui, Add, CheckBox, x12 y160 w70 h15 vtriaim, Snapshot
Gui, Add, CheckBox, x81 y160 w145 h20 vtriaimhb, SnapshotHB
Gui, Add, CheckBox, x12 y185 w100 h25 vgenji, Updated Genja {V}
Gui, Add, CheckBox, x110 y180 w100 h20 vturn, 180 Turn
Gui, Add, CheckBox, x292 y0 w150 h40 vaimtype Checked, Left Click Hotkey
Gui, Add, CheckBox, x292 y25 w150 h40 vaimtype1, Right Click Hotkey
Gui, Add, Text, x270 y110 w120 h30 , Aim speed control
Gui, Add, Edit, x362 y110 w100 h30 vrx, 0.5
Gui, Add, Text, x235 y75 w120 h30 , Ingame Mouse Sensitivity
Gui, Add, Edit, x362 y75 w100 h30 vrxx, 19
Gui, Add, Button, x232 y150 w230 h90 gchange1, Apply settings
gui, add, button, x5 y5 h20 w70 gIssue, Help
Gui, Show
Loop {
Gui, Submit, NoHide
Sleep -1
}
Return
#If mccree=1
~RButton::
Loop
If GetKeyState("RButton") {
Sleep, 5
moveAmount := (moveAmount = 2) ? 3 : 0
mouseXY(moveAmount,3.4)
}
else
break
Return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uin t,0)
}
#If
return
#If genji=1
~v::
MouseClick, right
Send {shift down}{shift up}
sleep, 400
if(turn=1)
{
GuiControlget, rXx
if(timer < A_TickCount)
{
timer := A_TickCount +300
DllCall("mouse_event", uint, 1, int, ((A_ScreenWidth // 2)*2)*(14.2/rxx), int, -50, uint, 0, int, 0)
}
sleep, 250
}
Mouseclick, Right
send {Mbutton down}{MButton Up}
Return
#If
Return
Reload
Return
Issue:
{

}
return
GuiClose:
ExitApp
return
SkinForm(Param1 = "Apply", DLL = "", SkinName = ""){
if(Param1 = Apply){
DllCall("LoadLibrary", str, DLL)
DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName)
}else if(Param1 = 0) {
DllCall(DLL . "\USkinExit")
}}
Change1:
Tooltip, Applied!
SetTimer, RemoveToolTip, 500
Gui,Submit, Nohide
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
F1::
Soundbeep
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 2000
#Usehook
#SingleInstance, Force
version = Aimbot IRONSIGHT v0.5
SetKeyDelay,-1, 8
SetControlDelay, -1
SetMouseDelay, 0
SetWinDelay,-1
SendMode, InputThenPlay
SetBatchLines,-1
ListLines, Off
CoordMode, Pixel, Screen, RGB
CoordMode, Mouse, Screen
PID := DllCall("GetCurrentProcessId")
Process, Priority, %PID%, Normal
MouseX1:= 895
MouseX2:= 1035
Mousey1:= 425
Mousey2:= 515
EMCol := 0xD82A22
ColVn := 64
Health :=0
Body:=1
if(body=1)
{
AntiShakeX := 30
AntiShakeY := 30
ZeroX := (A_ScreenWidth // 2)
ZeroY := (A_ScreenHeight // 2)
CFovX := (A_ScreenWidth // 8)
CFovY := (A_ScreenWidth // 64)
}else {
AntiShakeX := 30
AntiShakeY := 30
ZeroX := 900
ZeroY := 450
CFovX := 20
CFovY := 20
}
xrange :=58
yrange :=85
ScanL := ZeroX - CFovX
ScanT := ZeroY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY
NearAimScanL := ZeroX - AntiShakeX
NearAimScanT := ZeroY - AntiShakeY
NearAimScanR := ZeroX + AntiShakeX
NearAimScanB := ZeroY + AntiShakeY
Timer:=0
Negative :=0
Positive :=0
Shoot :=0
ExitTimer:=0
ExitCount:=0
soundbeep
Loop, {
Gui,Submit, Nohide

if (aimtype=1){
GetKeyState, Mouse2, LButton , P
GoSub MouseMoves2
}
if (aimtype1=1)
{
GetKeyState, Mouse2, RButton, P
GoSub MouseMoves2
}
GoSub GetAimOffset1
}
MouseMoves2:
If ( Mouse2 == "D" ) {
if (aimbot=1 or aimbotsmooth=1)
{
blockinput, on
DllCall("mouse_event", "UInt", 0x01, "UInt", Movesx*(rx), "UInt", Movesy)
blockinput, off
}
if(1trigger =1)
{
if(sniper=1)
{
rx =0.5
Timeyes = 1
}else {
GuiControlget, rX
}
DllCall("mouse_event", uint, 4, int, x, int, y, uint, 0, int, 0)
if(sniper=1)
{
if(aimpixelx < zerox +20 and aimpixelx > zerox - 20 )
{
if(Timer > 200)
{
Timer := 0
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}}else {
if(aimpixelx < zerox +5 and aimpixelx > zerox - 5 )
{
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}}
if(trigger)
{
DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, , int, 0)
if(shoot=1)
{
if(sniper=1)
{
if(Timer < A_Tickcount)
{
Timer := A_Tickcount+1350
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
Shoot :=0
}}else {
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
Shoot :=0
}}
Shoot:=0
}
if(otriaim =1)
{
DllCall("mouse_event", uint, 4, int, x, int, y, uint, 0, int, 0)
if(aimpixelx < zerox + 5 and aimpixelx > zerox -5)
{
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}
if(triaim =1)
{
blockinput, on
if(Timer < A_Tickcount)
{
Timer:= A_tickcount + 300
if(Positive=1)
{
Dirx := (14.2/rxx)
Aimx := (Aimx-50) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Positive :=0
}
if(Negative =1 )
{
Dirx := (14.2/rxx)
Aimx := (Aimx-20) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Negative :=0
}}
blockinput, off
}
if(triaimhb =1)
{
blockinput, on
if(Timer < A_Tickcount)
{
Timer:= A_tickcount + 300
if(Positive=1)
{
Dirx := (14.2/rxx)
Aimx := (Aimx-50) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Positive :=0
}
if(Negative =1 )
{
Dirx := (14.2/rxx)
Aimx := (Aimx-20) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Negative :=0
}}
blockinput, off
}
}
Return
GetAimOffset1:
Gui,Submit, Nohide
if(trigger =1)
{
ImageSearch, , , 960, 0, 960, 540, *100 1.png
If Errorlevel = 0
ImageSearch, , , 960, 541, 960, 1080, *100 1.png
If Errorlevel = 0
ImageSearch, , , 0, 540, 960, 540, *100 1.png
If Errorlevel = 0
ImageSearch, , , 960, 540, 1920, 540, *100 1.png
if Errorlevel = 0
Shoot:=1
}
if(aimbotsmooth=1 or triaim =1)
{
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, ColVn, Fast RGB
if (!ErrorLevel=0) {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB
AimX := AimPixelX - ZeroX +50
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}}
if(aimbot=1 or triaimhb = 1)
{
ImageSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, *4 hhp2.bmp
if (!ErrorLevel=0)
{
Body:=1
Health:=0
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, ColVn, Fast RGB
if (!ErrorLevel=0) {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB
AimX := AimPixelX - ZeroX +50
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}else {
Health:=1
Body:=0
ImageSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB,
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}}}
Return
reload:
SleepF1:
SleepDuration = 1
TimePeriod = 1
DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
Iterations = 1
StartTime := A_TickCount
Loop, %Iterations% {
DllCall("Sleep", UInt, TimePeriod)
}
DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
Return
DebugTool1:
MouseGetPos, MX, MY
ToolTip, Mouse Pos: %Movesx% %MY% %cfovx% %cfovy%
ToolTip, Aimpixel: %aimpixelx% %AimY% ,,+3, 2
Return
Return
TEA(ByRef y,ByRef z, k0,k1,k2,k3)
{
s = 0
d = 0x9E3779B9
Loop 32
{
k := "k" . s & 3
y := 0xFFFFFFFF & (y + ((z << 4 ^ z >> 5) + z ^ s + %k%))
s := 0xFFFFFFFF & (s + d)
k := "k" . s >> 11 & 3
z := 0xFFFFFFFF & (z + ((y << 4 ^ y >> 5) + y ^ s + %k%))
}
}
XCBC(x, u,v, k0,k1,k2,k3, l0,l1, m0,m1)
{
Loop % Ceil(StrLen(x)/16)-1
XCBCstep(u, v, x, k0,k1,k2,k3)
If (StrLen(x) = 16)
{
u := u ^ l0
v := v ^ l1
XCBCstep(u, v, x, k0,k1,k2,k3)
}
Else {
u := u ^ m0
v := v ^ m1
x = %x%100000000000000
XCBCstep(u, v, x, k0,k1,k2,k3)
}
Return Hex8(u) . Hex8(v)
}
XCBCstep(ByRef u, ByRef v, ByRef x, k0,k1,k2,k3)
{
StringLeft p, x, 8
StringMid q, x, 9, 8
StringTrimLeft x, x, 16
p = 0x%p%
q = 0x%q%
u := u ^ p
v := v ^ q
TEA(u,v,k0,k1,k2,k3)
}
Hex8(i)
{
format = %A_FormatInteger%
SetFormat Integer, Hex
i += 0x100000000
StringTrimLeft i, i, 3
SetFormat Integer, %format%
Return i
}
Hex(ByRef b, n=0)
{
format = %A_FormatInteger%
SetFormat Integer, Hex
m := VarSetCapacity(b)
If (n < 1 or n > m)
n := m
Loop %n%
{
x := 256 + *(&b+A_Index-1)
StringTrimLeft x, x, 3
h = %h%%x%
}
SetFormat Integer, %format%
Return h
}
ALT::
pause,toggle,1
{
if(A_IsPaused=0)
{
Gui, Add, Text, x80 y5 w70 h30 , Running...!
Soundbeep
}
if(A_IsPaused=0)
{
Gui, Add, Text, x80 y5 w70 h30 , Running...!
Soundbeep
}
}
if(A_IsPaused=1)
{
Gui, Add, Text, x80 y5 w70 h30 , Paused...
Soundbeep
}
if(A_IsPaused=1)
{
Gui, Add, Text, x80 y5 w70 h30 , Paused...
Soundbeep
}
return
F12::
Reload
Return
#1 · 8y ago
RA
rafaelo1122
becouse you need to make for only 1 weapons
#2 · 8y ago
MA
mamadou25
yes, or change the valor
#3 · 8y ago
OS
OsagiSan
Here you go
Quote Originally Posted by Tiempo1 View Post
Need help for aimbot and triggerbot for ironsight ahk code
Error - https://gyazo.com/e66e22e2468d5a1c9df020b80fdb3a3f



k0 = 0x15348675
k1 = 0x34867867
k2 = 0x45378676
k3 = 0x78653446
l0 = 0x54378373
l1 = 0x78678676
m0 = 0x78678667
m1 = 0x78678375
#NoEnv
#SingleInstance force
version = Aimbot IRONSIGHT v0.5
Gui, Add, Text, x12 y40 w200 h30 , Start Bot { F1 }
Gui, Add, Text, x12 y80 w200 h30 , Restart Program { F12 }
Gui, Add, Text, x12 y100 w200 h30 , Pause/Resume { Alt }
Gui, Add, CheckBox, x12 y120 w53 h20 vaimbot, Aimbot
Gui, Add, Text, x65 y120 w20 h30 , ---
Gui, Add, CheckBox, x81 y120 w155 h20 vaimbotsmooth, Smooth Aimbot
Gui, Add, CheckBox, x12 y140 w70 h20 vtrigger, TriggerBot
Gui, Add, CheckBox, x81 y140 w100 h20 vsniper, SniperSettings
Gui, Add, CheckBox, x12 y160 w70 h15 vtriaim, Snapshot
Gui, Add, CheckBox, x81 y160 w145 h20 vtriaimhb, SnapshotHB
Gui, Add, CheckBox, x12 y185 w100 h25 vgenji, Updated Genja {V}
Gui, Add, CheckBox, x110 y180 w100 h20 vturn, 180 Turn
Gui, Add, CheckBox, x292 y0 w150 h40 vaimtype Checked, Left Click Hotkey
Gui, Add, CheckBox, x292 y25 w150 h40 vaimtype1, Right Click Hotkey
Gui, Add, Text, x270 y110 w120 h30 , Aim speed control
Gui, Add, Edit, x362 y110 w100 h30 vrx, 0.5
Gui, Add, Text, x235 y75 w120 h30 , Ingame Mouse Sensitivity
Gui, Add, Edit, x362 y75 w100 h30 vrxx, 19
Gui, Add, Button, x232 y150 w230 h90 gchange1, Apply settings
gui, add, button, x5 y5 h20 w70 gIssue, Help
Gui, Show
Loop {
Gui, Submit, NoHide
Sleep -1
}
Return
#If mccree=1
~RButton::
Loop
If GetKeyState("RButton") {
Sleep, 5
moveAmount := (moveAmount = 2) ? 3 : 0
mouseXY(moveAmount,3.4)
}
else
break
Return
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uin t,0)
}
#If
return
#If genji=1
~v::
MouseClick, right
Send {shift down}{shift up}
sleep, 400
if(turn=1)
{
GuiControlget, rXx
if(timer < A_TickCount)
{
timer := A_TickCount +300
DllCall("mouse_event", uint, 1, int, ((A_ScreenWidth // 2)*2)*(14.2/rxx), int, -50, uint, 0, int, 0)
}
sleep, 250
}
Mouseclick, Right
send {Mbutton down}{MButton Up}
Return
#If
Return
Reload
Return
Issue:
{

}
return
GuiClose:
ExitApp
return
SkinForm(Param1 = "Apply", DLL = "", SkinName = ""){
if(Param1 = Apply){
DllCall("LoadLibrary", str, DLL)
DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName)
}else if(Param1 = 0) {
DllCall(DLL . "\USkinExit")
}}
Change1:
Tooltip, Applied!
SetTimer, RemoveToolTip, 500
Gui,Submit, Nohide
return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return
F1::
Soundbeep
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 2000
#Usehook
#SingleInstance, Force
version = Aimbot IRONSIGHT v0.5
SetKeyDelay,-1, 8
SetControlDelay, -1
SetMouseDelay, 0
SetWinDelay,-1
SendMode, InputThenPlay
SetBatchLines,-1
ListLines, Off
CoordMode, Pixel, Screen, RGB
CoordMode, Mouse, Screen
PID := DllCall("GetCurrentProcessId")
Process, Priority, %PID%, Normal
MouseX1:= 895
MouseX2:= 1035
Mousey1:= 425
Mousey2:= 515
EMCol := 0xD82A22
ColVn := 64
Health :=0
Body:=1
if(body=1)
{
AntiShakeX := 30
AntiShakeY := 30
ZeroX := (A_ScreenWidth // 2)
ZeroY := (A_ScreenHeight // 2)
CFovX := (A_ScreenWidth // 8)
CFovY := (A_ScreenWidth // 64)
}else {
AntiShakeX := 30
AntiShakeY := 30
ZeroX := 900
ZeroY := 450
CFovX := 20
CFovY := 20
}
xrange :=58
yrange :=85
ScanL := ZeroX - CFovX
ScanT := ZeroY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY
NearAimScanL := ZeroX - AntiShakeX
NearAimScanT := ZeroY - AntiShakeY
NearAimScanR := ZeroX + AntiShakeX
NearAimScanB := ZeroY + AntiShakeY
Timer:=0
Negative :=0
Positive :=0
Shoot :=0
ExitTimer:=0
ExitCount:=0
soundbeep
Loop, {
Gui,Submit, Nohide

if (aimtype=1){
GetKeyState, Mouse2, LButton , P
GoSub MouseMoves2
}
if (aimtype1=1)
{
GetKeyState, Mouse2, RButton, P
GoSub MouseMoves2
}
GoSub GetAimOffset1
}
MouseMoves2:
If ( Mouse2 == "D" ) {
if (aimbot=1 or aimbotsmooth=1)
{
blockinput, on
DllCall("mouse_event", "UInt", 0x01, "UInt", Movesx*(rx), "UInt", Movesy)
blockinput, off
}
if(1trigger =1)
{
if(sniper=1)
{
rx =0.5
Timeyes = 1
}else {
GuiControlget, rX
}
DllCall("mouse_event", uint, 4, int, x, int, y, uint, 0, int, 0)
if(sniper=1)
{
if(aimpixelx < zerox +20 and aimpixelx > zerox - 20 )
{
if(Timer > 200)
{
Timer := 0
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}}else {
if(aimpixelx < zerox +5 and aimpixelx > zerox - 5 )
{
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}}
if(trigger)
{
DllCall("mouse_event", uint, 4, int, 0, int, 0, uint, , int, 0)
if(shoot=1)
{
if(sniper=1)
{
if(Timer < A_Tickcount)
{
Timer := A_Tickcount+1350
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
Shoot :=0
}}else {
DllCall("mouse_event", uint, 2, int, 0, int, 0, uint, 0, int, 0)
Shoot :=0
}}
Shoot:=0
}
if(otriaim =1)
{
DllCall("mouse_event", uint, 4, int, x, int, y, uint, 0, int, 0)
if(aimpixelx < zerox + 5 and aimpixelx > zerox -5)
{
DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)
}}
if(triaim =1)
{
blockinput, on
if(Timer < A_Tickcount)
{
Timer:= A_tickcount + 300
if(Positive=1)
{
Dirx := (14.2/rxx)
Aimx := (Aimx-50) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Positive :=0
}
if(Negative =1 )
{
Dirx := (14.2/rxx)
Aimx := (Aimx-20) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Negative :=0
}}
blockinput, off
}
if(triaimhb =1)
{
blockinput, on
if(Timer < A_Tickcount)
{
Timer:= A_tickcount + 300
if(Positive=1)
{
Dirx := (14.2/rxx)
Aimx := (Aimx-50) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Positive :=0
}
if(Negative =1 )
{
Dirx := (14.2/rxx)
Aimx := (Aimx-20) * Dirx
DllCall("mouse_event", uint, 4, int, aimx, int, aimy, uint, 0, int, 0)
Send, v
Negative :=0
}}
blockinput, off
}
}
Return
GetAimOffset1:
Gui,Submit, Nohide
if(trigger =1)
{
ImageSearch, , , 960, 0, 960, 540, *100 1.png
If Errorlevel = 0
ImageSearch, , , 960, 541, 960, 1080, *100 1.png
If Errorlevel = 0
ImageSearch, , , 0, 540, 960, 540, *100 1.png
If Errorlevel = 0
ImageSearch, , , 960, 540, 1920, 540, *100 1.png
if Errorlevel = 0
Shoot:=1
}
if(aimbotsmooth=1 or triaim =1)
{
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, ColVn, Fast RGB
if (!ErrorLevel=0) {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB
AimX := AimPixelX - ZeroX +50
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}}
if(aimbot=1 or triaimhb = 1)
{
ImageSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, *4 hhp2.bmp
if (!ErrorLevel=0)
{
Body:=1
Health:=0
PixelSearch, AimPixelX, AimPixelY, NearAimScanL, NearAimScanT, NearAimScanR, NearAimScanB, EMCol, ColVn, Fast RGB
if (!ErrorLevel=0) {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB
AimX := AimPixelX - ZeroX +50
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}else {
Health:=1
Body:=0
ImageSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, ScanG
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
negative:=0
positive:=1
}else {
DirX := -1
DirY := -1
negative:=1
positive:=0
}
If ( AimY > 0 ) {
DirY := 1
}
AimOffsetX := (AimX * DirX) * (14.2/rxx)
AimOffsetY := (AimY * DirY) * (14.2/rxx)
MovesX := Floor(( AimOffsetX ** ( 1 / 2 ))) * DirX
MovesY := Floor(( AimOffsetY ** ( 1 / 2 ))) * DirY
}}}
Return
reload:
SleepF1:
SleepDuration = 1
TimePeriod = 1
DllCall("Winmm\timeBeginPeriod", uint, TimePeriod)
Iterations = 1
StartTime := A_TickCount
Loop, %Iterations% {
DllCall("Sleep", UInt, TimePeriod)
}
DllCall("Winmm\timeEndPeriod", UInt, TimePeriod)
Return
DebugTool1:
MouseGetPos, MX, MY
ToolTip, Mouse Pos: %Movesx% %MY% %cfovx% %cfovy%
ToolTip, Aimpixel: %aimpixelx% %AimY% ,,+3, 2
Return
Return
TEA(ByRef y,ByRef z, k0,k1,k2,k3)
{
s = 0
d = 0x9E3779B9
Loop 32
{
k := "k" . s & 3
y := 0xFFFFFFFF & (y + ((z << 4 ^ z >> 5) + z ^ s + %k%))
s := 0xFFFFFFFF & (s + d)
k := "k" . s >> 11 & 3
z := 0xFFFFFFFF & (z + ((y << 4 ^ y >> 5) + y ^ s + %k%))
}
}
XCBC(x, u,v, k0,k1,k2,k3, l0,l1, m0,m1)
{
Loop % Ceil(StrLen(x)/16)-1
XCBCstep(u, v, x, k0,k1,k2,k3)
If (StrLen(x) = 16)
{
u := u ^ l0
v := v ^ l1
XCBCstep(u, v, x, k0,k1,k2,k3)
}
Else {
u := u ^ m0
v := v ^ m1
x = %x%100000000000000
XCBCstep(u, v, x, k0,k1,k2,k3)
}
Return Hex8(u) . Hex8(v)
}
XCBCstep(ByRef u, ByRef v, ByRef x, k0,k1,k2,k3)
{
StringLeft p, x, 8
StringMid q, x, 9, 8
StringTrimLeft x, x, 16
p = 0x%p%
q = 0x%q%
u := u ^ p
v := v ^ q
TEA(u,v,k0,k1,k2,k3)
}
Hex8(i)
{
format = %A_FormatInteger%
SetFormat Integer, Hex
i += 0x100000000
StringTrimLeft i, i, 3
SetFormat Integer, %format%
Return i
}
Hex(ByRef b, n=0)
{
format = %A_FormatInteger%
SetFormat Integer, Hex
m := VarSetCapacity(b)
If (n < 1 or n > m)
n := m
Loop %n%
{
x := 256 + *(&b+A_Index-1)
StringTrimLeft x, x, 3
h = %h%%x%
}
SetFormat Integer, %format%
Return h
}
ALT::
pause,toggle,1
{
if(A_IsPaused=0)
{
Gui, Add, Text, x80 y5 w70 h30 , Running...!
Soundbeep
}
if(A_IsPaused=0)
{
Gui, Add, Text, x80 y5 w70 h30 , Running...!
Soundbeep
}
}
if(A_IsPaused=1)
{
Gui, Add, Text, x80 y5 w70 h30 , Paused...
Soundbeep
}
if(A_IsPaused=1)
{
Gui, Add, Text, x80 y5 w70 h30 , Paused...
Soundbeep
}
return
F12::
Reload
Return
you were missing a parameter on the line of code i entered "ScanG" and it works
#4 · 7y ago
DO
domino22
I have started the AHK script, but whatever I do, none of the settings seem to have an effect. any ides?
#5 · 7y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • need help with injecting code/using itBy 0xx-kyle-xx0 in Combat Arms Help
    1Last post 8y ago
  • I need help with some coding please Someone answer thisBy Joshua4004 in Crossfire Coding Help & Discussion
    6Last post 12y ago
  • Need help with UAV/wallhack for Cheat engineBy Sirloth in Alliance of Valiant Arms (AVA) Help
    1Last post 14y ago
  • NEED help with verification code when registering!By vinogradov in WarRock Korea Hacks
    2Last post 19y ago
  • need help with teleport codeBy konni in WarRock - International Hacks
    0Last post 19y ago

Tags for this Thread

None