From: <[EMAIL PROTECTED]>
> The \$window is a reference, it will hold a handle to the "found" window
> upon success

Making what Chuck and Grant said explicit:

use Win32::Setupsup;
$title='Notepad';
my $window;
Win32::Setsup::WaitForAnyWindow($title, \$window,10000,100) or
     die print Win32::Setupsup::GetLastError()," Died waiting for $title\n";

Note also that if you use SendKeys that using Enter for the default
sometimes does not work and you will need the exact key
my $next="\\alt+\\n\\alt-\\"; in some situations.
    Also, make sure you use enough timeout for the program to complete its
action.  I extract favorites from IE and use sleep(10) to make sure its
finished.

Rob
http://bangkokwizard.com/
"If you want to keep your six pack cold, keep it next to my ex wife's heart"




---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to