I am trying to use WM_CHAR message to send keys to an AOL IM window. I do this:

GetWindowText(kSend, newKeys, 1284);

Because the text is user-defined in an edit box. Then:

for(int z=0; z < strlen(newKeys) + 1; z++)

SendMessage(szFindWin, WM_CHAR, (WPARAM)newKeys[z], (LPARAM)1284);

To use WM_CHAR to send each key to the AOL IM window. When I do, though, nothing happens. What should I do or what other way should I send keys to an AOL IM window?