Jump to content
Sign in to follow this  
Hello Me You

Show live time out left time

Recommended Posts

Hello Me You

How do you show the left time of time out time?

MsgBox(0, "Msg Title", "This window will close in: " & the time out time left & "seconds", 10)

EDIT: The MsgBox text will look like this:

This window will close in: 10 seconds

This window will close in: 9 seconds

This window will close in: 8 seconds

This window will close in: 7 seconds

This window will close in: 6 seconds

This window will close in: 5 seconds

This window will close in: 4 seconds

This window will close in: 3 seconds

This window will close in: 2 seconds

This window will close in: 1 seconds

And Close

Edited by Hello Me You

Random

Share this post


Link to post
Share on other sites
SmOke_N

Not going to happen unless you do multiple Message Boxes and time each one out in 1 second... or use a GUI that updates the label every second.

Edit:

Or use /AutoIt3ExecuteLine or /AutoIt3ExecuteScript to launch a message box and have the main script change the Control Label every 1 second. I might have done this already :whistle:

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Shevilie

Create your own GUI :whistle:


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
SmOke_N

In reply to my Edit:

Gary actually added the count down timer to it:

http://www.autoitscript.com/forum/index.ph...st&p=232394


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Hello Me You

Create your own GUI :whistle:

I was expecting that. Thanks anyway.

Random

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  

×