I am trying to make an application, which reads the data from a serial port (on the serial port there is a barcode scanner plugged in), and then forwards it to an application. I can read data from serial port now, but i don’t know, how to forward the read text, to an application, for example notepad. I tried to use SendMessage() API but it didn’t succeed. Maybe i did something wrong.
Could someone help me, and maybe show some example?
Thanks,
kampi
Sounds like you’re looking for keybd_event or the newer SendInput. It allows you to simulate keyboard input.