C#WebBrowser控件如何让下鼠标指针数据 [英] C# webBrowser Control how to get data under mouse pointer

查看:292
本文介绍了C#WebBrowser控件如何让下鼠标指针数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜   如果我打开WebBrowser控件站点反正是有codeA功能让鼠标指针下的数据?

Hi If I open a site in the WebBrowser control is there anyway to code a function to get data under the mouse pointer?

所以,我想这样做,但没有线索如何!是加载网站(几乎所有的网站)的用户将鼠标悬停在页面和presses控制点击一些数据,并在这样的code使用的是哪种HTML标记光标下面并读取内在价值它。希望是有道理的!

So what I'm wanting to do, but don't have a clue how to! is load a website (most any website) the user places the mouse over some data on the page and presses control click and on doing so the code works out what the HTML tag below the cursor and reads the inner value of it. hope that makes sense!

其实就像在MS开发工具,IE浏览器的指针控制做它甚至设法把周围你会选择一个盒子...

in fact just like the pointer control in the MS Developer tool for IE does it even manages to place a box around what would be selected...

我只是寻找文字没有图片...

I'm only looking for the text no images...

感谢您的帮助......

thanks for any help...

推荐答案

呼叫

webBrowser.Document.GetElementFromPoint(webBrowser.PointToClient(MousePosition))

这篇关于C#WebBrowser控件如何让下鼠标指针数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆