×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Need help writing a barcode for CONTROL+X

Need help writing a barcode for CONTROL+X

Need help writing a barcode for CONTROL+X

(OP)
Hello,

I am trying to write a code128 barcode that is the same as pressing CONTROL+X on your keyboard. Is this possible? If it is what is the character string for it?


Thanks,

Jonathan Hensley

RE: Need help writing a barcode for CONTROL+X

(OP)
I should also say that the barcode doesn't have to be code 128. It can be any code.

RE: Need help writing a barcode for CONTROL+X

(OP)
I tried encoding that but it wouldn't read for me. In fact, my scanner will not read anything in 128A that is in lower case. Any ideas?

RE: Need help writing a barcode for CONTROL+X

(OP)
I believe so. I used a commercial program to check it.

RE: Need help writing a barcode for CONTROL+X

Lowercase 'x' (the character with decimal code 120, or hexadecimal 78) will generate a Code128 barcode symbol which will be interpreted as one of three different characters, depending on the current selected 'subset':

Subset A --> control code 'CAN' (this is the character usually associated with decimal code 24, hexadecimal 18).

Subset B --> lowercase 'x'.

Subset C --> numeric pair '88'.

So you will need a Start character which specifies Subset A, or, if switching from a different initial subset, the appropriate switching character).

As Jim has pointed out, you will also need to calculate the correct checksum character to go before the Stop character in the encoded string.

RE: Need help writing a barcode for CONTROL+X

(OP)
This is the string I have tried:

ËxxÎ

It is code 128A, and was generated by IDAutomation.com

Is this correct? It will not scan no matter what I try.

RE: Need help writing a barcode for CONTROL+X

I don't know about the font you are using, but...

If I create a 4 byte print string (in hex)

CODE

0xa9 0x78 0x78 0xac
  |    |    |    |
start data chk  stop
  A        sum
It DOES scan properly to ^X as expected.

Jim Asman
http://www.spectracolorservices.com

RE: Need help writing a barcode for CONTROL+X

It appears that the Start A and Stop codes in the ID_Automation 128 fonts are mapped to 0xCB and 0xCE respectively.

So try as a print string...

CODE


0xCB 0x78 0x78 0xCE

Jim Asman
http://www.spectracolorservices.com

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close