Jump to content

Recommended Posts

Posted

CODE
HotKeySet("-","GoBot")

HotKeySet("=","StopBot")

While 1

Sleep(1)

Wend

Func GoBot()

$math = 6512662

While 1

$Coords = PixelSearch(Random(360),Random(360),Random(360),Random(360), $math)

If Not @Error Then MouseClick('Left', $Coords[0], $Coords[1])

Do

Sleep(1000)

Until PixelGetColor($Coords[0], $Coords[1]) <> $math

Send("1")

Sleep(10500999)

Send("{f6}")

Hp();

Wend

EndFunc

Func Hp()

While 1

Send("{f8}")

Sleep(32216067)

WEnd

EndFunc

Func StopBot()

Exit

EndFunc

Okay this is what I'm trying to get a specific color and click on it but all it does is click random locations. :)

I would really appreciate some help.;]

Thanks.

Posted

also... SORRY AUTOIT GUYS... but if your looking for a color, i recomend SCAR... but pixelgetcolor may do you better

Posted

Yea I used PixelGetColor and printed it on a screen and copied it down to get the color.I really know no other way,so yes I'm searching for a color.

Posted

Yea I used PixelGetColor and printed it on a screen and copied it down to get the color.I really know no other way,so yes I'm searching for a color.

Okay I was wrong I really wasn't searching for a color.Anyway I would like to point out the color I'm looking for:http://img220.imageshack.us/my.php?image=20090129223156nq7.png

If anyones got that color code plz do share :).Or knows a way to get color codes Really please share XD.

Posted

You can use something like:

Hotkeyset("{HOME}","GetPIXEL")

While 1
Sleep(30)
WEnd

Func GetPIXEL()
$mousepos = MouseGetPos()
$color = PixelGetColor($mousepos[0],$mousepos[1])
msgbox(0,"color",$color)
EndFunc

to get a color under your mouse.

Posted (edited)

OK. Here's a start to fix your epic failing.

Firstly, that picture does nothing to help us. Where the hell is the color your are looking for? Tell us a specific RGB code (0xRRGGBB) and you may get somewhere. Now if you want to search an area of the screen use pixel search. Don't bother with the random crap, because it won't get you anywhere. If you want code, you can write it. This is about as simple as you get. If you insist on code examples, have a search. It has only been ask billions of times before. Also, don't bump your post unless it is 24 hours after your last post... (There is an edit button for adding additional information. Learn to use it)...

Okay thats all I have to say. When you've had another go, and if you still can't work it out, post your code. :)

Cheers,

Brett

Edited by BrettF

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...