Results 1 to 2 of 2

Thread: Sending control codes to a serial port.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Location
    Fort Lauderdale, FL USA
    Posts
    112
    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
    Damonous

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    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)
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width