The UI way. Run this macro to toggle low level keyboard hook.
Macro ToggleLowLevelHook
Keyboard_Detector won't work with OneNote. An alternative would be to create triggers for it in another program similar to QM; let they invoke QM2 macros, for example through command line or SendMessage. One such program is QM3. To add a trigger, use menu TT -> Edit hotkey triggers. Then I could help to create code to invoke QM2 macros or to convert some small macros to C#.
Macro ToggleLowLevelHook
Keyboard_Detector won't work with OneNote. An alternative would be to create triggers for it in another program similar to QM; let they invoke QM2 macros, for example through command line or SendMessage. One such program is QM3. To add a trigger, use menu TT -> Edit hotkey triggers. Then I could help to create code to invoke QM2 macros or to convert some small macros to C#.