将鼠标下的单词从任何窗口移开 [英] get the word under the mouse off any windows

查看:90
本文介绍了将鼠标下的单词从任何窗口移开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种解决方案,可以在软件中通过鼠标输入单词?

Is there is a solution to get the word under the mouse in et out the software ?

推荐答案

唯一可能的通用解决方案是进行屏幕截图,找出镜头中的鼠标位置,然后使用图像处理将单词分开,最后,使用OCR找出那里是否有单词,以及单词的含义.如果您不介意WPF应用程序无法正常工作,我相信您可以使用Windows消息查找鼠标悬停的HWND,然后获取该窗口的文本.即使到那时,我也不确定,如何确定鼠标悬停在窗口中的特定字词.
The only possible universal solution is to take a screen shot, work out the mouse position in the shot, then separate the word using image processing and finally, use OCR to work out if there''s a word there, and what it is. If you don''t mind that WPF apps won''t work, I believe there''s windows messages you can use to find the HWND your mouse is over, and then get the text of that window. I''m not sure, even then, how you''d go about working out what specific word in the window your mouse was over.


这篇关于将鼠标下的单词从任何窗口移开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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