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: 3341
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 253 times
Been thanked: 155 times
Contact:

Read data from COM port and send it to keyboard buffer

Post 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?

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

Post by dragancesu »



User avatar
jairpinho
Posts: 360
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 »

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: 2267
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 315 times
Been thanked: 55 times
Contact:

Post by danielmaximiliano »

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 801 times
[/centre]
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO

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

Post 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

User avatar
jairpinho
Posts: 360
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 »

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 59 times
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br

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

Post by mol »

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

Post Reply