Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Putting a timer on a Dialogue Box


This topic is 6476 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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

Posted (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 by Guest
Posted

http://www.troi.com/software/dialogscreenshots.html#flash

Posted

Well on the Mac it's simple with applescript and "giving up after"

Display dialog "Hello world" giving up after 3

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.