imrags has asked for the wisdom of the Perl Monks concerning the following question:
Since the code works after I close the window, I've no way of knowing the name of the "Login" window...my $searchString = 'Connecting to'; for (FindWindowLike()) { my $title = GetWindowText($_); next unless ( $title ); if( $title =~ /^$searchString/i ) { print "$title\n"; # SetForegroundWindow($windows[0]); SendKeys('$username'); SendKeys("{TAB}"); SendKeys("$pass"); SendKeys("{ENTER}"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Window name from IE
by matze77 (Friar) on Dec 16, 2008 at 10:27 UTC |