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 static void KeyUp(ConstController.WindowsVirtualKey Key, ref bool state, string PROCESS_WINDOW_TITLE) { IntPtr Handle = FindWindow(null, PROCESS_WINDOW_TITLE); PostMessage(Handle, WM_KEYUP, (int)Key, 0); state = false; }
public static void KeyDown(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_KEYDOWN, (int)Key, 0); } mystate = true; }
public Spell(uint i, ConstController.WindowsVirtualKey kb) { this.ID = i; this.keybind = kb; }
public static void Send(ConstController.WindowsVirtualKey Key) { Send(Key, "World of Warcraft"); }