Results 1 to 8 of 8

Thread: Problem with the webbrowser control

  1. #1

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    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.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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 -

  3. #3
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    Re: Problem with the webbrowser control

    This is easily solved however bots violate this websites acceptable use policy.

  4. #4

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    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?

  5. #5
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    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?

  6. #6

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    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.

  7. #7
    Hyperactive Member
    Join Date
    Sep 2007
    Posts
    360

    Re: Problem with the webbrowser control

    Place in your Form_Load:
    heh Code:
    1. WebBrowser1.ScriptErrorsSuppressed = True

  8. #8

    Thread Starter
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    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
  •  



Click Here to Expand Forum to Full Width