Jump to content

Wait for a certain color under pointer


Recommended Posts

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 by demonachize
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...