Results 1 to 3 of 3

Thread: Do you need to download pages/files from internet?

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,779
    Rep Power
    10

    Do you need to download pages/files from internet?

    This thinBasic script will download default thinBasic web site page locally.
    The same can be used for whatever file from internet. Just change the url.

    [code=thinbasic] uses "INet"

    dim ret as number

    ret = INET_URLDownLoad("http://www.thinbasic.com", APP_SOURCEPATH + "Home.html")

    IF ret <> %TRUE THEN
    msgbox(0, "Error: " + ret)
    END IF
    [/code]
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2

    Re: Do you need to download pages/files from internet?

    Hi Eros,

    That's a neat and simple little program code.
    I was thinking of including a "Check for program update" button facility for my adventure editor so if I had something like "tab_alpha_15.zip" on the website page your code (modified slightly) could check whether this was in advance or the same as the currently downloaded version... If so, it would ask the user if they would like to download the later version.

    Cheers,
    catventure.

    PS. I noticed in latest preview that dialog windows now have thinbasic icon instead of windows logo. Good.
    Does this mean we can now attach our own icons to "thinbasic.exe" when distributing a packaged version and that icon would be used by the dialog?
    http://tab.thinbasic.com - Home Of The ThinBasic Adventure Builder Project. (Interactive Fiction/Text Adventure Maker)

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,779
    Rep Power
    10

    Re: Do you need to download pages/files from internet?

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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