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 worked on this forever but I still can't get it. How do I send text to an AOL IM window?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
I have tried that but how do I send the keys. What is the function?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK
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
Last edited by kje11; 12-29-2001 at 10:28 PM.
to send it to another window use SendMessage()
Thanks, but what message do I put in SendMessage();?
Website(s): http://www16.brinkster.com/trifaze/
E-mail: [email protected]
---------------------------------
C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
DirectX Version: 9.0b
DX SDK: DirectX 8.1 SDK