Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by imrags (Monk)
on Jul 29, 2009 at 04:50 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 13:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found