.net - change a virtual key after a keysroke and send to application -


i wanna change virtual key after keysroke, used raw inputs device information. actulay have 2 keyboards(a keyboard , barcode scanner) , raw input can keystorke come one. need chage virtual keys if come barcode scanner. change them "keychar = convert.tochar(0);" possible, how?

i'm not sure you're asking or exact environment you're in, i've been working barcode scanners using winforms, , had requirement first fetch scanned text, change it, send on form. capturing key strokes easy, how gonna know if come barcode scanner or keyboard?

the trick used in barcode format. have start , stop sign, $. use scanner , scan notepad , you'll see.

then use sign way of start capturing key strokes. each $ start capture every following keystroke made, @ next $ stop capture, take string , whatever want it. shot result form using sendkeys (assuming have @ least removed start/stop sign).

note, works code-xxx bar codes. gtin standards, don't use start or stop sign little more tricky.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -