Results 1 to 2 of 2

Thread: How to make a Downloader?

  1. #1
    Join Date
    Jan 2009
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to make a Downloader?

    Hello everyone, ive finished my script now, and i need to know how to make a downloader. I used the search button, which did not help at all. If someone could make a tutorial or if one exists, link me to it please.

  2. #2
    Join Date
    Jan 2009
    Location
    Somewhere
    Posts
    240
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function CheckAndDownload(ScriptVersionURL, ScriptURL, ExactFileName : string) : boolean;
    var
      FileNum : Integer;
    begin
      GetPage(ScriptVersionURL);
      Result:=GetPage(ScriptVersionURL) = ScriptVersion
      If Result = true then
      WriteLn('Version is the newest');
      if Result = false then
      begin
        case GetApplication.Messagebox('Version ' + GetPage(ScriptVersionURL) + ' is the newest Version' + chr(13) + 'Download the New Version?' , 'Download Latest Version Of Script', 4) of
        0 : begin
              FileNum := ReWriteFile(ScriptPath + ExactFileName, true);
              WriteFileString(FileNum, GetPage(ScriptURL));
              CloseFile(FileNum);
              GetApplication.MessageBox('The current version of ' + ExactFileName + ' has been successfully downloaded.' + chr(13) + 'Please reopen this script.', 'Please Reopen the Script', 0);
              WriteLn('Now opening the script page');
              OpenWebPage('http://www.google.com');
              TerminateScript;
          end;
        end;
      end;
    end;

    Ex:CheckAndDownload('http://colluciworld.freehostia.com/VersionChecker.txt', 'http://colluciworld.freehostia.com/TheScript.txt', 'Draynor Willow Chopper & Burner 1.0.scar') ;

    @From a script never finnished.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. The YouTube DownLoader Is Here!
    By Riffe in forum Computer Help and Tutorials
    Replies: 9
    Last Post: 01-30-2009, 05:42 AM
  2. Youtube Downloader
    By perrz in forum Computer Help and Tutorials
    Replies: 17
    Last Post: 12-01-2008, 02:01 AM
  3. Reflection Downloader!
    By Timer in forum Outdated Tutorials
    Replies: 12
    Last Post: 09-12-2008, 01:09 AM
  4. A news downloader??
    By Bigfish58 in forum OSR Help
    Replies: 1
    Last Post: 10-20-2006, 12:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •