Ejemplo n.º 1
0
 private static void CheckGlobalKeys(SendKeysR.SKEvent skEvent)
 {
     if (skEvent.wm != 256)
         return;
     switch (skEvent.paramL)
     {
         case 20:
             SendKeysR.capslockChanged = !SendKeysR.capslockChanged;
             break;
         case 21:
             SendKeysR.kanaChanged = !SendKeysR.kanaChanged;
             break;
         case 144:
             SendKeysR.numlockChanged = !SendKeysR.numlockChanged;
             break;
         case 145:
             SendKeysR.scrollLockChanged = !SendKeysR.scrollLockChanged;
             break;
     }
 }
Ejemplo n.º 2
0
 private static bool IsExtendedKey(SendKeysR.SKEvent skEvent)
 {
     if (skEvent.paramL != 38 && skEvent.paramL != 40 && (skEvent.paramL != 37 && skEvent.paramL != 39) && (skEvent.paramL != 33 && skEvent.paramL != 34 && (skEvent.paramL != 36 && skEvent.paramL != 35)) && skEvent.paramL != 45)
         return skEvent.paramL == 46;
     return true;
 }
Ejemplo n.º 3
0
 private static void AddEvent(SendKeysR.SKEvent skevent)
 {
     if (SendKeysR.events == null)
         SendKeysR.events = new Queue();
     SendKeysR.events.Enqueue((object)skevent);
 }