Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by Anonymous Monk
on Jul 14, 2010 at 08:14 UTC ( [id://849460]=note: print w/replies, xml ) Need Help??


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

WWW::IE::Mechanize and WWW::Mechanize are completely unrelated, and their respective get methods completely different.
  • Comment on Re: How do I automatically store non-textual content as a file using Win32::IE::Mechanize?

Replies are listed 'Best First'.
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
    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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-19 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found