Ejemplo n.º 1
0
 //register the show hook (keyboard combination to show the application)
 void registerShowHook()
 {
     KeyboardHook showHook = new KeyboardHook();
     showHook.KeyPressed += new EventHandler<KeyPressedEventArgs>(shoHook_KeyPressed);
     showHook.RegisterHotKey(TimeTracker.ModifierKeys.Control | TimeTracker.ModifierKeys.Shift,
         Keys.Up);
 }
Ejemplo n.º 2
0
 //register the hide hook (keyboard combination to hide the application)
 void registerHideHook()
 {
     KeyboardHook hideHook = new KeyboardHook();
     hideHook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hideHook_KeyPressed);
     hideHook.RegisterHotKey(TimeTracker.ModifierKeys.Control | TimeTracker.ModifierKeys.Shift,
         Keys.Down);
 }