Solved

How to put characters in the keyboard buffer ?

Posted on 1998-12-03
3
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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.…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

730 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