forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


DownloadToFile
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 05, 2004 7:09 pm    Post subject: DownloadToFile Reply with quote

This is a little DSU which can download files from the internet to local files. It should work on every PC which is running Windows 95 or higher.

Code:
#define command,DownloadToFile

DownloadToFile http://www.server.com/file.zip,c:\localfolder\filename.zip

exit

:DownloadToFile
  if @equal(%1,)@equal(%2,)
    error 2
    end
  loadlib urlmon
  %z = @lib(urlmon,URLDownloadToFileA,INT:,NIL:,STR:%1,STR:%2,INT:$10,NIL:)
  freelib urlmon
exit

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!


Last edited by Skit3000 on Thu Feb 05, 2004 8:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2144
Location: A House

PostPosted: Thu Feb 05, 2004 7:16 pm    Post subject: Reply with quote

Skit3000, do you have an api that allows us to post to a website?
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2144
Location: A House

PostPosted: Thu Feb 05, 2004 7:43 pm    Post subject: Reply with quote

Hmmm, either this api doesn't like me, or it doesn't like .php urls. Sad
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 05, 2004 7:47 pm    Post subject: Reply with quote

It should work this way, I've used it before in a little project... Rolling Eyes For your first question: I guess you can do that by specifying the variables just like in a normal page: index.php?file=blabla.html&message=Hello%20world...
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2144
Location: A House

PostPosted: Thu Feb 05, 2004 7:49 pm    Post subject: Reply with quote

Ok, thanks for the reply. I'll see if I can get this working here. The
code is not giving any errors, so I must obviously have the dll on my
system. It's a WinME system, so the dll can't be that old.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1710
Location: Space and Time

PostPosted: Thu Feb 05, 2004 7:52 pm    Post subject: Reply with quote

I can't get it to work ither.
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 05, 2004 7:54 pm    Post subject: Reply with quote

I just tried the code over here again, but it also did not seem to work... Confused I'll try to find the right code in a few minutes... Embarassed
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 05, 2004 8:06 pm    Post subject: Reply with quote

Could you give it one more try, please? I think it didn't work because VDS saw the "$10" as a string in steed of an integer... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1710
Location: Space and Time

PostPosted: Thu Feb 05, 2004 8:13 pm    Post subject: Reply with quote

Works now! Cool. Now...add a progress dialog? Smile
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Feb 05, 2004 8:15 pm    Post subject: Reply with quote

Wow... nice one Skit Very Happy
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Feb 05, 2004 8:19 pm    Post subject: Reply with quote

LiquidCode wrote:
Works now! Cool. Now...add a progress dialog? Smile


It should be possible to do that with the right callback api or something, but I will first look if it is possible with some "GetFileSize" and apis and the @file() function, since I really have no clue how callback functions work... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2144
Location: A House

PostPosted: Thu Feb 05, 2004 8:20 pm    Post subject: Reply with quote

LOL!!! Looks like you changed the code up there a bit... added a few
things that were missing... Wink

Excellent work, it works fine now... And thanks a bunch for sharing
this one with all of us.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Feb 05, 2004 8:25 pm    Post subject: Reply with quote

Maybe Mac can test this one with Windows 95. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2144
Location: A House

PostPosted: Thu Feb 05, 2004 8:27 pm    Post subject: Reply with quote

Oh come on now! No poking Mac in the side with a stick like that about
his Win95. Think I did enough of that a long time ago. Wink Hehehehee

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Feb 05, 2004 8:34 pm    Post subject: Reply with quote

I'm serious Wink

We need people like Mac - what would the world come to if nobody used
Windows 95 anymore? We'd never have anybody to test for compatibility Razz

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum




Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group