Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: how to get pdf's that are http links

by imrags (Monk)
on Jul 29, 2009 at 04:50 UTC ( #784127=note: print w/ replies, xml ) Need Help??


in reply to Reaped: how to get pdf's that are http links

I had used Win32::IEAutomation(to browse the site,fill forms etc.)
along with Win32::GuiTest to save files from the internet (especially when you get the "Save As" popups).
Here's the actual code that i used to save file:

use Win32::GuiTest('FindWindowLike','SetForegroundWindow','SendKeys',' +PushButton'); my @windows = FindWindowLike(0, "^File Download - Security Warning","# +32770"); SetForegroundWindow($windows[0]); PushButton("&Save",1); SendKeys("%S"); sleep(2); SendKeys($file); SendKeys("~");
For this though, you have to make the IE/Firefox window visible.
Raghu


Comment on Re: how to get pdf's that are http links
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2015-07-31 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (276 votes), past polls