Grex Posted January 24, 2008 Share Posted January 24, 2008 Hello, I read an old script and see: if (PixelGetColor(528,425) = 16710616) then MouseMove(513,423,0) MouseClick("left",513,423,1) Endif but, how does he found out the Pixel: 16710616 the tool AutoIt v3 Window Info doesn't support it or? Please let me know the name of the tool, how I get this Pixel: 16710616 and not 0x00000 or others, 0x xxxxxx Thanks Grex Link to comment Share on other sites More sharing options...
Toady Posted January 24, 2008 Share Posted January 24, 2008 16710616 is the decimal version of the RGB hex number 0xFEFBD8. Open up MS calculator and convert between these two. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Grex Posted January 24, 2008 Author Share Posted January 24, 2008 thanks, and I have a new question: I will say, if (PixelGetColor(528,425) = 16710616) then MouseMove(513,423,0) MouseClick("left",513,423,1) Endif but he makes the "If" only for 1 second, he should make it for every time, also the Pixel can come in 1 minute or 1 hour, any idea, how does run this script dateless? Link to comment Share on other sites More sharing options...
Toady Posted January 24, 2008 Share Posted January 24, 2008 (edited) while 1 if (PixelGetColor(528,425) = 16710616) then MouseMove(513,423,0) MouseClick("left",513,423,1) Endif sleep(1) wend dateless you mean to keep searching that pixel right? Edited January 24, 2008 by Toady www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Grex Posted January 24, 2008 Author Share Posted January 24, 2008 (edited) thanks, thanks a lot. ok, and one thing^^ how I can stop the script, or pause? also, is there a key option like this: If press F4 exit If press F3 pause is that possible? And thanks ! OK, i have it ^^ HotKeySet thanks for the very good and very fast support. Edited January 24, 2008 by Grex Link to comment Share on other sites More sharing options...
Toady Posted January 24, 2008 Share Posted January 24, 2008 Yes look at hotkeyset() in the help file. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
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