PcExpert Posted September 24, 2010 Posted September 24, 2010 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!
AdmiralAlkex Posted September 24, 2010 Posted September 24, 2010 Try TimerInit/TimerDiff .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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