S
S
Snikard2019-04-04 12:04:09
Macros
Snikard, 2019-04-04 12:04:09

Word macro to copy and paste text as barcode?

There is text (length can be different). It is necessary that after it it is displayed the same, but in the form of a barcode:

should be
5ca5c50c08cb8204832756.png

To do this, you have to delete a space after the text, put *, copy it all, paste it, delete the space that appears again (by the way, if the text starts with a number, there is no space!) ... and only then convert the text between * * to a barcode. ..in short, long all of this.
tyts
5ca5c7a1d251c919009563.png

That's actually the question - is it possible to write a macro so that he does all this himself (copying, deleting a space, etc.)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2019-04-04
@Snikard

The scanner usually emulates a keyboard. Those. input by hand or scanner differs only in speed. As an option - you can make a console program sitting in the tray. If, for example, 12 characters were entered at a certain speed, then this is an input from a scanner and it must be repeated according to the specified rules.
In a console program, you will need to use the global keyboard hook and emulate keyboard keystrokes. It's quite difficult to do this with a macro.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question