Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 perusing the Monastery: (2)
As of 2014-09-22 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (178 votes), past polls