Jump to content

Recommended Posts

Posted

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)
Endif
WEnd

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!

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
  • Recently Browsing   0 members

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