What do I best use to simulate keypresses to a window? Right now I'm using sendmessage and findwindowex to send keys to a certain class in a window, but the only thing I can get to work is WM_CHAR. If I want to simulate things like arrow presses, do I have to use keydown and keyup or syskey in succession? Thanks.