Hai monks...
I have the bellow code to login to the server.
use Win32::GuiTest qw(FindWindowLike GetWindowText SetForegroundWindow SendKeys); system('"start %windir%\system32\mstsc.exe"'); sleep(1); $Win32::GuiTest::debug = 0; # Set to "1" to enable verbose mode my @windows = FindWindowLike(0, "Remote Desktop Connection"); for (@windows) { SetForegroundWindow($_); SendKeys("Server"); SendKeys("{ENTER}"); sleep(10); my @windows1 = FindWindowLike(0, "Windows Security"); print scaler @windows1; for (@windows1) { SetForegroundWindow($_); SendKeys("password01"); SendKeys("{ENTER}"); } }
I want it to continue its execution if the local user session gets locked but with this code i am not able to do that.
Please help me in solving this.
Thanks in advance.
Pradeep Krishna :)
In reply to How to continue the execution of a perl script if the user session gets locked while running it. by pradeep,krishna
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |