Which macro is running?
Moderators: JRL, Dorian (MJT support)
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Which macro is running?
I have noticed quite frequently that one of my macros seems to be starting on its own. This is signified by the Ms logo flashing in the systray.
I don't have logging enabled on any of my macros, so how can I tell which macro is running, without having to go through all my macros and individually turn on logging?
I don't have logging enabled on any of my macros, so how can I tell which macro is running, without having to go through all my macros and individually turn on logging?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
1. Open Macro Scheduler.
2. Select the sample macro "Some Info"
3. Click on the Icon to Run the macro.
4. Observe center section of status line at the bottom of the Macro Scheduler Window, should see Running: Some Info
Macro must be running, not completed.
See logs for info on macros already completed running.
2. Select the sample macro "Some Info"
3. Click on the Icon to Run the macro.
4. Observe center section of status line at the bottom of the Macro Scheduler Window, should see Running: Some Info
Macro must be running, not completed.
See logs for info on macros already completed running.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
hi bob,Bob Hansen wrote:1. Open Macro Scheduler.
2. Select the sample macro "Some Info"
3. Click on the Icon to Run the macro.
4. Observe center section of status line at the bottom of the Macro Scheduler Window, should see Running: Some Info
Macro must be running, not completed.
See logs for info on macros already completed running.
How strange, that works just as you said. but still I see my macro icon flashing yet it isn't declaring itself on the status bar.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
I have a few which are set to start up when macro scheduler loads, then run every few minutes. for instance ones which check a web server is reachable. If they can't perform their job, they will wait 60 seconds and try again. If they cannot find a server after 20 loops they send me an email telling me a server has been down for 20 minutes. So when I see the flashing icon, I know it's probably one of these server checking macros, the question is finding out which one.armsys wrote:Hi Horoscopes2000,
Are you sure that one of your macros seems to be starting on its own? Otherwise, it could be the one that hasn't yet completed. The default timeout of several commands such as WaitWindowOpen> is infinite.
Happy scripting.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Horoscopes2000....just a remember that you put a restriction on us when you said:
Or modify each of the macros themselves to update an INI file on start/stop or some other flag that you can check to see what is running. I suspect that it is easier to turn on logging vs. modifying the scripts.
If you are sure which of the ones that could possibly be running, why not turn on the logging for those only? Turning on logging is pretty quick, logs generally take little disk space, can be set to delete previous log to stay small.without having to go through all my macros and individually turn on logging?
Or modify each of the macros themselves to update an INI file on start/stop or some other flag that you can check to see what is running. I suspect that it is easier to turn on logging vs. modifying the scripts.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Hi Horoscopes2000,
Bob's troubleshooting guide is highly recommended and should be your first choice.
Alternatively, you may insert Msg> at the top of your scripts:
Msg>MyScript1.scp is currently running...
Again, it's a matter of personal work style.
BTW, when a script is calling multiple scripts (subroutines) embedded in multiple .scp files, in case of fatal error, Macro Scheduler won't offer any hint about which .scp file causes the error. In this scenario, again, logging is the most effective time-saving troubleshooting method.
Happy scripting.
Bob's troubleshooting guide is highly recommended and should be your first choice.
Alternatively, you may insert Msg> at the top of your scripts:
Msg>MyScript1.scp is currently running...
Again, it's a matter of personal work style.
BTW, when a script is calling multiple scripts (subroutines) embedded in multiple .scp files, in case of fatal error, Macro Scheduler won't offer any hint about which .scp file causes the error. In this scenario, again, logging is the most effective time-saving troubleshooting method.
Happy scripting.