使用C#設(shè)置全局熱鍵當(dāng)我的程序不在焦點(diǎn)時(shí),我需要捕捉一個(gè)關(guān)鍵的按鍵。(.)克特+ALT+J)并在我的程序中觸發(fā)一個(gè)事件。到目前為止,我發(fā)現(xiàn)這個(gè)dll似乎是正確的路徑“[DllImport("user32.dll")]private static extern int RegisterHotKey(IntPtr hwnd, int id,int fsModifiers, int vk);[DllImport("user32.dll")] private static extern int UnregisterHotKey(IntPtr hwnd, int id);
- 2 回答
- 0 關(guān)注
- 251 瀏覽
添加回答
舉報(bào)
0/150
提交
取消