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.
In reply to Re: How to continue the execution of a perl script if the user session gets locked while running it.
by marto
in thread How to continue the execution of a perl script if the user session gets locked while running it.
by pradeep,krishna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |