Start up macro
Moderators: Dorian (MJT support), JRL
Start up macro
Hi all. Is it possible to make so a macro runs automaticly when windows start? Just so I don't have to open the program and choose run macro.
Hi,
Yes, there are a number of ways to do this:
1) If Macro Scheduler already runs on startup just edit the macro properties click the Run When tab, click Advanced and check 'Run Immediately Anyway' under 'When System Restarts...'.
2) This one will work whether or not Macro Scheduler runs on startup. Make a shortcut to the macro in your Startup folder, two ways to do this:
i. c:\program files\mjt net ltd\macro scheduler\msched.exe macroname
(or ...msched.exe filename.scp)
ii. If during setup you allowed the installer to create file associations for .scp files, just set the shortcut to:
c:\bla bla bla\yourscriptfile.scp
3) If you have the PRO version compile the script to an executable and make a shortcut to this in the Startup folder.
Yes, there are a number of ways to do this:
1) If Macro Scheduler already runs on startup just edit the macro properties click the Run When tab, click Advanced and check 'Run Immediately Anyway' under 'When System Restarts...'.
2) This one will work whether or not Macro Scheduler runs on startup. Make a shortcut to the macro in your Startup folder, two ways to do this:
i. c:\program files\mjt net ltd\macro scheduler\msched.exe macroname
(or ...msched.exe filename.scp)
ii. If during setup you allowed the installer to create file associations for .scp files, just set the shortcut to:
c:\bla bla bla\yourscriptfile.scp
3) If you have the PRO version compile the script to an executable and make a shortcut to this in the Startup folder.
MJT Net Support
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Easy to do. There are a number of ways. Here are three:
Bob
Hope this helps................good luck,A.
1. Right click on the macro title, then left click on Desktop Shortcut. This will place a Shortcut icon on your Desktop
2. Move the shortcut icon from your Desktop into your StartUp Folder: C:\WINDOWS\Start Menu\Programs\StartUp
B.
1. Copy the macro script (*.scp) from its folder (C:\Program Files\MJT Net Ltd\Macro Scheduler)? into your StartUp Folder: C:\WINDOWS\Start Menu\Programs\StartUp
C.
1. Right click on the macro title, then left click on Properties.
2. Go to the tab for Run When.
3. Click on Advanced Options.
4. In the section for Recovery, activate the button for "Run Immediately Anyway"
5. Click OK to close Advanced Options.
6. Click OK to close Properties.
Bob
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Four more?
I suppose we could also add the *.scp or compiled version to windows.ini file
on the Load line, or
on the Run line.
OR
Edit the Registry, adding a new string value to Run:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
OR
Add a batch file to StartUp folder with
"C:\Program Files\Path\msched.exe" MacroName
Just a quick reactionary thought..............Hope it helps......
I suppose we could also add the *.scp or compiled version to windows.ini file
on the Load line, or
on the Run line.
OR
Edit the Registry, adding a new string value to Run:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
OR
Add a batch file to StartUp folder with
"C:\Program Files\Path\msched.exe" MacroName
Just a quick reactionary thought..............Hope it helps......
Hi, according to the HELP file, an example was provided as follows:
RegistryWriteKey>HKEY_CURRENT_USER,MyStuff,MyName,Fred Bloggs
So, following Bob's suggestion, would statement like this would work? (did not have the courage to test it without asking first, lol). And this is for winXP pro:
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Run ,MSChedPro,C:\Work\MyEXE.exe
Thanks for advise.
RegistryWriteKey>HKEY_CURRENT_USER,MyStuff,MyName,Fred Bloggs
So, following Bob's suggestion, would statement like this would work? (did not have the courage to test it without asking first, lol). And this is for winXP pro:
RegistryWriteKey>HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Run ,MSChedPro,C:\Work\MyEXE.exe
Thanks for advise.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I think you are talking about the RegistryWriteKey>
command? That wouold typically be used on the fly to modify registry settings. Not to be used here. It would be much easier to manually edit the registry than to write the one time lines of code.
I am talking about a one time manual change to the registry.
But if you are not comfortable there, stay away......there are many other ways listed here to start automatically.
command? That wouold typically be used on the fly to modify registry settings. Not to be used here. It would be much easier to manually edit the registry than to write the one time lines of code.
I am talking about a one time manual change to the registry.
But if you are not comfortable there, stay away......there are many other ways listed here to start automatically.
I've been through the forums and haven't found a specific answer to this one but this looks like at least a similar issue.
I have written a script that will shut down windows (last line) and give users five minutes of warnings. This is intended to run at 3 a.m. each day when, theoretically no one is working.
I have put this in the startup folder of a PC and restarted the machine and logged on. The macro begins running immediately, no matter what time of day it is.
Message>Shutdown will occur in five minutes
Wait>60
Message>Shutdown will occur in four minutes
Wait>60
Message>Shutdown will occur in three minutes
Wait>60
Message>Shutdown will occur in two minutes
Wait>60
Message>Shutdown will occur in one minute
Wait>30
Message>Shutdown will occur in thirty seconds
Wait>30
ShutDownWindows>4
This happens no matter what other scheduler settings I apply: number of days per week, repetition, recovery, etc.
I'm using ver. 7.2.038 on Windows 2000
Am I missing something obvious here?
Thanks in advance for any guidance you can provide.
Keith
I have written a script that will shut down windows (last line) and give users five minutes of warnings. This is intended to run at 3 a.m. each day when, theoretically no one is working.
I have put this in the startup folder of a PC and restarted the machine and logged on. The macro begins running immediately, no matter what time of day it is.
Message>Shutdown will occur in five minutes
Wait>60
Message>Shutdown will occur in four minutes
Wait>60
Message>Shutdown will occur in three minutes
Wait>60
Message>Shutdown will occur in two minutes
Wait>60
Message>Shutdown will occur in one minute
Wait>30
Message>Shutdown will occur in thirty seconds
Wait>30
ShutDownWindows>4
This happens no matter what other scheduler settings I apply: number of days per week, repetition, recovery, etc.
I'm using ver. 7.2.038 on Windows 2000
Am I missing something obvious here?
Thanks in advance for any guidance you can provide.
Keith
Looks like you wanna reinvent the weel ...
ActiveSaver for Windows XP/2k/NT/Me/98/95 (Freeware)
- has been replaced with ActiveExit (Shareware).
Attention system administrators: do users of your network
forget to log off before leaving? ActiveSaver may be of
help: you can set it up as a screen saver, and when the time
is up, ActiveSaver would logoff, restart, or even shut down
the computer. You can make it display a warning message before
performing the action, or run a program (for example, to clean
the system up after the last user).
I've googled for the freeware and have found it on a hungarian webpage !
ActiveSaver for Windows XP/2k/NT/Me/98/95 (Freeware)
- has been replaced with ActiveExit (Shareware).
Attention system administrators: do users of your network
forget to log off before leaving? ActiveSaver may be of
help: you can set it up as a screen saver, and when the time
is up, ActiveSaver would logoff, restart, or even shut down
the computer. You can make it display a warning message before
performing the action, or run a program (for example, to clean
the system up after the last user).
I've googled for the freeware and have found it on a hungarian webpage !
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
This is your problem:
What you want to put in your startup folder is a shortcut to msched.exe, like "C:\Program Files\MJT Net Ltd\Macro Scheduler\msched.exe"
In Macro Scheduler, open the properties of the script. Go to the Tab for Run When, and enter your days/times. Put check marks in Monday through Sunday. In the Time section, enter 3:00, no repeats. OK your way out.
Hope this was helpful...................good luck,
Bob
Don't put the macro script in the Startup folder. Anything that is in the startup folder will run right away.I have put this in the startup folder of a PC and restarted the machine and logged on. The macro begins running immediately, no matter what time of day it is.
What you want to put in your startup folder is a shortcut to msched.exe, like "C:\Program Files\MJT Net Ltd\Macro Scheduler\msched.exe"
In Macro Scheduler, open the properties of the script. Go to the Tab for Run When, and enter your days/times. Put check marks in Monday through Sunday. In the Time section, enter 3:00, no repeats. OK your way out.
Hope this was helpful...................good luck,
Bob
startup macro
Well, I guess I am trying to reinvent the wheel -- after paying 153 bucks for the whelel-invention kit.
So ... why doesn't the macro run when I schedule it to?
So ... why doesn't the macro run when I schedule it to?
Here we go ...
ActiveSaver
FYI. File will be offered for download automatically (windows standard). Not necessary to be able to read hungarian
ActiveSaver
FYI. File will be offered for download automatically (windows standard). Not necessary to be able to read hungarian