With my program, I can send keys to Notepad when it's open:
I have this code for an AIM window:
szIndex=SendMessage(listWin, LB_GETCURSEL, 0, 0);
SendMessage(listWin, LB_GETTEXT, (LPARAM)szIndex, (WPARAM)szWinName);
GetWindowText(kSend, winText, 1284);
szFindWin_Chld=FindWindowEx(szFindWin, 0, "edit", 0);
SendMessage(szFindWin_Chld, WM_CHAR, (WPARAM)winText, (LPARAM)0);
And winText is declared first with TCHAR. When I want it to send to an AIM window, it doesn't and it freezes and I have to restart my program. How would I find the edit box to send key in an AIM window?