kforsey Posted March 12, 2005 Posted March 12, 2005 Say that i want to make a bot for the follwonig Wesbite HEREand i wanted to make a script that would go to Brown, then Black, then Blue. Without using pre set co-ordinates such as go to X, Y. Is there any way to make Auto It go to a Certain Color on the screen and click on it? if so how?
Alterego Posted March 12, 2005 Posted March 12, 2005 it'd be significantly easier to just use InetGet to retrieve the page and then screenscrape the color from the source code. This dynamic web page is powered by AutoIt 3.
kforsey Posted March 13, 2005 Author Posted March 13, 2005 (edited) Ok, let me re-phrase my question, I'm trying to make an Aim Bot. and im trying to figure out if there is a way to make the mouse automatically move over and click a certain color player when he comes into screen view. Any ideas? Edited March 13, 2005 by kforsey
WHRobin566 Posted March 13, 2005 Posted March 13, 2005 (edited) thats easy just do this hmm wait nm cause im not good with pixel search thing but ill try 1 sec need to check somin ok here it GOES While 1 $pix = PixelSearch("0, 0, 1023, 767, Enter color here) MouseClick("left", $pix[0], $pix[1]) sleep(10) wend hmm ok let me think about this ok it should search and get pixel then send it to mouse to click there ok it should work but im not sure it might also get a error... well ok i got it While 1 if PixelSearch("0, 0, 1023, 767) = Enter color here Then $pix = PixelSearch("0, 0, 1023, 767, Enter color here) MouseClick("left", $pix[0], $pix[1]) endif sleep(10) wend k that will work i think but the secound line might make a error well i dont know just try it. Hope this helped. o yea and you might need to change range it scans. Edited March 13, 2005 by WHRobin566 Witch Hunter Robin
kforsey Posted March 13, 2005 Author Posted March 13, 2005 For the put color here part would i put in the name of the color like "blue" or would i put the code like #6633FF ?
WHRobin566 Posted March 13, 2005 Posted March 13, 2005 For the put color here part would i put in the name of the color like "blue" or would i put the code like #6633FF ?<{POST_SNAPBACK}>You put The hex or dem Witch Hunter Robin
kforsey Posted March 13, 2005 Author Posted March 13, 2005 So was the code i used right?, could you show me an example?
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