I have worked on this forever but I still can't get it. How do I send text to an AOL IM window?
Printable View
I have worked on this forever but I still can't get it. How do I send text to an AOL IM window?
I have tried that but how do I send the keys. What is the function?
try making a function like this:
void KeyStroke(char key)
{
int keycode = VkKeyScan(key);
keybd_event(keycode, 0, 0, 0);
keybd_event(keycode, 0, KEYEVENTF_KEYUP, 0);
}
this should send a keystroke to the active window
to send it to another window use SendMessage()
Thanks, but what message do I put in SendMessage();?