I have a recorded a macro using Macro Scheduler, which works fine in foreground. That is, when I double-click on the EXE file, it performs what's recorded, as expected.
I want to perform this on a system, when no one's logged on. I ran the EXE as a Windows 2000 Scheduled Task, but it doesn't work, whehter or not I am logged in.
Is there a way to accomplish this? Or, running a macro in the background and running it as a Windows Scheduled Task are not supported in the current version (7.2)?
Please advise.
Running Macro Scheduler EXE as a Windows Scheduled Task
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Looking for some more information.
When you "click on the "exe", does that mean you have a compiled script? Or are you clicking on some other "exe"? A desktop icon is not the same as an "exe".
You say it is a "recorded" script. Was it recorded on this same machine? Have you made sure that your MouseMove statements don't need to be MouseMoveRel?
You say it does not "work".....is it possible that it runs, but not correctly?
Can you set up a non-compiled version on the machine, enable logging, and examine the log file to see if it actually triggers/where does it stop?
Can you insert some lines to write out to a file or send a MessageModal> after every 5-10 lines of script if you can't do logging with Macro Scheduler? Then you can check to see how far down the script it ran before it "stopped" Be sure to do that at the very top so you know at least the script was opened.
If it is a compiled script, it will be subject to the same constraints as any other exe program in Windows Scheduled Tasks. It will require the same rights, acccess, etc. I don't think that this can be run as a Service on 2K with no one logged in, but you must not be running it as a service because you said it does not work when you are logged in either.
Have you tried running it using Macro Sceduler vs. Windows Scheduled Tasks (with Logging enabled)?
When you "click on the "exe", does that mean you have a compiled script? Or are you clicking on some other "exe"? A desktop icon is not the same as an "exe".
You say it is a "recorded" script. Was it recorded on this same machine? Have you made sure that your MouseMove statements don't need to be MouseMoveRel?
You say it does not "work".....is it possible that it runs, but not correctly?
Can you set up a non-compiled version on the machine, enable logging, and examine the log file to see if it actually triggers/where does it stop?
Can you insert some lines to write out to a file or send a MessageModal> after every 5-10 lines of script if you can't do logging with Macro Scheduler? Then you can check to see how far down the script it ran before it "stopped" Be sure to do that at the very top so you know at least the script was opened.
If it is a compiled script, it will be subject to the same constraints as any other exe program in Windows Scheduled Tasks. It will require the same rights, acccess, etc. I don't think that this can be run as a Service on 2K with no one logged in, but you must not be running it as a service because you said it does not work when you are logged in either.
Have you tried running it using Macro Sceduler vs. Windows Scheduled Tasks (with Logging enabled)?
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
Does your script attempt to send keystrokes, mouse events and interract with other windows? If so it will not work when the machine is locked since no windows exist while in this state and there is no input console. Please see the following FAQ:
http://www.mjtnet.com/index.mv?msfaq17.html
http://www.mjtnet.com/index.mv?msfaq17.html
MJT Net Support
[email protected]
[email protected]