demonachize Posted July 20, 2007 Posted July 20, 2007 (edited) I am wondering if there is a built in function to pause a script until a certain color appears under the mouse pointer. I am trying to set up a program that for some reason has a flash based TOU that stays up seemingly different amounts of time. I would like to move the pointer to the I agree button and then wait for it to turn white then click thereafter since using the longest length of time it seems to stay up means a lot of time wasted. I attempted a search but apparently "color" is a disallowed search term. Edited July 20, 2007 by demonachize
mikehunt114 Posted July 20, 2007 Posted July 20, 2007 Loop MouseGetPos, PixelGetColor, and Sleep. IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]
demonachize Posted July 20, 2007 Author Posted July 20, 2007 Loop MouseGetPos, PixelGetColor, and Sleep.Perfect. Thanks a bunch.
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