We get numerous questions regarding running a scheduled keyboard-mouse macro when a computer is "locked" - is that possible or not?
It's more than a simple "yes or no" question.
A Macro that opens files, executes system commands like "shutdown", or "dial a connection", or "delete a file", or performs other "programmatic" stuff - can run when the computer is locked.
BUT a Macro that simulates user actions (moves mouse, clicks some objects, sends keystrokes etc) cannot be run when the computer is locked, cause all mouse moves and keystrokes will be sent to a locked screen. The solution would be to use some command line tool that will unlock the computer before running a macro. Like this one for example (not sure it works with Vista/7, but promised to work with XP) http://www.softtreetech.com/24x7/archive/51.htm