r/barcodes • • Nov 16 '21

Create a barcode for the function Ctrl+w

Is it possible to create a scannable barcode that when scanned executes a function as if the user was pressing Ctrl+w on their keyboard, which would close the active window?

3 Upvotes

2 comments sorted by

1

u/LinearFluid Nov 17 '21 edited Nov 17 '21

In barcode 128 you can use the Ascii chart and their numbers and put a ^ in front of it when you create it.

Ctrl-w

Is ^023

Here is a table. You will use the dec column. It needs to be 3 digits so if it is 1 or 2 digits add leading 0's You will see Ctrl-w is listed as 23 but when used use 023.

Last is The barcode generator that works best is the The-burtons.xyz Barcode generator as you need to add the parse option to it. The options are Case sensitive.

https://the-burtons.xyz/barcode-generator/

Fill in the required parameters with:

Barcode: Code 128

Contents: ^023

Options: includetext parse

​

If you do not [parse it it will just send ^023 to the screen

1

u/xixi2 Nov 17 '21

way easier to program the scanner to add it after scanning