Jump to content

Locked Computer & Auto-It


Recommended Posts

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

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

Link to comment
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.
Link to comment
Share on other sites

  • 1 month later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...