Beispiel #1
0
 public MainWindow()
 {
     InitializeComponent();
     hooker = new GlobalKeyboardHook();
     hooker.KeyboardPressed += OnKeyPressed;
 }
Beispiel #2
0
 public void SetupKeyboardHooks()
 {
     _globalKeyboardHook = new GlobalKeyboardHook();
     _globalKeyboardHook.KeyboardPressed += OnKeyPressed;
 }