导入使用的Windows Api
[DllImport("User32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
按键对应的常数值
private const byte key_ctrl=0x11;
private const byte key_s = 0x53;
模拟键盘输入Ctrl&
导入使用的Windows Api
[DllImport("User32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
按键对应的常数值
private const byte key_ctrl=0x11;
private const byte key_s = 0x53;
模拟键盘输入Ctrl&