nkormanik Posted July 16, 2018 Report Share Posted July 16, 2018 Suppose we have a scheduled macro. Scheduled to end in 5 minutes. Is there a way to put the countdown into a text box? i.e., 5:00 4:59 4:58 ... 0:01 Gotta be. Thanks! Nicholas Kormanik Quote Link to comment Share on other sites More sharing options...
rberq Posted July 16, 2018 Report Share Posted July 16, 2018 You can use Text Box Display, with the remaining time displayed as a variable. Something like this: // Variable Set String %T1% "4:58" Text Box Display: %T1% Delay 700 Milliseconds Text Box Close: %T1% // You may have trouble getting it display as often as once per second, simply due to the timing within ME. As far as I know, you can't change the value within an already-displayed text box, so it has to be closed and a new box displayed for each time change. Quote Link to comment Share on other sites More sharing options...
Samrae Posted July 16, 2018 Report Share Posted July 16, 2018 2 hours ago, rberq said: As far as I know, you can't change the value within an already-displayed text box, so it has to be closed and a new box displayed for each time change. If you choose the 'Floating box until "Close Box" or end of macro' option in Text Box Display you can use the 'Update Textbox' comand later in your macro. To see how this works check out the "Show Macro Progress" macro in the samples.mex macro file. Quote Link to comment Share on other sites More sharing options...
Cory Posted July 16, 2018 Report Share Posted July 16, 2018 I had a separate multipurpose macro for this I would use as a subroutine. A simple loop with 1 second delay. Update text. I'd pass the parameters like number of seconds, message and so forth. It's slightly more than one second because of the run time of the macro but in testing I found it negligible. I had many cool features of the display as well as the ability to cancel. When the macro is done, your main macro continues. I used it in many macros. Quote Link to comment Share on other sites More sharing options...
nkormanik Posted July 16, 2018 Author Report Share Posted July 16, 2018 You guys are super. Thanks! I'll try and work with it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.