bob3d
Full Member
Posts: 26
|
Post by bob3d on Aug 25, 2018 19:08:43 GMT
Is it possible to display a Message Box that says the Macro is running and then have the Message Box disappear when the macro has completed with no user necessary to click an OK button???
|
|
|
Post by Steve on Aug 27, 2018 1:16:05 GMT
It's not possible to change the MMM message box default behavior at this stage. I'm looking into adding some extra options to the message box action but for now you will have to use something external to MMM for this.
1 | RUN ACTION | | | | RUN VIA CMD /C | msg /time:60 "%username%" "Hello World" The line above will launch a message box from the command line with a 60 second time out. Changing that value to 0 will cause it to stay until 'OK' is clicked. Terminating the message box when the macro has completed I haven't been able to do. The msg process is handled internally to windows out of csrss.exe. Without killing that process, which is not ideal because it handles others, I am stumped. If you can figure out how to kill it without a manual time out or 'OK' click please let me know.
Cheers, Steve.
|
|
bob3d
Full Member
Posts: 26
|
Post by bob3d on Aug 27, 2018 14:07:54 GMT
I guess I can add up all the time in milliseconds, then convert to seconds, then add to the beginning of the macro the command "1 | RUN ACTION | | | | RUN VIA CMD /C | msg /time:xx "%username%" "Macro running, do not touch", where xx is the number of seconds that the total macro runtime in milliseconds rounds up to. That would be one workaround. Thanks for your insight into using a Windows message box to accomplish the task!
- bob
|
|