Michael Müller gebetenes...
> In a script in clicking the download link. Then a Windows window appears
> with the button Open, Save and Cancel. I´d like to click the save
> button. How can I do that?
>
> The Next window opening is the window to specify the location to save
> the file. How can I set the Path to that window?

You can do this stuff with AutoIt:

require 'win32ole'
autoit = WIN32OLE.new("AutoItX3.Control")
autoit.WinWait("File Download", "Do you want to open or save", 3)
autoit.ControlClick("File Download", "Do you want to open or save", "&Save")
autoit.WinWait("Save As", "Save &in", 3)
autoit.ControlSetText("Save As", "Save &in", "Edit1", "path\\filename.ext")
autoit.ControlClick("Save As", "Save &in", "&Save")

See AutoIt3 reference here: 
http://www.autoitscript.com/autoit3/docs/functions.htm

Note to Bret Pettichord: This is something you'd need to take care of before 
you 
remove AutoIt from version 1.5.

Cheers,
Dave 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to