PoweredDeath Posted July 30, 2006 Posted July 30, 2006 How could I make an autoit sequence that would search for a color then hover the mouse over the color and start a new script, but if there's no color it would simply exit the script.
Paulie Posted July 30, 2006 Posted July 30, 2006 Check out PixelCheck in the helpfile.You Mean PixelSearch() Try this $color = PixelSearch(5,5,@DesktopWidth-5, @DesktopHeight-5, *Hex for Color*) If IsArray($color) then MouseMove($color[0], $color[1],0) ;Run other script here Else Exit Endif
PoweredDeath Posted July 30, 2006 Author Posted July 30, 2006 How could I make that script follow a pixel? Or like loop it until the color is gone.
Paulie Posted July 30, 2006 Posted July 30, 2006 (edited) How could I make that script follow a pixel? Or like loop it until the color is gone.While...Wend loopsRead the helpfilehttp://www.autoitscript.com/autoit3/docs Edited July 30, 2006 by Paulie
eynstyne Posted July 30, 2006 Posted July 30, 2006 Use the Do...Until loop Do ;; Until <Condition> F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Paulie Posted July 30, 2006 Posted July 30, 2006 I should have jsut said "Pixel functions" XDLol thats ok, we all make little errors
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