Jump to content
Sign in to follow this  
Kenshin

lil help with my bot.

Recommended Posts

Kenshin

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.

Share this post


Link to post
Share on other sites
qazwsx

is the color you are looking for in those random locations? Because you seem to be searching random areas of the screen.

Share this post


Link to post
Share on other sites
CodyBarrett

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

Share this post


Link to post
Share on other sites
Kenshin

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.

Share this post


Link to post
Share on other sites
Kenshin

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.

Share this post


Link to post
Share on other sites
capo

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.

Share this post


Link to post
Share on other sites
BrettF

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

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  

×