Page 1 of 1

Basic Aimbot

Posted: 15 Oct 2018, 05:31
by CPLNet
ZeroX := (A_ScreenWidth // 2) ;dont touch?
ZeroY := (A_ScreenHeight // 2)
CFovX := 200
CFovY := 200
ScanL := ZeroX - CFovX
ScanT := ZeroY - CFovY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY

loop {
if getkeystate("LButton", "p")
{

PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x000000, 0, Fast RGB
if errorlevel = 0
{
if (AimPixelX < A_ScreenWidth)
{
DllCall("mouse_event", uint, 1, int, AimPixelX/760, int, 0, uint, 0, int, 0)
sleep 150
}
if (AimPixelX > A_ScreenWidth)
{
DllCall("mouse_event", uint, 1, int, -AimPixelX/760, int, 0, uint, 0, int, 0)
sleep 150
}}
}}


return
INS::Pause

Re: Basic Aimbot

Posted: 15 Oct 2018, 10:48
by joedf
You only look for a black pixel? Was expecting more... :?:

Re: Basic Aimbot

Posted: 16 Oct 2018, 15:43
by Ruevil2
CPLNet wrote:
15 Oct 2018, 05:31
ZeroX := (A_ScreenWidth // 2) ;dont touch?
ZeroY := (A_ScreenHeight // 2)
CFovX := 200
CFovY := 200
ScanL := ZeroX - CFovX
ScanT := ZeroY - CFovY
ScanR := ZeroX + CFovX
ScanB := ZeroY + CFovY

loop {
if getkeystate("LButton", "p")
{

PixelSearch, AimPixelX, AimPixelY, ScanL, ScanT, ScanR, ScanB, 0x000000, 0, Fast RGB
if errorlevel = 0
{
if (AimPixelX < A_ScreenWidth)
{
DllCall("mouse_event", uint, 1, int, AimPixelX/760, int, 0, uint, 0, int, 0)
sleep 150
}
if (AimPixelX > A_ScreenWidth)
{
DllCall("mouse_event", uint, 1, int, -AimPixelX/760, int, 0, uint, 0, int, 0)
sleep 150
}}
}}


return
INS::Pause
Why are you dividing by 760 here? Shouldn't this vary based on the current screen size?

Re: Basic Aimbot

Posted: 21 Oct 2018, 03:32
by CPLNet
its a x axis variable divide by 760 for slower movement becasue 0x000000 black are many present on map so too many color found i fake then

Re: Basic Aimbot

Posted: 23 Oct 2018, 07:48
by Ruevil2
CPLNet wrote:
21 Oct 2018, 03:32
its a x axis variable divide by 760 for slower movement becasue 0x000000 black are many present on map so too many color found i fake then
Thank you. This is a nice short piece of code. I like it. Good work!

It might be difficult to get a good color without too much variation with only one PixelSearch. Sometimes I like to check a couple other pixels to see if they are 'close' to the target one.

Re: Basic Aimbot

Posted: 06 Nov 2018, 15:39
by CPLNet
thx bro :p

Re: Basic Aimbot

Posted: 06 Nov 2018, 16:23
by Cuadrix
You could have made a proper aimbot though. All the tools are available, step it up.
Jk, just ignore me.

Re: Basic Aimbot

Posted: 07 Nov 2018, 00:22
by joedf
@Cuadrix AHahaha :lol: :hehe:

Re: Basic Aimbot

Posted: 22 Jul 2019, 03:23
by DebuffedInRl
Anyone made better then? or more complex?

Re: Basic Aimbot

Posted: 23 Aug 2019, 09:03
by John
Of course. Everything from more sophisticated pixelbots to memory aimbots to "opencv & friends" implementations of varying degrees, but it's still a good start. A good next step would be to swap AHK's PixelSearch to a faster solution using gdip and lockbits.