BlaBla98 Posted July 10, 2018 Share Posted July 10, 2018 Hello, is it possible to make that the Sleep time maximum is, when the Script doesnt see a Picture anymore? example : Sleep(Random(500, 10000, 1)) 10000 should be the time, if the picture is away. Refers the sleeptime only to the function, where it is coded or to the whole Script? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 10, 2018 Developers Share Posted July 10, 2018 Sure, check out TimerInit() and TimerDiff() and perform the check for the max time yourself. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 10, 2018 Moderators Share Posted July 10, 2018 @BlaBla98 are you waiting until a specific application window is gone? Then use WinExists; see the help file example. If it is a picture in a web page, or something else, more information would be beneficial. The more you provide, the better able we are to assist. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
BlaBla98 Posted July 10, 2018 Author Share Posted July 10, 2018 Itsa Picture of a webpage Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted July 10, 2018 Moderators Share Posted July 10, 2018 (edited) Okay, going to make us pull teeth... When you say "doesn't see a picture anymore", does this mean the web page has closed, or just the picture? What browser are you using? What is the webpage, and what is the picture? What causes the picture to appear? How long does it normally stay up? Etc. etc. etc. Help us help you Edited July 10, 2018 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
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