Exemplo n.º 1
0
 public static void KeyDown(ConstController.WindowsVirtualKey Key, bool state, ref bool mystate) {
     if (state || mystate) {
         IntPtr Handle = FindWindow(null, Program.PROCESS_WINDOW_TITLE);
         PostMessage(Handle, WM_KEYDOWN, (int)Key, 0);
     }
     mystate = true;
 }
Exemplo n.º 2
0
 public static void KeyUp(ConstController.WindowsVirtualKey Key, bool state, ref bool mystate, string PROCESS_WINDOW_TITLE) {
     if (state || mystate) {
         IntPtr Handle = FindWindow(null, PROCESS_WINDOW_TITLE);
         PostMessage(Handle, WM_KEYUP, (int)Key, 0);
     }
     mystate = false;
 }
Exemplo n.º 3
0
 public static void KeyDown(ConstController.WindowsVirtualKey Key, ref bool state, string PROCESS_WINDOW_TITLE) {
     IntPtr Handle = FindWindow(null, PROCESS_WINDOW_TITLE);
     PostMessage(Handle, WM_KEYDOWN, (int)Key, 0);
     state = true;
 }
Exemplo n.º 4
0
 public static void Send(ConstController.WindowsVirtualKey Key, string PROCESS_WINDOW_TITLE) {
     IntPtr Handle = FindWindow(null, PROCESS_WINDOW_TITLE);
     PostMessage(Handle, WM_KEYDOWN, (int)Key, 0);
     PostMessage(Handle, WM_KEYUP, (int)Key, 0);
 }
Exemplo n.º 5
0
        public DoT(uint i, ConstController.WindowsVirtualKey kb) : base(i, kb) {

        }
Exemplo n.º 6
0
 public SpellWithCooldown(uint i, ConstController.WindowsVirtualKey kb, int cooldown) : base(i, kb) {
     this.cooldown = cooldown;
 }
Exemplo n.º 7
0
 public static void KeyUp(ConstController.WindowsVirtualKey Key, ref bool state) {
     IntPtr Handle = FindWindow(null, Program.PROCESS_WINDOW_TITLE);
     PostMessage(Handle, WM_KEYUP, (int)Key, 0);
     state = false;
 }
Exemplo n.º 8
0
 public Spell(uint i, ConstController.WindowsVirtualKey kb) {
     this.ID = i;
     this.keybind = kb;
 }
Exemplo n.º 9
0
 public DKRuneSpell(uint i, ConstController.WindowsVirtualKey kb, DKSpellRuneCost c) : base(i, kb) {
     this.cost = c;
 }