Page 1 of 1
Read data from COM port and send it to keyboard buffer
Posted: Wed Sep 04, 2019 10:52 am
by mol
Hi guys!
I need to read data from electronic scale connected via RS232 (I can do that) and paste this data into keyboard buffer.
It should work like a keyboard emulation.
Is it the way to do that?
Re: Read data from COM port and send it to keyboard buffer
Posted: Wed Sep 04, 2019 11:10 am
by dragancesu
Re: Read data from COM port and send it to keyboard buffer
Posted: Wed Sep 04, 2019 11:34 am
by mol
Thank you!
It's working fine!
Re: Read data from COM port and send it to keyboard buffer
Posted: Thu Sep 05, 2019 10:42 pm
by jairpinho
managed to do the direct reading via hmg, I think I have something here I will search.
Re: Read data from COM port and send it to keyboard buffer
Posted: Thu Sep 05, 2019 10:57 pm
by danielmaximiliano
I use HbComm Harbour Contrib....
read Ean13 from rs232 scanbar
- 2019-09-05 19_52_14-Autoservicio Los Tilos 2014.png (1.23 MiB) Viewed 2166 times
[/centre]
Re: Read data from COM port and send it to keyboard buffer
Posted: Fri Sep 06, 2019 5:33 am
by mol
Dragan' solution is exactly what I need.
The only better one would be hardware converter from rs232 to usb keyboard, but I didn't found such a device
Re: Read data from COM port and send it to keyboard buffer
Posted: Fri Sep 06, 2019 5:46 pm
by jairpinho
mol wrote: ↑Fri Sep 06, 2019 5:33 am
Dragan' solution is exactly what I need.
The only better one would be hardware converter from rs232 to usb keyboard, but I didn't found such a device
hello Marek, you say you need to read serial port data you don't need to emulate for keyboard see how it works:
1 -to read serial port data you need to be listening to it through loops defined by your system
2- know what format the equipment is sending
3- convert this data to decimal value or readable character in your system follows an example that I took some time to read data from serial port in hmg
Re: Read data from COM port and send it to keyboard buffer
Posted: Fri Sep 06, 2019 6:46 pm
by mol
I need to put read data into keyboard buffer for another application