Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!cdp!jeff From: jeff@cdp.UUCP Newsgroups: comp.windows.misc Subject: Activating a button with a key Message-ID: <1097300009@cdp> Date: 17 Mar 91 23:42:00 GMT Lines: 14 Nf-ID: #N:cdp:1097300009:000:559 Nf-From: cdp.UUCP!jeff Mar 17 15:42:00 1991 I'm trying to figure out how to "stuff keystrokes" into Windows. I've been able to successfully do this for edit controls, using the obvious "send WM_CHAR" or "send WM_KEYDOWN, WM_KEYUP" sequences. However, I'm stuck on how to activate a button by pressing a key. I know this is possible, since the Recorder can do it with no problem, but no matter where I send messages, nothing happens. I've tried SPYing but that hasn't revealed any useful info. Solutions or pointers would be appreciated. Thanks... Jeff Dean jeff@cdp.igc.org uunet!pyramid!cdp!jeff