Running macro when workstation is locked
Moderators: JRL, Dorian (MJT support)
Running macro when workstation is locked
Is it possible to run a macro when the machine is locked i.e. when i press Ctl+Alt+Del to lock the machine? It is a windows xp machine and i use remote desktop to connect to it. When i disconnect by clicking on x, without actually logging out, the machine gets locked. I want the macros to be able to run in this state because i'm not actually logged out but still logged in. But i get this kind of error: A call to an OS function failed. What's happening? Or it is just not possible?
Depends what kind of macro it is. Most won't work because they need to simulate user activity which can't be done if the console is not present. See the following for details:
http://www.mjtnet.com/index.htm?msfaq17.html
http://www.mjtnet.com/index.htm?msfaq17.html
MJT Net Support
[email protected]
[email protected]
Yes, PC Anywhere can be set to leave the console logged in. Windows Terminal Server logs it out and there is no way to override it.
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:
I have a nightly Macro Scheduler routine that uses pcAnyWhere to connect and login to WIN2K system that is left on, but logged out. After logging in, I use MouseMove> to double click on an icon, on the remote system, that calls up a Macro Scheduler routine on the Win2K system,which does its work, sends a confirming email,and then logs off the WIN2K. After logout has happened, the original Macro has been waiting, and now ends the initial macro. Has been working for years with no issues.
I have to use MouseMove> to do things on the remote system because the running macro cannot capture the window names on the remote system. That is also why I noly trigger a macro on that system, to allow it to respond to WindowNames in its processing. I could also schedule the remote macro vs. being triggerer from a desktop icon. Once logged in, the scheduled macros could run OK. Only need to set the time to be later than the login time. Do not want to trigger the remote macro on login, it is only a nightly maintenance routine.
I have to use MouseMove> to do things on the remote system because the running macro cannot capture the window names on the remote system. That is also why I noly trigger a macro on that system, to allow it to respond to WindowNames in its processing. I could also schedule the remote macro vs. being triggerer from a desktop icon. Once logged in, the scheduled macros could run OK. Only need to set the time to be later than the login time. Do not want to trigger the remote macro on login, it is only a nightly maintenance routine.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: