Now that I know how to send virtual keys to an application, I need some help on setting the window focus to the right window. Right now the virtual keys only go the the window that called them, but I need them to go to Notepad or some other program. Do I use getfocus()? And how?