I'm wondering how to use SendMessage() or PostMessage() to send keystrokes to an inactive window. Could someone provide me with a simple code that sends a few characters and the enter button to notepad, while it's in the background?