Hi,
Yes, it worked for me as well but I have to register AutoItX3.dll first. So in case you are using this code, register it first using "Regsvr32". The dll is found inside the watir folder.
Regards,
Angrez
On Fri, 15 Jul 2005 Tuyet Cong-Ton-Nu wrote :
>OK, I got it working. Easier than I thought.
>
>
>
>Attached is the WinMaximize.rb
>
>
>
>To use it you need to:
>
>
>
>1) copy the WinMaximize.rb to this path:
>
>C:\ruby\lib\ruby\site_ruby\1.8\watir
>
>
>
>2) include at the top of the script:
>
>require 'watir/WinMaximize'
>
>
>
>3) add in the body of your code where you want the window to be maximized:
>
>w = WinMaximize.new
>
>w.maximize_window(ie.title)
>
>
>
>It should work fine. It worked for me!
>
>
>
>
>
>
>
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
