-
Need some help. I'm trying to send control codes in hexadecimal format to a barcode scanner that is connected to a com port. Does anyone have any idea how to do this? The com port opens, but when I try to send a simulated keystroke to the scanner, it either does nothing or receives junk.
Example: Trying to send "ESC" (Hex 9B) to the scanner to bring it to the main menu.
I will persue any and all solutions.
Using Visual Basic 6.
TIA
-
I presume you've tried sendkeys {ESC}
isn't escape 27 or hex 1B ?
I've only done a little bit of sending control chars to a serial port and that was with an MSComm control
MSComm1.Output = Chr$(27)