Hey,
Yesterday I tried to send text to another window in c++.
Worked fine with notepad, but when I'm trying to send the text to a command line its not working. It doesn't write anything.
I use this code:
Code:
SetForegroundWindow((HWND)hWnd);
SendMessage(FindWindowEx((HWND)hWnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)strcat(message, dbName));
(message) is my variable for some defined text and (dbName) is text from a user input stored in a variable
Like I said, it works in notepad, but not in command line.
Hope u can understand my English and someone can help me 
Thanks in advance.