| | |
| | | private SerialPortConnect connect; |
| | | private bool isfinalize = false; |
| | | |
| | | private Int32 receiveCounter = 0;//接收计数 |
| | | |
| | | private byte[] mouseBuffer = new byte[5];//鼠标移动缓存 |
| | | private byte[] keyBuffer = new byte[9];//键盘输入缓存 |
| | | |
| | |
| | | public void PressKey(bool pressLeftControl, bool pressRightControl, bool pressLeftShift, bool pressRightShift, bool pressLeftAlt, bool pressRightAlt, bool pressLeftGUI, bool pressRightGUI, params HIDCode[] keys) |
| | | { |
| | | PutDown(pressLeftControl, pressRightControl, pressLeftShift, pressRightShift, pressLeftAlt, pressRightAlt, pressLeftGUI, pressRightGUI, keys); |
| | | Thread.Sleep(100); |
| | | Thread.Sleep(RandomUtils.KeyPressDuration); |
| | | PutDown(false, false, false, false, false, false, false, false); |
| | | Thread.Sleep(100); |
| | | Thread.Sleep(RandomUtils.KeyPressDuration); |
| | | } |
| | | |
| | | /// <summary> |