0

I need to add ability to catch event each time there is mouse hover event both on Linux and Windows. In Linux I easily connect to hovering-over-link signal. I cannot seem to find Windows equivalent. Searched google, checked the MSDN, I could not find.

Does Such a functionality available in windows? If no is there a way to achieve it?

Stefano Mtangoo
  • 6,017
  • 6
  • 47
  • 93

1 Answers1

1

Can you use the StatusTextChange event? This event is fired when the mouse is hovered over a link, with sText set to the link URL. It is also fired with additional messages such as when loading a page. In these cases, sText is set to "Connecting to (URL)", "Waiting for (URL)", etc. These messages can be simply ignored by doing a basic URL validation of sText.

A more involved method would be in the DocumentComplete event to search for all anchor elements using getElementsByTagName and attach to the HTMLAnchorEvents onmouseover. This of course wouldn't work for anchor elements dynamically created after page load.

Bevan Collins
  • 1,531
  • 16
  • 25
  • Thanks for pointing that! Now one more question, how do I do validation seeing that url may have a lot of formats (especially custom url within app like link://some/data/here/2/1)? – Stefano Mtangoo Feb 11 '13 at 08:02