Send CR LF to active window

Hello,
I am trying to send CR LF to a window of an application outside my running application. I was able to get the HWND to the window and send data to it, but can not get CR LF (enter key) to go over. Can anyone shed some light ? here is the cdoe i have, thanks

BOOL CALLBACK WorkerProc(HWND hwnd, LPARAM lParam) {
static TCHAR buffer[50];
static WPARAM *CRLF = "\r\n";

GetWindowText(hwnd, buffer, 50);

if(_tcsstr(buffer, "1-BLOOMBERG"))
{
// found application now switch to app
SwitchToThisWindow(hwnd,true);
for (int index = 0, count = myCusip.GetLength() ; index < count; index++)
SendMessage( hwnd, WM_CHAR, myCusip[index] , 0 );

// send enter key to screen
SendMessage( hwnd, WM_CHAR, '0x0D' , 0 );
return FALSE;
}

return TRUE;
}
Topic archived. No new replies allowed.