Solved

How to put characters in the keyboard buffer ?

Posted on 1998-12-03
3
255 Views
Last Modified: 2013-12-03
A few years ago, I had written a TSR that received data from a serial port (barcode reader), then put them into the keyboard buffer (INT 16H, function 5) to fill automatically
a form of a stock management application.

Now this application has moved to Windows 95, and naturally the TSR is not working any longer.
I plan to write a Win32 software that would run besides the stock management application, that would receive data from the serial port.
But I don't know how to send them to the keyboard buffer, so that the stock management form is filled .

Any ideas ?

Thanks for your answers.


J.C. REPETTO
jrepetto@mxmlab.com
0
Comment
Question by:jrepetto
  • 2
3 Comments
 
LVL 6

Accepted Solution

by:
stsanz earned 200 total points
ID: 1416661
Use keybd_event or SendInput APIs
0
 

Author Comment

by:jrepetto
ID: 1416662
I have found keyb_event in the Win32 API, but not SendInput. Is it also in the Win32 API ?
Which function is the best to use ?
0
 
LVL 6

Expert Comment

by:stsanz
ID: 1416663
SendInput is a Win32 API that can be used to send both keyboard and mouse events, but is available only from Win 98, or Win NT with service pack SP3.
Otherwise they are equivalent. Use keybd_event on Win 95.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now