简体   繁体   English

如何获取游标WebKit.Net下的内容

[英]How to get what's under cursor WebKit.Net

I'm working on a project in C# and I'm using WebKit Browser. 我正在使用C#开发一个项目,并且正在使用WebKit浏览器。 My problem is that i have no idea how to get what's under the cursor. 我的问题是我不知道如何获取光标下方的内容。

Eg: mouse hovers over link -> get the link text Stuff like that. Eg: mouse hovers over link -> get the link text Stuff。

I've read something about Java but i don't know Java yet, also i wouldn'T know how to add that to my c# code. 我已经读过一些有关Java的知识,但我还不了解Java,我也不知道如何将其添加到我的C#代码中。

Any help would be appreciated. 任何帮助,将不胜感激。

Well by now I've found my answer. 好了,现在我找到了答案。

#1, I decided to use open-webkit-sharp which works way better in C#. #1,我决定使用open-webkit-sharp,它在C#中效果更好。

#2, I found an event called StatusTextChanged , and this StatusText contains the URL of the links when you hover the mouse over them. #2,我发现了一个名为StatusTextChanged的事件,当您将鼠标悬停在链接上时,此StatusText包含链接的URL。

Here's a link to open-webkit-sharp: https://code.google.com/p/open-webkit-sharp/ 这是open-webkit-sharp的链接: https : //code.google.com/p/open-webkit-sharp/

Though so far it seems that they haven'T even replied to anyone in months so I'm not sure if it's still being worked on. 尽管到目前为止,看来他们甚至都没有在几个月内回复任何人,所以我不确定是否仍在进行处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM