如何使用c#制作TSR应用程序?或者更改应用程序以像TSR应用程序一样? [英] how to make a TSR app with c#? or change an app to do like an TSR app?

查看:98
本文介绍了如何使用c#制作TSR应用程序?或者更改应用程序以像TSR应用程序一样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧

我想写一个应用程序来翻译两种语言(解码器)之间的字符,所以我需要一个在Windows后面运行的TSR应用程序并按下一些特殊键(ctrl + shift) + N),应用程序获取文本并将其翻译为所需语言并将解码后的文本留在剪贴板中。

我以windows形式编写此APP但我不知道如何将其更改为TSR 。

让我解释一下我的应用程序是如何工作的:



其实我希望我的应用程序像我一样工作这个:

i在我的窗口(EN,FA)中有两种写作语言,有时我忘记改变我的写作语言,我在Office Word中键入一些单词,突然间我才知道我没有改变我的写作语言,

所以我想选择我的书面文字并将其复制到剪贴板并按组合键加载我的应用程序并将复制的文本解码为正确的语言并再次复制到剪贴板,然后我的应用程序隐藏。然后我可以将它传递到Office字样。

这正是我想要的,

任何人都可以帮我做到这一点?

感谢先进的

Hi everybody
I want to write an app to translate character between two language(decoder), so I need a TSR app that run behind of windows and by pressing some special keys(ctrl+shift+N),the app get the text and translate it to desired language and leave the decoded text into clipboard.
I write this APP in windows form but i don't know how to change it to TSR.
let me to explain more how my app working:

in fact i want my app work like this:
i have tow writing language in my windows(EN, FA), sometimes I forget to change my writing language and i type some words for example in Office Word, and suddenly i came to know that i didn't change my writing language,
so I want to select my written text and copy it to clipboard and press a combination key to load my app and decode the copied text to correct language and copy it again to clipboard and then my app be hide. and then i can past it into Office word.
this was exactly that i want to do,
anyone can help me to do it?
thanks in advanced

推荐答案

请参阅我对该问题的评论。 Windows中没有TSR或任何其他可以携带CLR的操作系统。



您的描述表明您只需要一个全局热键的。然后,此CodeProject文章将帮助您:设置全局热键 [ ^ ]。



祝你好运。

-SA
Please see my comment to the question. There is no such thing as TSR in Windows, or any other OS which can carry CLR.

Your description suggests that you merely need a global hot key. Then this CodeProject article will help you: Setting A Global Hot Key[^].

Good luck.
—SA


Wikipedia:
Wikipedia:

TSR是DOS独有的,不在Windows中使用。

TSR is unique to DOS and not used in Windows.



你谈到C#,所以你在.NET上,所以你(可能)在Windows上 - 为什么不学习服务...和键盘钩...

http://msdn.microsoft.com/en-us/library/aa984464(v = vs.71).aspx [ ^ ]

处理全球Mou用C#中的se和键盘挂钩[ ^ ]


这篇关于如何使用c#制作TSR应用程序?或者更改应用程序以像TSR应用程序一样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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