Hi, How can I send keystrokes(like Ctrl + V) to a minimised Notepad ?
To send some text I use something like this:
HWND ahwnd;
char text[100] = "it works !";
ahwnd = FindWindow("Notepad",NULL)
SendMessage(FindWindowEx(ahwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text);
Give me an example please.