Jump to content

GUI Selection box with timer


Recommended Posts

Is there a way to create a GUI box with buttons with a count down timer that will run the default if nothing is selected or pressed?

I am installing office on multiple computers with the option of music during the install. I am trying to make a selection GUI box that give the user a choice of what music he or she would like to listen to during the install. The thing is that if no button is press in a certain amount of time I would like a default sound file play after a timer runs out on the GUI box.

Link to comment
Share on other sites

Is there a way to create a GUI box with buttons with a count down timer that will run the default if nothing is selected or pressed?

I am installing office on multiple computers with the option of music during the install. I am trying to make a selection GUI box that give the user a choice of what music he or she would like to listen to during the install. The thing is that if no button is press in a certain amount of time I would like a default sound file play after a timer runs out on the GUI box.

Just in seconds? or something with like "hours:mins:secs"

If its just seconds just do this:

While 1
For $i = 30 to 0 step -1
Sleep(1000)
GuiCtrlSetData($label, $i)
Next
WEnd
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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