全局热键KeyDown和KeyUp事件

时间:2020-02-14 00:43:11

标签: delphi

当我按下和按下一个键时,我正在尝试在程序中实现全局热键逻辑。热键必须是全局的。行为很简单:当F10键按下时,该窗体是可见的,放开时该窗体将隐藏。

我设法实现了WMHotkey过程,但是我需要将其分为Key Up和Down。有没有办法使用全局热键来做到这一点?

1 个答案:

答案 0 :(得分:0)

通过实现RRUZ在此问题中提供的代码How to monitor the keyboard above all other applications and then send other keys to them instead,我设法完成了我想做的事情。