Jump to content
Sign in to follow this  


Recommended Posts


I have a flash application for which I would like to automate some things. my autoitscript uses PixelgetColor to 'see' if there is some action needed (a mouseclick). Sometimes however, the mouseclick doesn't come through, or is not being done or so.

The scriptpart lloks like

While 1
If Pixelgetcolor($x, $y) = $color then
mouseclick($mousex, $mousey, 1)

But I need pixelgetcolor to timeout after some seconds so I can redo the action (mouseclick) if the mouseclick isn't done. But how do I do this? I know that the WinWait() commands can have timeouts, but that doesn't work here. Any ideas how this can be done? Thank you!

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.