Sign in to follow this  
Followers 0
neuro

Locked Computer & Auto-It

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

:D

Share this post


Link to post
Share on other sites

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.

:D

I tested it quickly and it worked. I can't thank you enough.

Share this post


Link to post
Share on other sites

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 this

http://www.splinterware.com/products/wincron.htm


Dr SherlockAlways a way

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0