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
Basic Aimbot
- joedf
- Posts: 6862
- Joined: 29 Sep 2013, 17:08
- Facebook: J0EDF
- Google: +joedf
- GitHub: joedf
- Location: Canada, Quebec
- Contact:
Re: Basic Aimbot
You only look for a black pixel? Was expecting more... 






Windows 10 x64 Professional, Intel i5-8500 @ 3.00 GHz, 16GB DDR4 3200 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
Re: Basic Aimbot
Why are you dividing by 760 here? Shouldn't this vary based on the current screen size?CPLNet wrote: ↑15 Oct 2018, 05:31ZeroX := (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
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
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
thx bro :p
Re: Basic Aimbot
You could have made a proper aimbot though. All the tools are available, step it up.
Jk, just ignore me.
Jk, just ignore me.
----
- joedf
- Posts: 6862
- Joined: 29 Sep 2013, 17:08
- Facebook: J0EDF
- Google: +joedf
- GitHub: joedf
- Location: Canada, Quebec
- Contact:
Re: Basic Aimbot
@Cuadrix AHahaha








Windows 10 x64 Professional, Intel i5-8500 @ 3.00 GHz, 16GB DDR4 3200 MHz, NVIDIA GTX 1060 6GB | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
Who is online
Users browsing this forum: No registered users and 5 guests