|
-
Nov 14th, 2006, 06:38 AM
#1
Thread Starter
Fanatic Member
[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.
-
Nov 14th, 2006, 08:58 AM
#2
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________(___)____
__(___)_________) _/_____
___\_ (_________(_/______
____\_)_________________
-
Nov 14th, 2006, 09:22 AM
#3
Thread Starter
Fanatic Member
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.
-
Nov 14th, 2006, 09:44 AM
#4
Fanatic Member
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.
-
Nov 14th, 2006, 09:49 AM
#5
Thread Starter
Fanatic Member
Re: A Quicky about Text on a web page...
-
Nov 14th, 2006, 09:51 AM
#6
Fanatic Member
Re: [Resolved] A Quicky about Text on a web page...
My pleasure
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|