AutoHotkey Community

It is currently May 26th, 2012, 7:49 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 12th, 2009, 2:13 pm 
Offline

Joined: April 18th, 2007, 9:03 am
Posts: 127
when i download a url with a ID
example: http://www.domain.com/download.php?id=xxx

i wont know the file type or the file name (now it happens to be .srt sub files only) i would like it to be better, just to specifies if it gonna download as you type it to be or %realname%

ex:
Code:
UrlDownloadToFile, http://www.domain.com/download.php?id=xxx, C:\%realname%
;or
FileCopy, http://www.domain.com/download.php?id=xxx, C:\


nither wont work, is there any work around?

[Deleted double post. ~jaco0646]

_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2009, 5:39 pm 
Offline

Joined: October 15th, 2007, 7:23 pm
Posts: 252
As far as I know you are going to have to specify a name for saving the file and what you do with it after that is up to you.

There might be some workaround specific to your situation, but I would need more information to say for sure.

There is this thread that discusses downloading to a variable instead of a file:

www.autohotkey.com/forum/topic10466.html.

At least I bumped your thread so maybe someone else who understands better what you are wanting can make suggestions. :wink:

dmatch


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 12:57 pm 
Offline

Joined: April 18th, 2007, 9:03 am
Posts: 127
okey.
the site i am downloading from is www.opensubtitles.org
as an example we take this sub title
http://www.opensubtitles.org/en/subtitl ... -x-code-en

the direct link to download it is:
http://www.opensubtitles.org/en/download/sub/3510631

the zip name i download it as:
jagad.x.code.(2009).eng.1cd.(3510631).zip
movie.name(year).language.numb-of-cd(the subs id).zip

_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Azevedo, perlsmith and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group