Read keystroke and send unicode character to active window lazarus / 34-Windows ---------------------------------------------------------------------- bruce.button · 2014-03-23 21:09 I would appreciate some guidance on the following: Using Lazarus/Free Pascal, how would I read input from the keyboard while an application is open and, depending on that input, send a unicode character(s) to the open application. I've tried to find this information on the Forum and using Google without success. It seems one can use the Windows SendInput function, but I can't find information on how to use this in Lazarus. Thanks for the help! Bruce ---------------------------------------------------------------------- typo · 2014-03-23 21:32 http://forum.lazarus.freepascal.org/index.php/topic,8699.msg42019.html #msg42019 ---------------------------------------------------------------------- bruce.button · 2014-03-23 22:33 Thanks for the quick reply. However, (1) that thread deals with sending a keystroke to an edit box (not an application); and (2) the packages referred to seem to deal with sending keystrokes (not characters, including unicode characters). ---------------------------------------------------------------------- typo · 2014-03-23 22:58 What do you mean by "open application", is it an external application? ---------------------------------------------------------------------- bruce.button · 2014-03-23 23:12 Yes, it is an external application - word processor, notepad, or any other application. ---------------------------------------------------------------------- typo · 2014-03-23 23:45 Maybe this can help: http://stackoverflow.com/questions/7454417/send-text-to-other- applications ---------------------------------------------------------------------- bruce.button · 2014-03-24 06:49 Thanks, I will work on that.