Hok Posted June 1, 2008 Posted June 1, 2008 OK So I just found out about Pixelfind() and I am trying to make a really simple CurveBall bot. (http://www.addictinggames.com/curveball.html ) So I have this... HotKeySet("a", "End") While 1 $coord=PixelSearch(50, 10, 50, 50, 0xFFFFFF) MouseClick("left", $coord[0], $coord[1]) WEnd Func End() Exit EndFunc What exactly is wrong with it?
Paulie Posted June 1, 2008 Posted June 1, 2008 OK So I just found out about Pixelfind() and I am trying to make a really simple CurveBall bot. (http://www.addictinggames.com/curveball.html ) So I have this... HotKeySet("a", "End") While 1 $coord=PixelSearch(50, 10, 50, 50, 0xFFFFFF) MouseClick("left", $coord[0], $coord[1]) WEnd Func End() Exit EndFunc What exactly is wrong with it?The problem is that if the bot doesn't find the pixelin a search it will fail because the coords are undefinied simple condition to check HotKeySet("a", "End") While 1 $coord=PixelSearch(50, 10, 50, 50, 0xFFFFFF) If IsArray($Coord) then MouseClick("left", $coord[0], $coord[1]) EndIf WEnd Func End() Exit EndFunc Also, if this is for curveball, why are you clicking? wouldn't it make more sense to use MouseMove() ?
Hok Posted June 1, 2008 Author Posted June 1, 2008 (edited) I'll test that out... and I am using MouseClick because you can't serve with MouseMove EDIT: Just tried it. Mouse doesn't move... Edited June 1, 2008 by Hok
Paulie Posted June 1, 2008 Posted June 1, 2008 I'll test that out... and I am using MouseClick because you can't serve with MouseMove EDIT: Just tried it. Mouse doesn't move... Use a different color.Right now you are searching for Pure White with no shade variation. try different colors, preferably greenish ones.
Hok Posted June 1, 2008 Author Posted June 1, 2008 (edited) OK... But theoretically, wouldn't it work because there is pure white on the ball... EDIT: Tried this and it still wouldn't work... HotKeySet("a", "End") While 1 $coord=PixelSearch(50, 10, 50, 50, 0x6DFF4A, 100) If IsArray($Coord) then MouseClick("left", $coord[0], $coord[1]) EndIf WEnd Func End() Exit EndFunc Edited June 1, 2008 by Hok
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now