Exemple #1
0
 public int RegisterHotkey(Key Key, KeyFlags keyflags)
 {
     try
     {
         UInt32 hotkeyid = GlobalAddAtom(global::System.Guid.NewGuid().ToString());
         int    keycode  = KeyInterop.VirtualKeyFromKey(Key);
         RegisterHotKey((IntPtr)hWnd, hotkeyid, (UInt32)keyflags, (UInt32)keycode);
         keyIDs.Add(hotkeyid, hotkeyid);
         return((int)hotkeyid);
     }
     catch { return(0); };
 }
Exemple #2
0
 public void put(object key, object item)
 {
     h.Add(key, item);
 }