Click to See Complete Forum and Search --> : Intercepting WM_SETTEXT Messages from other apps


AnotherNewbie
August 31st, 1999, 02:17 AM
Trying to intercept a particular WM_SETTEXT message from another running application that has multiple windows.

Is there any example code, or does anyone have any suggestions?

Have been looking at OnMessage(WM_SETTEXT, OnSetText) and SetWindowsHookEx()

But the question comes up on how to pick that particular window and instance.

Using Spy++ I can see the Class of the window I want, but the object in that window has two classes of the same name, one with the message I need, the other without.

Sorry - newbie here

August 31st, 1999, 03:29 PM
To do what you are asking *REQUIRES* using hooks.....this will allow you to know when the SETTEXT message is being sent so you can (I assume) grab the text thats being set and perhaps put it somewhere else or change it....