neuro Posted June 16, 2006 Share Posted June 16, 2006 Hi guys, I was wondering if anyone would have an easy solution to having my script run while my computer is locked. It's on a domain so it's very important that it's locked but I have some scheduled Crystal Reports that need a little help from auto-it to be completely automatized. If I lock my computer up, the script won't work and I know there must be another way do this then to use "WinWaitActive". Any advice? Thanks in advance. While 1 WinWaitActive ( "Excel Format Options" ) Send ( "{TAB}" ) Send ( "{DOWN}" ) Send ( "{DOWN}" ) Send ( "{ENTER}" ) WEnd Link to comment Share on other sites More sharing options...
MHz Posted June 16, 2006 Share Posted June 16, 2006 You would not be able to operate with active windows wilst the computer is locked. Try using WinWait and the Control* functions to handle the windows instead. Something like this may help While 1 WinWait ( "Excel Format Options" ) ControlSend ( "Excel Format Options", "", "", "{TAB}{DOWN 2}{ENTER}" ) WEnd Supply a ControlID to ControlSend if possible. Link to comment Share on other sites More sharing options...
neuro Posted June 16, 2006 Author Share Posted June 16, 2006 You would not be able to operate with active windows wilst the computer is locked. Try using WinWait and the Control* functions to handle the windows instead. Something like this may help While 1 WinWait ( "Excel Format Options" ) ControlSend ( "Excel Format Options", "", "", "{TAB}{DOWN 2}{ENTER}" ) WEnd Supply a ControlID to ControlSend if possible. I tested it quickly and it worked. I can't thank you enough. Link to comment Share on other sites More sharing options...
nugame Posted July 29, 2006 Share Posted July 29, 2006 I had the same problem when I have a scheduled process to extract exported data. There is a screen saver lock which I had to log back in and the MS scheduler does not have the feature. Take a look a thishttp://www.splinterware.com/products/wincron.htm Dr SherlockAlways a way Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now