code_junkie

Best way to tackle global hotkey processing in c#?

Nov 10th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. Hotkey hk = new Hotkey();
  2.  
  3. hk.KeyCode = Keys.1;
  4. hk.Windows = true;
  5. hk.Pressed += delegate { Console.WriteLine(“Windows+1 pressed!”); };
  6.  
  7. hk.Register(myForm);
Add Comment
Please, Sign In to add comment