Feature Requests item #2467, was opened at 2005-09-15 10:15
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=490&aid=2467&group_id=104
Category: None
Group: 1.5
Status: Open
Resolution: None
Priority: 3
Submitted By: Bret Pettichord (bret)
Assigned to: Nobody (None)
Summary: Save File Download
Initial Comment:
Dave Burt responding to Michael Müller:
> 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.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=490&aid=2467&group_id=104
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general