Help with script

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
krash2501
Newbie
Posts: 15
Joined: Thu Jul 21, 2016 7:04 pm

Help with script

Post by krash2501 » Tue Feb 21, 2017 9:25 pm

I am looking for a way to either have the script log off and then log back in using a username and password or set up the scheduler to do so with its auto login feature. If I were to use the scheduler to auto login then is there a way to set the scheduler to run within mins of a dialog button being pressed?

Thanks,
Krash

krash2501
Newbie
Posts: 15
Joined: Thu Jul 21, 2016 7:04 pm

Re: Help with script

Post by krash2501 » Tue Feb 21, 2017 11:53 pm

Basically I want to know if I can set the scheduled run time from a dialog box.

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

Re: Help with script

Post by Marcus Tettmar » Mon Feb 27, 2017 3:14 pm

Not sure I follow. Can you clarify?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

krash2501
Newbie
Posts: 15
Joined: Thu Jul 21, 2016 7:04 pm

Re: Help with script

Post by krash2501 » Mon Feb 27, 2017 5:14 pm

In the the schedule tab you can set when a script will run. I want to be able to set "Time to Run" from a dialog within the script without going though the macro scheduler program.

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

Re: Help with script

Post by Marcus Tettmar » Mon Feb 27, 2017 5:55 pm

No, you can't do that. But you could have your script loop continuously, waiting for the time that was entered. You could store the time in a text file perhaps and have your loop trigger some action when the time matches.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

krash2501
Newbie
Posts: 15
Joined: Thu Jul 21, 2016 7:04 pm

Re: Help with script

Post by krash2501 » Mon Mar 06, 2017 10:52 pm

This is what I did, but was looking to see if there was an easier way lol.

I have a scheduler set to run every min and it will check for a YES/NO in a file before it runs. Works fine.

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