Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: How do I automatically store non-textual content as a file using Win32::IE::Mechanize?

by ZJ.Mike.2009 (Scribe)
on Jul 14, 2010 at 11:47 UTC ( #849501=note: print w/replies, xml ) Need Help??


in reply to Re: How do I automatically store non-textual content as a file using Win32::IE::Mechanize?
in thread How do I automatically store non-textual content as a file using Win32::IE::Mechanize?

Thanks Anonymous Monk for the prompt reply. So maybe I was using a wrong tool. I'm now experimenting with Win32::IEAutomation but the following script I've just come up with is too awkward.
use Win32::IEAutomation; use Win32::GuiTest qw(SendKeys); $ie = Win32::IEAutomation->new(visible => 0, maximize => 0, warnings = +> 0 ); $example_url = 'http://china35.newhua.com/down/VideoCutter_Demo.rar'; $ie->gotoURL($example_url,1); sleep(1); SendKeys("S"); #simulates the keypress of "S" to Save sleep(1); SendKeys("~"); #simulates the keypress of Enter to choose the default +Save As location
  • Comment on Re^2: How do I automatically store non-textual content as a file using Win32::IE::Mechanize?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://849501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2023-02-05 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?