Sending message to window +

Started by
2 comments, last by Kippesoep 18 years, 8 months ago
Is it possible to get window list, chose one of em and send keycodes to selected one in XP? Do u have to get all HWNDs and use some sort of a sendmessage??? And, can selected program detect such attempt???
______________________________Madman
Advertisement
Use EnumWindows to get a list of the windows, then SendMessage with the WM_KEYDOWN message to send the keycode

The program shouldn't be able to detect that the message was sent by another program, afaik, because the message doesn't carry such info
Thnx, i'll try
______________________________Madman
You may also want to send a WM_KEYUP after it :))
Kippesoep

This topic is closed to new replies.

Advertisement