in reply to How to continue the execution of a perl script if the user session gets locked while running it.

You can't. Your code essentially acts as though a person were looking for active windows and pressing keys on the keyboard. When the screen becomes locked your script can no longer automate events running in the background in this manner.

  • Comment on Re: How to continue the execution of a perl script if the user session gets locked while running it.