Ok im making a macro program...
I got this...
HWND hwndEdit = 0;
HWND hwnd = 0;
i = 0;
//Get main notepad handle
hwnd = FindWindow("Notepad","a - Notepad");
hwndEdit = FindWindowEx(hwnd,0,"Edit",0);
//write an 'a'
test = 97;
All that I want to do, is send a message to the notepad and display 'a' 10 times to it while its up.
I used spy++ to check if the handles were right for each window and everything checked out OK in debugger.
Does anyone notice whats wrong with this?