Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to be able to use hotkeys to run scripts when the screen is locked.

I have:

^!p::Run, D:\path\to\my\script.bat

But if the computer is locked it won't run.

I'm running Win7 64.

share|improve this question

migrated from Jun 9 '13 at 12:12

This question came from our site for professional and enthusiast programmers.

As far as I know, this is a protection method from Windows, nothing AutoHotKey can do about it. Otherwise, you could run a login script while Windows is locked. – Robert Ilbrink Jun 9 '13 at 9:24
So there's no way I can run my script when it's locked? – pocpoc47 Jun 9 '13 at 10:07
No, you might want to take a look at task scheduler. – user197261 Jun 9 '13 at 11:24
But task scheduler run it at certain times, not when I want to – pocpoc47 Jun 9 '13 at 12:44
Not a solution, but the best thing I could offer is to replace Windows' Ease of access functionality with cmd.exe. You can then communicate with your script via command line, e.g. with start parameters, without having to log in. – MCL Jun 12 '13 at 18:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.