I don't have time to work on a solution right now but that can give you a start..
Main Topics
Browse All TopicsI am using a delphi app with a TWebBrowser to navigate to a page and automatically click some buttons in the website. This part works fine.
The problem is that I have several TWebBrowser Controls, each on it's own TabSheet.
There's a timer that moves through each tab and automatically loads/navigates to a web page on that tab.
The problem is that the entire app GUI freezes until the page is completely loaded. I have tried placing application.processmessage
I basically want to be loading multiple pages simultaneously in each tab.
What do I need to do to make the application continue to respond to mouse/keyboard events while pages are loading.
I saw article http://www.experts-exchang
thanks!
sse
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Basically I have several tabsheets. On each of the tabsheets, I have a TWebBrowser. I move sequentially through each of the tabsheets and send mouseclicks to specific areas of the page.
That's it.
I just need it to be quicker. I would prefer not to introduce threads. Though I agree that it could certainly work. If you think there's no other way, II would need an example.
Thanks!
Well, it's rather hard to say, are you loading the browser on each page when the tab changes?
Or are you trying to load them all at one time?
You may be able to download the HTML using idHTTP and then assign it to the browser's document, that may be faster. But I need a little more info before I can figure out a solution.
Hi, Sorry for the delayed response, I didn't see your last reply.
I am not loading the pages into the browsers at the same time, one at a time, but after I click on a link in one of the tabs the entire application freezes for a short time. The implication is that I can't move onto the next tab for several seconds.
Let me know what other information you need. I will be on the lookout for your response. Again sorry for the delay.
sse
In this case the "links" are embedded in flash and java applets. I don't have access to the address that the links are going to, and the place they go to could change anyway. A mouseclick on a link is required. Also, the automatic clicking part is working fine.
You mentioned IDHttp and assigning the contents to the browser component. I am not sure how to do this, but I wonder if it would work anyway, since the my problem is that the program freezes when clicking on the link.
Any other thoughts?
Thank you for that, but the problem isn't the speed at which the page loads.
Forget for a moment that there are multiple TWebBrowsers. Let's just say there is one TWebBrowser with a page loaded within it. The problem is that the entire app freezes for a few seconds after clicking on one of the links. I can't even click on buttons within the Delphi App.
Business Accounts
Answer for Membership
by: EddieShipmanPosted on 2009-06-25 at 10:39:06ID: 24713954
Since TWebbrowser is not very well behaved in threads, why not create a thread to download the HTML from the site using idHTTP and load it into the TWebbrowser control?