|
Post by dozer2014 on Dec 7, 2018 18:54:05 GMT
Have made a number of macros scheduling system backups 3 times a day by running a batch job. All is working fine except for the shutdown command at the end of the day. Problem: I either get 4 "assigned" MMM icons and everything works fine, but none of my MMM quick keys work. Obviously because they are all assigned. I can do the same and leave an icon "open" to run the quick keys, but then the shutdown gets hung up because the "open" MMM is still loaded. All my macro's are loaded with the /e so they exit upon completion. Is there a way to "unload" that last icon at the proper time so manual intervention is not necessary for the shudown?
|
|
|
Post by Steve on Dec 9, 2018 2:31:38 GMT
Please correct me if i'm wrong but the issue you are having is that MMM is not closing correctly? There is a couple of things you can do to ensure MMM closes and exits at the end of a running macro. At the end of the macro try one of these options:
Option 1: Call the EXIT action at the end of the macro: 99 | RUN ACTION | EXIT - This will EXIT and close MMM Option 2: Kill the running MMM process. This is not ideal but will ensure the process is terminated: 99 | RUN ACTION | KILL PROCESS NAME | MiniMouseMacro - This will KILL the current running MMM Option 3: Kill ALL running MMM processes by using taskkill 99 | RUN ACTION | RUN VIA CMD /C | taskkill /F /IM minimousemacro.exe /T - This will KILL ALL MMM instances Option 4: Kill ALL running MMM processes by using taskkill on a delay after a clean EXIT 99 | RUN ACTION | RUN VIA CMD /C | ping -n 4 127.0.0.1>nul & taskkill /F /IM minimousemacro.exe /T 100 | RUN ACTION | EXIT - This will KILL ALL MMM instances after a 4 seconds delay with a clean EXIT from MMM
|
|
|
Post by dozer2014 on Dec 10, 2018 16:03:41 GMT
I did try one of them. The kill process, but I had spaces between "Mini Mouse Macro". Didn't work. I thought that it may not like killing itself. :-) I did find a way to make it work though. It was very simple. I made a very short macro that simply did a SHUTDOWN and then an EXIT and assigned it to a QuickKey. I then put a "Timer" at the end of the last macro that ran to give me the SHUTDOWN when I wanted it and then added a KeyPress for that QuickKey at the very end. Works like a champ! I'll definitely keep the other ways in mind though......
I'm learning how your program works and having fun doing it! :-))
Thanks Again Steve.......................
|
|