Jump to content
Sign in to follow this  
raggletaggle

Running a script when the pc is locked?

Recommended Posts

raggletaggle

Saw a few threads about this but didn't really see a definitive answer on whether it can be done or not.

Here's the scenario -- I want my pc to go out and grab reports and process them via an autoit script at some point either very early in the morning or late at night -- when I'm not there. My computer will lock after not in use for 15 mins or so. I know my script won't work with winactivate, etc, but is there a way to have the script run when the comp is locked? The script contains mouse movements, sendkeys, toggling between apps, pixelsearches, etc.

Thanks for your help

Share this post


Link to post
Share on other sites
seandisanti

Saw a few threads about this but didn't really see a definitive answer on whether it can be done or not.

Here's the scenario -- I want my pc to go out and grab reports and process them via an autoit script at some point either very early in the morning or late at night -- when I'm not there. My computer will lock after not in use for 15 mins or so. I know my script won't work with winactivate, etc, but is there a way to have the script run when the comp is locked? The script contains mouse movements, sendkeys, toggling between apps, pixelsearches, etc.

Thanks for your help

the functions you mention will not work while the pc is locked. IIRC you can't interact with windows programatically while windows is locked, but you can do back end stuff, file reading/writing, etc.

Share this post


Link to post
Share on other sites
raggletaggle

the functions you mention will not work while the pc is locked. IIRC you can't interact with windows programatically while windows is locked, but you can do back end stuff, file reading/writing, etc.

OK, appreciate the input. Maybe I'll run a script to keep the comp from locking up.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.