示例#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);
        }
示例#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;
        }
示例#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;
 }
示例#4
0
文件: Spell.cs 项目: Marteen21/Radar
 public Spell(uint i, ConstController.WindowsVirtualKey kb) {
     this.ID = i;
     this.keybind = kb;
 }
示例#5
0
 public static void Send(ConstController.WindowsVirtualKey Key)
 {
     Send(Key, "World of Warcraft");
 }