SendKeystroke() public static method

public static SendKeystroke ( IntPtr windowHandle, byte virtualKey, bool includeCharMessage = false ) : void
windowHandle System.IntPtr
virtualKey byte
includeCharMessage bool
return void
        public static void Disarm(this Player client)
        {
            client.Update(PlayerFieldFlags.Equipment);

            if (!client.Equipment.IsEmpty(EquipmentSlot.Weapon | EquipmentSlot.Shield))
            {
                WindowAutomator.SendKeystroke(client.Process.WindowHandle, '`');
            }
        }
 public static void CancelDialog(this Player client)
 {
     WindowAutomator.SendKeystroke(client.Process.WindowHandle, WindowAutomator.VK_ESCAPE);
 }
 public static void Assail(this Player client)
 {
     WindowAutomator.SendKeystroke(client.Process.WindowHandle, WindowAutomator.VK_SPACE);
 }