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.
Re: Problem with the webbrowser control
You should examine to see what raises the error and catch that in the 1st place.
Re: Problem with the webbrowser control
This is easily solved however bots violate this websites acceptable use policy.
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? :)
Re: Problem with the webbrowser control
Quote:
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?
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.
Re: Problem with the webbrowser control
Place in your Form_Load:
heh Code:
WebBrowser1.ScriptErrorsSuppressed = True
Re: Problem with the webbrowser control
Problem resolved, thanks for the advice.