是否可以编写一个Windows应用程序,当在另一个Windows应用程序中选择文本时获取通知? [英] Is it possible to write a windows application that gets a notification when text is selected in another windows application?
本文介绍了是否可以编写一个Windows应用程序,当在另一个Windows应用程序中选择文本时获取通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很好奇,如果可以编写一个程序来监视我的文本选择。一个可能的用途是编写一个编辑器/ IDE无关代码格式化程序:
I'm curious if it is possible to write a program that monitors my text selection. One possible use would be to write an editor/IDE agnostic code formatter:
- 启动Application / Service,P,
- 启动某些其他应用程式A。
- 使用者在A中选择文字。
- P会通过选择的文字通知。
- Application/Service, P, is launched and somehow hooks into windows such that it gets notified when text is selected in any window.
- Some other application, A, is launched.
- User selects text in A.
- P is notified with the text that is selected.
- >很高兴得到这个...
--> I'd be happy to get this far...
推荐答案
如果没有每个控件/应用程序的具体知识,因为他们可以处理/处理不同。
This is not possible without specific knowledge of each control/application that will be in use as they can all handle/treat it differently.
这篇关于是否可以编写一个Windows应用程序,当在另一个Windows应用程序中选择文本时获取通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文