Solved

How to put characters in the keyboard buffer ?

Posted on 1998-12-03
3
258 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

19 Experts available now in Live!

Get 1:1 Help Now