How can I make my Windows Forms application 'listen' for global key presses?

后端 未结 1 817
攒了一身酷
攒了一身酷 2021-01-05 22:15

I\'m making a little application for taking notes. So when I type \'note\' anywhere on my computer, my window will pop up and show me a textbox for me to type something in a

相关标签:
1条回答
  • 2021-01-05 23:13

    Take a look at http://www.codeproject.com/KB/cs/globalhook.aspx

    Besides this question has been asked around in SO already. Take a look at here:

    Global Keyboard Hooks (C#)

    Global keyboard capture in C# application

    Best way to tackle global hotkey processing in c#?

    0 讨论(0)
提交回复
热议问题