为了账号安全,请及时绑定邮箱和手机立即绑定

使用C#设置全局热键

使用C#设置全局热键

holdtom 2019-07-22 19:13:32
使用C#设置全局热键当我的程序不在焦点时,我需要捕捉一个关键的按键。(.)克特+ALT+J)并在我的程序中触发一个事件。到目前为止,我发现这个dll似乎是正确的路径“[DllImport("user32.dll")]private static extern int RegisterHotKey(IntPtr hwnd, int id,int fsModifiers, int vk);[DllImport("user32.dll")] private static extern int UnregisterHotKey(IntPtr hwnd, int id);
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 709 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信