Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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.

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: (4)
As of 2016-08-31 05:56 GMT
Find Nodes?
    Voting Booth?
    The best thing I ever won in a lottery was:

    Results (426 votes). Check out past polls.