open several url at time to check them... multi-threading ?

Posted on 2002-04-14
Last Modified: 2013-11-13
I would like to know if it is possible to load multiple web page at time ?
exemple :
I have a page named :
I would like to scan all codes from 1000 to 9999 and stop when the page load somthing like "ok code fine".
I use actually a loop with the webbrowser like this :
 code =code +1
 webbrowser.navigate = "" & code
  Loop Until Not webbrowser.Busy
loop until instr(webbrowser.Document.body.outerHTML, "ok code fine",1) <> 0
Is there a way to use winsock and make a openurl or things like that.... store the opened url in a string and look for the string "ok code fine" but using multiple openurl at time ?
hope you could help me,
Best regards,

Question by:albundy
LVL 16

Expert Comment

ID: 6940548
Yes, you could use inet control  with execute method and saving result in a string and doing a search with instr funtion.

Author Comment

ID: 6940573
I want to make more than 20 search as time

Using inet will be the same...I'll have to wait until it finish to scan next url...

that I want is to scan several urls at time.

I don' think creating 20 inet control is the best way to do it...

all yours ideas are welcome

Expert Comment

ID: 6940700
As far as I know to do something like that you will have to multithread...
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!


Author Comment

ID: 6940715
yup, but I cannot find any piece of code making that :(

Accepted Solution

Ber earned 200 total points
ID: 6940786
There is anexample of multithreading in VB available at this link

have a look and see if it is any help
LVL 49

Expert Comment

ID: 7654064
Hi albundy,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept Ber's comment(s) as an answer.

albundy, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
DanRollins -- EE database cleanup volunteer

Expert Comment

ID: 7755056
per recommendation

Community Support Moderator @Experts Exchange

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question