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.
我想问。我正在做一个程序,当它最小化或打开其他一些窗口以读取我的键时,如果按下“特定”来做某事。我使用了 InputSimulator 但它仅在程序处于正常窗口状态时才起作用。如果程序被最小化。没有回应?我应该用什么让它在后台工作?
你应该使用RegisterHotKey API 函数来为你的进程注册热键,这里也是一个例子。