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
    Posts
    1,269

    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.name, 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
    Location
    Rotterdam, the Netherlands
    Posts
    871
    You can use the Document Object Model to get attributes of tags in HTML. Check MSDN, w3.org and w3schools.com 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
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    Maybe this crude example might help.
    Attached Files Attached Files

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    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:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

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