Пример #1
0
        public Objects.Hotkey[] getHotkeys()
        {
            Objects.Hotkey[] hks = new Objects.Hotkey[36];
            for (int i = 0; i < 36; i++)
            {
                UInt32 ThisReadOffset = (Util.Base + Hotkeys.HKStart) + (uint)(i * (int)Hotkeys.HKStep); // MessageBox.Show(Read.ReadString(Util.Base + 0x3C6B98));

                // Add list order here
                if (i < 12)
                {
                    hks[i].Key = "F" + Convert.ToString(i + 1);
                }
                else if (11 < i && i < 25)
                {
                    hks[i].Key = "Shift+F" + Convert.ToString(i - 12);
                }
                else if (24 < i && i < 36)
                {
                    hks[i].Key = "Ctrl+F" + Convert.ToString(i - 23);
                }
                hks[i].Value = ReadString(ThisReadOffset, 256);
                if (hks[i].Value == "")
                {
                    hks[i].Value = Convert.ToString(ReadInt32(Util.Base + Hotkeys.HKItemStart + (uint)(i * (int)Hotkeys.HKItemStep)));
                }
            }
            return(hks);
        }
Пример #2
0
 public Objects.Hotkey[] getHotkeys()
 {
     Objects.Hotkey[] hks = new Objects.Hotkey[36]; 
     for (int i = 0; i < 36; i++)
     {
         UInt32 ThisReadOffset = (Util.Base + Hotkeys.HKStart) + (uint)(i * (int)Hotkeys.HKStep); // MessageBox.Show(Read.ReadString(Util.Base + 0x3C6B98)); 
          
         // Add list order here 
         if (i < 12)
         {
             hks[i].Key = "F" + Convert.ToString(i + 1);
         }
         else if (11 < i && i < 25)
         {
             hks[i].Key = "Shift+F" + Convert.ToString(i - 12);
         }
         else if (24 < i && i < 36)
         {
             hks[i].Key = "Ctrl+F" + Convert.ToString(i - 23);
         }
         hks[i].Value = ReadString(ThisReadOffset, 256);
         if (hks[i].Value == "")
         {
             hks[i].Value = Convert.ToString(ReadInt32(Util.Base + Hotkeys.HKItemStart + (uint)(i * (int)Hotkeys.HKItemStep)));
         }
     }
     return hks;
 }