What's the easiest way to make a hotkey for windows?

后端 未结 7 836
无人共我
无人共我 2021-02-07 22:57

For example , you push Ctrl+V and insert the buffer content into the window. How can I create my own hotkeys like that? Sorry for noobish question.

7条回答
  •  迷失自我
    2021-02-07 23:50

    Per-process keyboard shortcuts like Ctrl+V are usually defined in a resource (.rc) file and loaded via the Win32 API LoadAccelerators.

    Windows-wide keyboard shortcuts (hotkeys) are registered using the Win32 API RegisterHotKey.

提交回复
热议问题