Domanda

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

È stato utile?

Soluzione

Heres the answer:

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

Altri suggerimenti

Key CTRL+E:

oCom.Write(New Byte() {5}, 0, 1)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top