Jump to content

Recommended Posts

Posted (edited)

Still doesnt work, the error says:

Opt("[Conquer2.0]", 2)

Error: Unkown option or bad parameter specified..

I used this code:

Opt("[Conquer2.0]", 2)
WinWaitActive("Conquer")
$color = 0xB50400
$game = 0
HotKeySet("+p", "Play")
HotKeySet("{ESC}", "quit")
While 1
    If $game = 1 Then
        $coord = PixelSearch( 0, 0, 1023, 651, $color)
        If IsArray($coord) = 1 Then
            MouseClick('left', $coord[0], $coord[1] - 15, 1, 0)
            Sleep(530)
        EndIf
    EndIf   
WEnd   
Func Play()
    If $game < 1 Then
        $game = $game + 1
    Else
        $game = 0
    EndIf
EndFunc
 
Func quit()
    Exit
EndFunc
Change your opt at top to

Opt("WinTitleMatchMode",2)

You don't actually need to put window title in there

Edit:

Ahh Smoke beat me

Edited by Paulie
Posted

Smoke and paulie, thank you very much for your help, I have one more question however?

Instead of doing:

$coord = PixelSearch( 0, 0, 1023, 651, $color)

Is there a way to maybe search like a small area around the mouse, such as a 50 by 50 pixel area around the mouse to perform this action instead of searching the whole screen, this should help speed it up and not lcikc on unwanted red pixels...

Thanks for any help once again!

Posted (edited)

Smoke and paulie, thank you very much for your help, I have one more question however?

Instead of doing:

$coord = PixelSearch( 0, 0, 1023, 651, $color)

Is there a way to maybe search like a small area around the mouse, such as a 50 by 50 pixel area around the mouse to perform this action instead of searching the whole screen, this should help speed it up and not lcikc on unwanted red pixels...

Thanks for any help once again!

Yes there is, Simucal did this in his aimbot proof

Search forums for his posts, and there should be a link in his sig, i'd find the link, but i'm lazy :D

Edit:

link

http://www.autoitscript.com/forum/index.ph...=9&t=24784&st=0

Edited by Paulie
Posted

Also, Just in case you can't understand Simucals post, (as his proof does way more that just that) a more basic one might include

$pos = MouseGetPos()
$coord = Pixelsearch($pos[0]+50, $pos[1]+50, $pos[0]-50, $pos[1]-50, %color%)

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
×
×
  • Create New...