Results 1 to 6 of 6

Thread: [Resolved] A Quicky about Text on a web page...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    [Resolved] A Quicky about Text on a web page...

    Is it possible to download all the text off a webpage without having your program freese up?

    When i use Inet to get text off a webpage, my program freeses until the text has been recieved.

    Also this would be useful if i store large files on a website, i could use somthing to get them off it, but the only problem is that the program will be frosen for long amounts of time...

    Is there any way to prevent the program from freesing?
    Last edited by Slyke; Nov 14th, 2006 at 09:50 AM.

  2. #2
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: A Quicky about Text on a web page...

    Use the doevents while your prog isbusy downloading the file.That will make your app respond to external events.
    __________________
    ________________0îîî___
    ___îîî0________(___)____
    __(___)_________) _/_____
    ___\_ (_________(_/______
    ____\_)_________________

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: A Quicky about Text on a web page...

    Ummmm?

    Dim Stuff As String
    Stuff = Inet1.OpenURL("http://www.google.com/index.html")

    Where does a Do, Loop and DoEvents fit in there???

    Maybe an external process has to be started, i just don't want it to be too complecated.

  4. #4
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: A Quicky about Text on a web page...

    Using DoEvents will not work with the Inet control, nor will it work with the popular DownloadToFile() API.

    I suggest you use the Winsock control, which can download files asynchronously, so your app won't freeze up while it is downloading.

    Here is a sample app that uses winsock to download files, and here is another sample app that uses multithreading to download multiple files.

    Hope this helps
    Last edited by shirazamod; Nov 14th, 2006 at 09:49 AM.
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    Re: A Quicky about Text on a web page...

    Thanks Dude!

  6. #6
    Fanatic Member
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    760

    Re: [Resolved] A Quicky about Text on a web page...

    My pleasure
    If I helped you out, please consider adding to my reputation!

    -- "The faulty interface lies between the chair and the keyboard" --

    VB6 Programs By Me:
    ** Dictionary, Thesaurus & Rhyme-Generator In One ** WMP Recent Files List Editor ** Pretty Impressive Clock ** Extract Firefox History **

Posting Permissions

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



Click Here to Expand Forum to Full Width