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; }
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; }
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; }
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); }
public DoT(uint i, ConstController.WindowsVirtualKey kb) : base(i, kb) { }
public SpellWithCooldown(uint i, ConstController.WindowsVirtualKey kb, int cooldown) : base(i, kb) { this.cooldown = cooldown; }
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; }
public Spell(uint i, ConstController.WindowsVirtualKey kb) { this.ID = i; this.keybind = kb; }
public DKRuneSpell(uint i, ConstController.WindowsVirtualKey kb, DKSpellRuneCost c) : base(i, kb) { this.cost = c; }