Get key from any process

前端 未结 4 1534
既然无缘
既然无缘 2021-01-03 14:20

Ive seen many solutions online but none does exactly what I want. What is the best/simplest way to get any keys pressed in a given process (not my console applicaton) while

4条回答
  •  渐次进展
    2021-01-03 15:10

    What you're looking for is called a global keyboard hook. You can find more information and examples on MSDN.

提交回复
热议问题