如何编程单击“查看"功能. [英] How to programming Click'n' See feature.

查看:134
本文介绍了如何编程单击“查看"功能.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此问题已更新!.

您是否曾经使用过巴比伦或Lingoes字典.当您想在任何程序上翻译单词或词组时.您选择它们​​,然后按Ctrl +右键单击.立即地.它已更改并显示在新窗口中.此呼叫为点击查看".
有.我有个问题.我该怎么做.
我希望你能帮助我.谢谢.

This Question has been updated!.

Have you ever used Babylon or Lingoes dictionary. When you want to translate a word or prase on any programes. You select them and you Press Ctrl + Right Click. Immediately. It transalted and display on new window. This call is Click And See.
There for. I have a question. How can i make that.
I hope you can help me. Thanks you.

推荐答案

该应用程序分为两个部分:
1.全局捕获鼠标事件(用于检查右击),还需要检查当时是否按了Ctrl键,为此,您还需要全局键盘钩子.
2.第二部分是显示表单/菜单/对话框.

有关全局鼠标挂钩的一些文章是:
There are two parts of this applicaiton then:
1. Capturing the mouse events globally (for checking the right clik) also you need to check if Ctrl key is pressed at that time, for this you need global keyboard hooks too.
2. And the second part is to show a form/menu/dialog.

Some of the articles for global mouse hooks are:

  • http://www.colinneller.com/blog/GlobalWindowsHooksWithNET.aspx[^]
  • http://msdn.microsoft.com/en-us/magazine/cc188966.aspx[^]
  • http://support.microsoft.com/kb/318804[^]
  • http://blogs.msdn.com/toub/archive/2006/05/03/589423.aspx[^]
  • http://blogs.msdn.com/toub/archive/2006/05/03/589468.aspx[^]
  • Processing Global Mouse and Keyboard Hooks in C#[^]
  • Global System Hooks in .NET[^]
  • Low-Level Global Hooks in .NET 2.0[^]


请澄清您的问题.您的点击"查看是什么意思,您在程序的哪一部分遇到了麻烦.
Please clarify your question. What do you mean by "Click ''n See" and what part of your program are you having trouble with.


这篇关于如何编程单击“查看"功能.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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