Read data from COM port and send it to keyboard buffer

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Read data from COM port and send it to keyboard buffer

Post by mol » Wed Sep 04, 2019 10:52 am

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?

User avatar
dragancesu
Posts: 700
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 23 times
Been thanked: 149 times

Post by dragancesu » Wed Sep 04, 2019 11:10 am



User avatar
jairpinho
Posts: 341
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 11 times
Contact:

Post by jairpinho » Thu Sep 05, 2019 10:42 pm

managed to do the direct reading via hmg, I think I have something here I will search.
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

User avatar
danielmaximiliano
Posts: 2153
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 162 times
Been thanked: 26 times
Contact:

Post by danielmaximiliano » Thu Sep 05, 2019 10:57 pm

I use HbComm Harbour Contrib....
read Ean13 from rs232 scanbar
2019-09-05 19_52_14-Autoservicio Los Tilos 2014.png
2019-09-05 19_52_14-Autoservicio Los Tilos 2014.png (1.23 MiB) Viewed 298 times
[/centre]
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Post by mol » 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

User avatar
jairpinho
Posts: 341
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Has thanked: 3 times
Been thanked: 11 times
Contact:

Post by jairpinho » Fri Sep 06, 2019 5:46 pm

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
Attachments
HBCOMM-ok2.zip
(28.47 KiB) Downloaded 19 times
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

User avatar
mol
Posts: 3227
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 224 times
Been thanked: 127 times
Contact:

Post by mol » Fri Sep 06, 2019 6:46 pm

I need to put read data into keyboard buffer for another application

Post Reply