How to make a keyboard hook global across processes

后端 未结 5 762
-上瘾入骨i
-上瘾入骨i 2020-11-30 08:37

I am trying to create a utility keystroke app so i can do things like kill a preprogrammed process or launch something. I am thinking I should hold cmd in any app, then type

5条回答
  •  鱼传尺愫
    2020-11-30 09:08

    I had to mess with global hooks when I was writing a "Picture in Picture" sort of app. This article and sample code helped me out tremendously:

    http://www.codeproject.com/KB/system/WilsonSystemGlobalHooks.aspx

提交回复
热议问题