Posted on 2004-11-23
this question is related to icq.
ICQ's messenger window name is #32770.
So I do: handlexyz := FindWindow('#32770', nil);
The textbox of icq is a RichEdit20A.
In that messenger (#32770) window there is one RichEdit20A for the textbox where you type messenges and one RichEdit20A for the messeges of the other person.
So when I do a handlendxyz := FindWindowEx(WIN, 0, 'RichEdit20A', nil);
and then a SendMessage(hwndxyz, WM_GETTEXT, 255, integer(@Buffer));
then it sometimes returns the text of the input textbox and sometimes the text of the other person.
Do you have any ideas why sometimes it returns the input textbox text and sometimes the text of the other person. I guess it has something to do with the focus. The question is, do you have any idea how to get a handle on both textboxes?