Hi,
I'm trying to get the WaitWindow method to work:
use Win32::GuiTest qw(WaitWindow GetForegroundWindow SetForegroundWind
+ow SendKeys);
system("start WINWORD.exe");
sleep 3;
$parentWindow = GetForegroundWindow();
SendKeys("%of");
$success = WaitWindow('^Font$',1);
print $success;
The error I get is:
"WaitWindow" is not exported by the Win32::GuiTest module
Can't continue after import errors at gui.pl line 1
BEGIN failed--compilation aborted at gui.pl line 1.
I removed the WaitWindow from line 1 and got the following error:
Undefined subroutine &main::WaitWindow called at gui.pl line 11.
I appreciate any help you can give me. Thanks!