#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.1.1 (beta)
Author: Edgard_BR_SP
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; pixel search bot
; include the misc UDF library
; UDF = user defined Function
#include <Misc.au3>
;----- set the hotkeys ------;
HotKeySet("{f3}", "chosecolor")
; set the escape button to
; the exit function
HotKeySet("{f1}", "_exit")
HotKeySet("{f11}", "start")
HotKeySet("{f12}", "stop")
; declare the variable color to be
; used globaly
Global $color
; declare ON globaly and set it
; to false(off)
Global $ON = False
Global $Aimbot = 0;Search for file.
Global $seachcolor = 0xFFFFFF; declare the variable color to be
Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay", 0)
Opt("MouseClickDownDelay", 0)
Hotkeyset ("{f10}", "AimShootAimbot")
$x1 = 0
$y1 = 0
While 1
Sleep(30); dont fuck the CPU
; if the on is set to true
If $ON = True Then
; this is the pixel search function
; the last parameter (40) is the
; shade variation
; the other parameters are the
; pixel search area
; change them so they fits your needs

$coord = PixelSearch(0, 0, 400, 400, $color, 40)
; if the return of coord is an array
; which means a pixel was found
If IsArray($coord) = 1 Then
; left click on the pixel
MouseMove($coord[0],$coord[0])
MouseClick("left",$coord[0],$coord[1])
EndIf
EndIf
WEnd
; chose color function
Func chosecolor()
; this will display a color chose window
; the chosen color will be stored in the
; variable $color
$color = _ChooseColor(2, 0x0080C0, 2, "")
MsgBox(0,'',$color)
EndFunc ;==>chosecolor
; func extit
Func _exit()
; simply exits the script
Exit
EndFunc ;==>_exit
;start func
Func start()
; set the variable to true
$ON = True
EndFunc ;==>start
;start func
Func stop()
; set the variable false
$ON = False
EndFunc ;==>stop
Func AimShootAimbot()
$Aimbot = 0
If _ImageSearch("CHARS_M_HEAD.rez", 1, $x1, $y1, 0) = 1 Then
MouseMove($x1,$y1,3)
MouseClick($x1,$y1,3);If file is found left click.
$Aimbot = 0
If $Aimbot = 0 then
$coord = PixelSearch(789, 601, 794, 615, $searchcolor,25))
If IsArray($coord) = 1 Then
MouseClick('left', $coord[0], $coord[1], 1, 0);If image color is found click.
sleep(100)
EndIf
EndIf
Tooltip("AimBot is Auto-Shooting", 0, 0);Activate tooltip once aimbot is running.
Sleep(10000)
EndIf
Endfunc