我如何在C#中创建热键来取消我的应用程序 [英] How do i create a hotkey in C# to lauch my application

查看:73
本文介绍了我如何在C#中创建热键来取消我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何允许用户创建用户定义的热键,该热键将启动im创建的Windows应用程序.我搜寻高低..我需要这个尽快..如果有人有答案,请给我发电子邮件mlow7920 @ bellsouth.我对C#相当陌生.我的应用程序几乎完成了,这是最后一步.同样,该程序也必须从任务栏和进程中隐藏.

Does any one know how to allow users to create a user defined hotkey that would launch a windows application that im creating. I searched high and low.. and i need this asap.. If anyone has the answer please email me at mlow7920@bellsouth. Im fairly new to C#. I have the application almost complete this is the last step. Also this program must be hidden from the taskbar and process.

推荐答案

写道:​​

如果有人有答案,请给我发送电子邮件mlow7920 @ bellsouth

If anyone has the answer please email me at mlow7920@bellsouth



那真是愚蠢.您会收到垃圾邮件,但任何答复都将通过该站点进行(该站点将通过电子邮件向您发送邮件)




That''s pretty stupid. You''ll get spam, but any replies will come via the site ( and the site will email you )


写道:​​

我的应用程序几乎完成了,这是最后一步.另外,必须从任务栏和进程中隐藏该程序.

I have the application almost complete this is the last step. Also this program must be hidden from the taskbar and process.



你在幻想之地

1-如果您的应用未运行,则无法对其进行响应
2-如果它正在运行,它将显示在进程列表中,因为它将是一个进程.

您需要在服务中编写一个全局键盘挂钩并运行该服务,以检测按键并启动您的应用.



You''re in fantasy land

1 - your app can''t respond to a keypress if it''s not running
2 - if it''s running, it will appear in the process list, as it will be a process.

You''d need to write a global keyboard hook in a service and have that running, to detect the keypress, and launch your app.


这篇关于我如何在C#中创建热键来取消我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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