Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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.

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2015-11-26 14:01 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (701 votes), past polls