|
-
Sep 11th, 2008, 02:49 PM
#1
Thread Starter
Addicted Member
Problem with the webbrowser control
Hola,
I have a "bot" for a certain web-page(not important), that uses the WebBrowser control and it's methods to fill certain fields, press certain buttons etc.
Basically my problem is that every time a picture is viewed in a certain box in the page, the program gives me an Internet Explorer -error. I first solved this by simply sending the Escape key to close the error, and that works as well, but I need to make the program run "silent", meaning it will function minimized as well.
If noone of you figures out the solution, then my next question would be if it's possible to make the program send keys to itself, eg. Me.Sendkeys.Send("{Esc}"), since that would also fix my problem.
Thanks in advance.
-
Sep 11th, 2008, 03:36 PM
#2
Re: Problem with the webbrowser control
You should examine to see what raises the error and catch that in the 1st place.
Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
- Abraham Lincoln -
-
Sep 11th, 2008, 04:14 PM
#3
Hyperactive Member
Re: Problem with the webbrowser control
This is easily solved however bots violate this websites acceptable use policy.
-
Sep 11th, 2008, 11:16 PM
#4
Thread Starter
Addicted Member
Re: Problem with the webbrowser control
The bot's for good use.
How exactly is the problem easily solved then? You didn't quite give me details did you?
-
Sep 11th, 2008, 11:17 PM
#5
Hyperactive Member
Re: Problem with the webbrowser control
 Originally Posted by Dark Anima
The bot's for good use.
How exactly is the problem easily solved then? You didn't quite give me details did you? 
What's the website? Youtube? Craigslist? Myspace? Hi5? Bebo?
-
Sep 12th, 2008, 06:06 AM
#6
Thread Starter
Addicted Member
Re: Problem with the webbrowser control
I'm pretty sure you wouldn't know, since it's a finnish website.
However, here's the URL - http://www.irc-galleria.net
It's a finnish copy of PhotoBucket, and the bot isn't designed to do anything harmful in there, if that matters. It's used for advertising, faster browsing(with the Friends list function), etc.
I would be very greatful if someone gave me a hint on doing this, I've tried to google it but couldn't find a satisfying solution.
-
Sep 12th, 2008, 06:21 AM
#7
Hyperactive Member
Re: Problem with the webbrowser control
Place in your Form_Load:
heh Code:
WebBrowser1.ScriptErrorsSuppressed = True
-
Sep 12th, 2008, 08:32 AM
#8
Thread Starter
Addicted Member
Re: Problem with the webbrowser control
Problem resolved, thanks for the advice.
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
|