[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to put characters in the keyboard buffer ?

Posted on 1998-12-03
3
Medium Priority
?
288 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 400 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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 summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

830 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