Reliably starting a macro?

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
whstrain
Newbie
Posts: 3
Joined: Wed Feb 05, 2014 5:36 pm

Reliably starting a macro?

Post by whstrain » Wed Feb 05, 2014 6:29 pm

This is I'm sure an ultimate beginner question.

Goal: Without intervention, after reboot and user login watch for a windows to pop onto the screen and then click the OK button.

Current state: After reboot and login MS is running in the task bar. If the macro is started manually it waits for the windows to open and clicks OK beautifully.

Problem: I can't figure out how to make the macro start automatically. I have configured the advanced option "window event" to run when a windows that is always open is open.

One thing that is confusing me is that this macro does run on its own when I've finished editing and click OK.

I would be just fine if the macro runs 24/7 waiting for that window to open.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 05, 2014 8:06 pm

Just set it to run on startup. No need for a trigger. Go into macro properties, go to the run when tab, then advanced schedule properties and there's an option there to have it run on startup.

Alternatively forget the scheduler options, create a shortcut using the shortcut tool on the toolbar, this will create a desktop shortcut to the macro. Now move that shortcut to your startup folder under start/programs.

Alternatively make your own startup shortcut. It needs to be a shortcut to:

"C:\program files\macro scheduler\msched.exe" macro name

Adjust paths accordingly.

Alternatively if you have Pro just compile to a .exe and stick that or a shortcut to it in your startup folder.

I will stop with the alternatives now, but there are others ....
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

whstrain
Newbie
Posts: 3
Joined: Wed Feb 05, 2014 5:36 pm

Post by whstrain » Wed Feb 05, 2014 8:40 pm

Thanks for your time. I am not having a problem with the initial running of the macro.

The macro starts with a WaitWindowOpen.
The problem I'm having is that after seeing the window and completing the tasks the macro does not start over again even though I have told it to "Run Macro when this Window Exists".

I suppose I could goto>label back to the top but I thought I was choosing the more elegant way.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Feb 05, 2014 9:13 pm

Right. I see.

Well I'd do what you suggest. If your macro is running on startup anyway then why not let it run all the time. Loop back to the beginning once done.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

whstrain
Newbie
Posts: 3
Joined: Wed Feb 05, 2014 5:36 pm

Post by whstrain » Wed Feb 05, 2014 9:55 pm

Easy enough, thanks.

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts