Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何从Windows程序中检索选定的文本_Java_Windows_Translation_Clipboard_Textselection - Fatal编程技术网

Java 如何从Windows程序中检索选定的文本

Java 如何从Windows程序中检索选定的文本,java,windows,translation,clipboard,textselection,Java,Windows,Translation,Clipboard,Textselection,java中是否有一个类具有一种方法,可以检索我们在任何Microsoft Windows程序或文档上使用文本光标选择的文本 我之所以需要此功能,是为了让一个程序能够将此选定文本作为字典服务器的输入,并返回单词的含义 用于说明的伪代码: MyProgram{ word=getSelectedWord() //Get the text highlighted from MS system. meaning

java中是否有一个类具有一种方法,可以检索我们在任何Microsoft Windows程序或文档上使用文本光标选择的文本

我之所以需要此功能,是为了让一个程序能够将此选定文本作为字典服务器的输入,并返回单词的含义

用于说明的伪代码:

        MyProgram{            
        word=getSelectedWord()             //Get the text highlighted from MS system.
        meaningOfWord=getMeaning(word)    // Meaning of the word                                                                                                                                  }                                            //from a web dictinary 

谢谢你,很抱歉你的英语不好。

如果你抄袭了一些东西,我可以帮你。这就是一个例子。否则,从其他应用程序访问内容不会令人毛骨悚然。如果您复制了某些内容,则可以提供帮助。这就是一个例子。否则,从其他应用程序访问内容不会令人毛骨悚然。如果您复制了某些内容,则可以提供帮助。这就是一个例子。否则,从其他应用程序访问内容不会令人毛骨悚然。