문제

Im sending commands to my serial device, like so:

SerialPort.write("Q")

Now lets say I wanted to send a key combination to my device, such as "Ctrl + R".

I've already tried:

SerialPort.write(keys.control AndAlso keys.R)

But it does not send the right keys to my device. Am I doing it wrong? If so, what is the right approach.

Thanks

도움이 되었습니까?

해결책

Heres the answer:

serialport1.write(New Byte(){18}, 0,1)

다른 팁

Key CTRL+E:

oCom.Write(New Byte() {5}, 0, 1)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top