Brett W Posted March 2, 2007 Posted March 2, 2007 Quick question, Has anyone ever used a timer for dialog boxes? I have a system that allows the user a second chance to print a receipt, but a lot of the time the user doesn't reply to the dialog. I want to set a time to how long the dialog box can be displayed. I know I can do this through a layout with start/finish times, but just wondered if there are other avenues like a timer.
Raybaudi Posted March 2, 2007 Posted March 2, 2007 Allow User Abort [Off] Set Variable [$time; Value: Get(CurrentTime)] Loop Show Custom Dialog ["Timer On"; "Wait a moment, please..."] Exit Loop If [Get(CurrentTime) > $time + 10] End Loop
Brett W Posted March 2, 2007 Author Posted March 2, 2007 (edited) That is exactly what I thought, but when the dialog shows, it is not evaluating the start time. So it waits for the user to enter an answer before it looks at the time to see if it is up. The program just hangs waiting for the user to enter the answer. I need the timer to evaluate while the dialog is showing and cancel the dialog that is on the screen if the time is up. Thanks, though. Any other ideas? Edited March 2, 2007 by Guest
mr_vodka Posted March 3, 2007 Posted March 3, 2007 http://www.troi.com/software/dialogscreenshots.html#flash
bruceR Posted March 6, 2007 Posted March 6, 2007 Well on the Mac it's simple with applescript and "giving up after" Display dialog "Hello world" giving up after 3
Brett W Posted March 6, 2007 Author Posted March 6, 2007 Thanks for the post regarding the plug-in. This idea would just be a nice touch to the solution, didn't really want to spend money on it. On the topic of the apple script, nothing like that is set up in windows, right? The user set-up is on a windows pc as well.
Recommended Posts
This topic is 6476 days old. Please don't post here. Open a new topic instead.
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