Frage

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

War es hilfreich?

Lösung

Heres the answer:

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

Andere Tipps

Key CTRL+E:

oCom.Write(New Byte() {5}, 0, 1)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top