-
Автор темы
- #1
Сливаю код AHK аима на Apex Legends . Думаю все знают как его собрать так что расписывать не буду .
Сам код
Сам код
Код:
;/ ----------------------------------------------------------------------------
; Script Version Version: 2.3
; Author: Scumer))tobi
; Script Function: QuakeLive Aim Automatronamaton
;/ ----------------------------------------------------------------------------
#Persistent
#KeyHistory, 0
#NoEnv
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
#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
PID := DllCall("GetCurrentProcessId")
Process, Priority, %PID%, Normal ;all from above is for options script not very important but you need yo let it like that.
EMCol := 0x000000 ;this color to search 0x000000 = 00Green 00Blue 00Red so its BLACK!
ColVn := 0 ;colvn = color variation value if you setup for example to 15 it take black to 15 color black so it count 15 color from black to light (with color) max is 255 = white (all colors are searched)
ZeroX := 960 ;zerox is the dot of center of your screen in width axis
ZeroY := 540 ; same like above but for Height axis
CFovX := 100 ;square search color size for X
CFovY := 100 ;same for Y
ScanL := ZeroX - CFovX ; is the box from 960 X to make a search in pixelsearch function Left To Top To Right To Bottom
ScanR := ZeroX + CFovX
ScanT := ZeroY - CFovY
ScanB := ZeroY + CFovY
Loop, {
PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, EMCol, ColVn, Fast RGB ; is the function to search black color
GoSub GetAimOffset
GoSub GetAimMoves ;is moving to function next
GoSub MouseMoves
}
GetAimOffset:
AimX := AimPixelX - ZeroX
AimY := AimPixelY - ZeroY
If ( AimX > 0 ) {
DirX := 1
}
If ( AimX < 0 ) {
DirX := -1
}
If ( AimY > 0 ) {
DirY := 1
}
If ( AimY < 0 ) {
DirY := -1
}
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY ;all are calcule matrice and offset to make aimbot in 3d space
Return
GetAimMoves:
RootX := Ceil(( AimOffsetX ** ( 1 / 2 )))
RootY := Ceil(( AimOffsetY ** ( 1 / 2 )))
MoveX := RootX * DirX
MoveY := RootY * DirY ;same here
Return
MouseMoves:
DllCall("mouse_event", uint, 1, int, MoveX/10, int, MoveY/10, uint, 0, int, 0) ;this is the movex/10 for low speed and same for MoveY if you want more fast movement juste reduce /10 by /5 or what you want if you want more you can also change /10 by *5 or *10 anything
sleep 17 ; sleep is a pause, moving to movex and y every 17milliseconds if you setup more that will be more long to slowly if you setup 0 or none that will be normale value without pause
Return
INS::PAUSE ;is key to pause the script like off when you repress insert that reworking script.
Последнее редактирование модератором: