Jump to content

Recommended Posts

Posted

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
Posted

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

Posted

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.
  • 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
×
×
  • Create New...