Exemple #1
0
 private GlobalHotkey()
 {
     // We have to store the LowLevelKeyboardProc, so that it is not garbage collected runtime
     hookedLowLevelKeyboardProc = LowLevelKeyboardProc;
     // Set the hook
     hookId = InterceptKeys.SetHook(hookedLowLevelKeyboardProc);
 }
Exemple #2
0
 private GlobalHotkey()
 {
     _hotkeys = new Dictionary <HotkeyModel, Action>();
     _hookID  = InterceptKeys.SetHook(LowLevelKeyboardProc);
 }