Sign in to follow this  
Followers 0
vnavna

GUI Selection box with timer

4 posts in this topic

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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Yes it will just be for about 15 seconds. I have to test it out. I may knock it down to 10 seconds.

Share this post


Link to post
Share on other sites

I was able to manipulate this help file code a little to make it to more of what I want. How can I put your code into this. I am also having other issues with trying to put some text next to the buttons. Could you help with that?

Music_Choice.au3

Share this post


Link to post
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
Sign in to follow this  
Followers 0