Jump to content
Sign in to follow this  
AnalogGuy

Dealing with "save target as"

Recommended Posts

AnalogGuy

Looking for recommendations on how to handle downloading of files from websites which utilize right click and "save target as" to down load a file.

Share this post


Link to post
Share on other sites
herewasplato

Welcome to the forum.

The IE.au3 UDF's are the best way to go or

(if you know some text in the link of interest)

you can use ctrl-f to find the link

winwait for the "find" box

controlsend to complete the stuff to search for

controlsend for enter

once that link is highlighted

send shift-F10

sleep a bit

then send "a" for "save target as"

winwait for the "save as" box

controlsend to complete the filename

controlclick for enter

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
AnalogGuy

thanks for the info I'll try later today

Share this post


Link to post
Share on other sites
AnalogGuy

Which _IE commands can be used to for right mouse click? Looks like _IEAction only provides for "click" which is left mouse button.

Thanks

Share this post


Link to post
Share on other sites
herewasplato

Which _IE commands can be used to for right mouse click? Looks like _IEAction only provides for "click" which is left mouse button. ...

I should have included the caveat that I don't have a clue when when it comes to the _IE UDFs... I've just learned to mention that they are always the best way to do stuff - 'cuz when I post a "manual solution" like I listed above, someone comes along and posts an _IE UDF solution.

It looks like I've not drawn them out of the woods for you just yet. Perhaps if I throw the gauntlet down a bit harder :-)

What is the site that you are dealing with or a public one just like it?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
AnalogGuy

[quote What is the site that you are dealing with or a public one just like it?

Share this post


Link to post
Share on other sites
herewasplato

See the file naming pattern?

It is probably the same each week.

;Sunday is day "0"
InetGet("http://bayradio.kgoradio.com/kgo_archives/01400.mp3", "0-Sunday-1pm-2pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/01500.mp3", "0-Sunday-2pm-3pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/01600.mp3", "0-Sunday-3pm-4pm.mp3", 1)

;Monday is day "1"
InetGet("http://bayradio.kgoradio.com/kgo_archives/11400.mp3", "1-Monday-1pm-2pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/11500.mp3", "1-Monday-2pm-3pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/11600.mp3", "1-Monday-3pm-4pm.mp3", 1)

;Tuesday is day "2"
InetGet("http://bayradio.kgoradio.com/kgo_archives/21400.mp3", "2-Tuesday-1pm-2pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/21500.mp3", "2-Tuesday-2pm-3pm.mp3", 1)
InetGet("http://bayradio.kgoradio.com/kgo_archives/21600.mp3", "2-Tuesday-3pm-4pm.mp3", 1)
Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
AnalogGuy

Thanks! works like a charm

Share this post


Link to post
Share on other sites
herewasplato

Thanks! works like a charm

You are welcome - enjoy AutoIt :-)

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×