Sign in to follow this  
Followers 0
Thoranus

Aimbot

6 posts in this topic

Hey, I'm trying to make a aimbot, but it doesn't work.

hotkeyset("{f1}","stop")
hotkeyset("{f2}","pause")
$color=0xFF0000
$pause=false

while 1
    $head_search=PixelSearch(0,0,1280,1024,$color,5,1)
    if $head_search= not @error then
        MouseClick ("left",$head_search[0],$head_search[1],1,1)
    EndIf
    sleep (5)
WEnd

func stop ()
    Exit
EndFunc

func pause()
    $pause=not $pause
    if $pause=true Then
        Do
            sleep (5)
        until $pause=False
    EndIf
EndFunc

I don't know what to do.

Share this post


Link to post
Share on other sites



For which shooter?

Share this post


Link to post
Share on other sites

your searching for a red pixel.. thats prolly not gonna work

Share this post


Link to post
Share on other sites

Like Seagul said, searching for a pure red pixel probably isn't going to work. You need to find a unique pixel color in the object to look for. That way, the pixelsearch function doesn't get caught on another object.


[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

and im not so sure about this

yours if $head_search= not @error then

should be if @error then ; you already declared what headsearch was.

your pause function isnt lookin quite right either do you write your stuff in scite it has a syntax checker.

Edited by Seagul

Share this post


Link to post
Share on other sites

but i kinda have a better version use this perfect base...

; Find a pure red pixel in the range 0,0-20,300
Opt("MustDeclareVars", 0)
local $pause
HotKeySet("+!d", "main")  ;Shift-Alt-d
HotKeySet("{PAUSE}", "Pause")
HotKeySet("{ESC}", "Terminate")
While 1
    Sleep(100)
WEnd

func main()
while 1
$CoOrd = PixelSearch(400, 300, 600, 400, 0xff0000, 20)   ; Looks for colour 0xff0000.
If Not @error Then ;If it exists then
MouseClick("Left", $CoOrd[0], $CoOrd[1], 1, 0) ;Clicks the first instance of that colour
else
EndIf
wend
endfunc

Func Pause()
   $pause=not $pause
    if $pause=true Then
        Do
            sleep (5)
        until $pause=False
    EndIf
        ToolTip('Script is "Paused"',0,0)
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0