Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有快捷键 F2 的隐形菜单。即使程序不在焦点上,我也希望它每次按 F2 时都执行代码。我怎样才能做到这一点?
您可以使用RegisterHotKey API 来定义系统范围的热键。