Hi,
I had also problems with it. I had to download autoitX3 tool.
Because there is a tool which identifies the instances of buttons and without
that actions did not work for me.
autoit.WinWaitActive("Save As")
(catching the popup)
autoit.ControlClick("Save As", "", "[CLASS:Button;TEXT:&Save;INSTANCE:2]")
(pressing Save button)
autoit = WIN32OLE.new('AutoItX3.Control')
autoit.WinWaitActive("File") #window name File Download
autoit.ControlClick("File","","[CLASS:Button;TEXT:&Save;INSTANCE:2]") # first
popup is shown
autoit.WinWaitActive("Save As")
autoit.Send("file_name")
autoit.ControlClick("Save As", "", "[CLASS:Button;TEXT:&Save;INSTANCE:2]")
autoit.WinWaitActive("Download")
autoit.ControlClick("Download", "", "[CLASS:Button;TEXT:&Open;INSTANCE:2]")
Hope this will helps
Br,
Sfistak
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general