Hooking - How to send characters to another application ...
-
How do you send characters to another application's Text Box when that text box is controlled by code that formats the data. I have a legacy application (without source code of course) that I would like to control. I can write just fine into Text Boxes that just accept characters -- but this instance is a Text Box where the legacy code is looking in the Keyboard Buffer for characters and then formatting what is displayed. In other words, its stuffing in the dollar sign ("$") automatically. This works fine for ordinary Text boxes but not for the ones that format the text box contents: SendMessageText(WINDOWHANDLE, WM_SETTEXT, Len(TEXTMESSAGE), TEXTMESSAGE) It seems as if I need to write to the Keyboard buffer so the Legacy Application can process it --- but when I tried that I learned that you have to switch the focus to the Legacy Application because only focused applications can access the Keyboard buffer. Anybody have a code fragment that can do this? Thanks Carl Carl@CarteBlanc.com