全局获取当前选定的文本 [英] get the current selected text globally
问题描述
对于我的开源项目(用c和w32编写),我想在字典数据库中查找当前选定的文本,
该应用程序在linux下运行良好,因为存在类似于第二个剪贴板的内容,其中包含当前选定的文本以及该剪贴板的owerchange事件.
在Mac和Windows下,我使用atm普通剪贴板和
直到现在,我都找不到类似的东西,例如linux x serve 2.剪贴板.
有人知道一些骇客或如何做类似的事情吗?
For my open-source project (written in c and w32) i want to look up the current selected text in a dictionary database,
The application runs fine under linux because there is something like a second clipboard with the current selected text and an event for owerchange of this clipboard.
Under mac and windows I use atm the normal clipboard and
until now i couldn''t find something similar like the linux x serves 2. clipboard.
Does anybody know some hack or something how to do a similar thing?
thx in advance!
推荐答案
我不相信Windows下有类似的东西.但是,您可以使用进程间通信来实现这种功能.
这里是有关该文章的链接:
http://www.codeproject.com/KB/threads/Win32IPC.aspx [ ^ ]
祝你好运!
I don''t believe there is something similar under windows. You could however use inter process communication to achieve that kind of functionality.
Here a link to an article about it:
http://www.codeproject.com/KB/threads/Win32IPC.aspx[^]
Good luck!
这篇关于全局获取当前选定的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!