weezypenguin Posted July 24, 2009 Report Share Posted July 24, 2009 Can anyone help please? Is it possible to create any kind of macro that would be able to open a program, then run either a series of key commands or even captured macro, and then close the application.... BUT, and this is a big BUT...I nee this all to happen when the system is logged off (in the background). I am desperate for any help with this.... Thanks in advance Quote Link to comment Share on other sites More sharing options...
rberq Posted July 24, 2009 Report Share Posted July 24, 2009 I don't believe ME can pass keystrokes to Windows when the user is logged off. However, if the system is "locked" (as opposed to logged off) then you can at least open and run programs. For example, I have batch command files that are started by macros while the server is locked. I don't know about passing keystrokes to an application while locked. Quote Link to comment Share on other sites More sharing options...
weezypenguin Posted July 24, 2009 Author Report Share Posted July 24, 2009 Thanks for the quick reply. How about a recorded macro? Quote Link to comment Share on other sites More sharing options...
rberq Posted July 25, 2009 Report Share Posted July 25, 2009 I don't think recorded macros would be any different from macros created with the script editor. Quote Link to comment Share on other sites More sharing options...
paul Posted July 26, 2009 Report Share Posted July 26, 2009 But what you can do is this: - Schedule a macro to allow Windows to boot without requiring a password this requires that you download a small free utility, and have your macro change 2 registry settings, run this utility and reboot - Schedule a startup macro to change the 2 registry settings above back to what they were this means that your computer is unprotected for only as long as it takes your computer to reboot - Run the macro you refer to in your message as the final step in your startup macro This macro is triggered only when the 2 registry settings were in the unprotected state - Lock your desktop when your macro is finished I have used this scenario for several years with great success. Quote Link to comment Share on other sites More sharing options...
weezypenguin Posted July 26, 2009 Author Report Share Posted July 26, 2009 Thanks for the help. Can you send me the infomation regarding the utility you mentioned please? Would this be able to run with a macro that is keystrokes aswell as recorded? Many Thanks reg But what you send me the info can do is this: - Schedule a macro to allow Windows to boot without requiring a password this requires that you download a small free utility, and have your macro change 2 registry settings, run this utility and reboot - Schedule a startup macro to change the 2 registry settings above back to what they were this means that your computer is unprotected for only as long as it takes your computer to reboot - Run the macro you refer to in your message as the final step in your startup macro This macro is triggered only when the 2 registry settings were in the unprotected state - Lock your desktop when your macro is finished I have used this scenario for several years with great success. Quote Link to comment Share on other sites More sharing options...
paul Posted July 26, 2009 Report Share Posted July 26, 2009 Shutdown Schdule this macro: Write Registry Value "%T[1]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon -- T1 contains 1 Write Registry Value "%T[99]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword -- T99 contains your login password Program Launch: "shutdown.exe" (Normal) Parameters: -s reboot -f -l 1 Once rebooted, schedule this macro to run on startup: Write Registry Value "%T[1]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon -- T1 contains 0 Delete Registry Value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword Quote Link to comment Share on other sites More sharing options...
weezypenguin Posted July 27, 2009 Author Report Share Posted July 27, 2009 Thanks for the help with this. so to recap the situation is this... I want to create a script or macro that will 1. open a particular document/application. 2. Capture a series of keystrokes or captured mouse movement. 3. Kill/stop the process/service that is running the document in step 1. My problem is that this has to run whilst the machine is unattended. Preferably logged off. So how would yu do it? If you pm me is it possible to talk about this?? I really appricate you time and help with this one. Shutdown Schdule this macro: Write Registry Value "%T[1]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon -- T1 contains 1 Write Registry Value "%T[99]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword -- T99 contains your login password Program Launch: "shutdown.exe" (Normal) Parameters: -s reboot -f -l 1 Once rebooted, schedule this macro to run on startup: Write Registry Value "%T[1]%" into HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon -- T1 contains 0 Delete Registry Value: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword Quote Link to comment Share on other sites More sharing options...
paul Posted July 27, 2009 Report Share Posted July 27, 2009 I want to create a script or macro that will1. open a particular document/application. 2. Capture a series of keystrokes or captured mouse movement. 3. Kill/stop the process/service that is running the document in step 1. My problem is that this has to run whilst the machine is unattended. Preferably logged off. I don't understand your point 2 above when taken in conjunction with your last sentence! How do you get a sequence of keystrokes or mouse movements if the machine is unattended or logged off. Are we writing a macro for ghosts here? Quote Link to comment Share on other sites More sharing options...
paul Posted July 28, 2009 Report Share Posted July 28, 2009 I've just come across this setup, which might solve your problem in a more generic way. Scheduling a remote interactive session Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.