>Hey folks,
>
>I'm trying to figure out how to use the SetupSup module(
>http://jenda.mccann.cz/perl/Setupsup.pm.html).
>
>The particular function I'm trying to use is:
>
>WaitForWindow($title, \$window, $timeout, [$refresh])
>
>Here's my code:
>
>####
>
>use Win32::Setupsup;
>
>$title=Notepad;
>
>
>Win32::Setsup::WaitForWindow($title, \$window, "10000", "100");
>
>print "Window is there\n";
>
>####
>
>The script then errs out with:
>
>Usage: Win32::Setupsup::WaitForWindow($title, \$window, $timeout,
>[$refresh])
>
>Any ideas why it's doing this? I'm able to do the EnumWindows function fine
>and print out all the Window names. But I don't understand what \$window is
>or how to return it.
>
>Thanks,
>
>James
Hey James,
Try taking the quotes off your numbers, so "10000" should be 10000, and "100"
should be 100. That should clear it up. The \$window is a reference, it will
hold a handle to the "found" window upon success so that you can then send keys
or whatever else SetupSup can do to it. You will reference it just as $window
(just a plain old variable)when you use it.
HTH,
Chuck
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]