> > ... I'm going to have to
> > dig up your Win32::GuiTest posts and have a play, I think, Chris.
>
> Here ya go! Just BTW, the following code is in an article in next
> month's Better Software magazine:
>
> use Win32::GuiTest qw(FindWindowLike GetWindowText
> SetForegroundWindow SendKeys);
> system (1, "C:\\ruby\\bin\\ruby.exe C:\\watir\\examples\\Demo.rb");
> while (1) { #INFINITE LOOP
> sleep 5; #CHECK FOR NEW WINDOW EVERY 5 SEC
> my @windows = FindWindowLike(0, "^Microsoft Internet Explorer"
> );
> for (@windows) {
> SetForegroundWindow($_); #BRING THE RIGHT WINDOW IN FOCUS
> SendKeys("{ENTER}");
> }
> }
Thanks for the preview, Chris. I'm going to have to check out that
library for sure.
Cheers,
Dave
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general