Results 1 to 4 of 4

Thread: How can you get get an object in a webbrowser when a mouse is over it?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003

    How can you get get an object in a webbrowser when a mouse is over it?

    For example, if i moved my mouse over this "submit reply" button here, and hit a hotkey (to execute the code), how would i be able to set a variable as that specific button so i can do things like
    Debug.print, object,value, etc

    If id place my mouse over a link and hit the hotkey, i could do debug.print object.src or something

    anyone know?

  2. #2
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Rotterdam, the Netherlands
    You can use the Document Object Model to get attributes of tags in HTML. Check MSDN, and for examples.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  3. #3
    Join Date
    Nov 2001
    Trying to reach and stay in the cloud


    Maybe this crude example might help.
    Attached Files Attached Files

  4. #4
    Join Date
    Mar 2004
    I dont know what was contained in that last post. But if your talking about when u hoover over a link or a button, you could do this:

    Get the window handle o the browser
    Get the handle of the status bar,
    class name: "msctls_statusbar32"
    Find a way to see if there's text there or not

    Just and idea for thoughts

    Ok sry ignore this, I misread your question...too much programming at one time lol. sry
    Good programming site:

    Our CS Clan Page:

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