Beispiel #1
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);
        }
Beispiel #2
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;
        }
Beispiel #3
0
 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;
 }
Beispiel #4
0
 public Spell(uint i, ConstController.WindowsVirtualKey kb) {
     this.ID = i;
     this.keybind = kb;
 }
Beispiel #5
0
 public static void Send(ConstController.WindowsVirtualKey Key)
 {
     Send(Key, "World of Warcraft");
 }