🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.misc
Article #517

Activating a button with a key

#517
From: jeff
Date: Sun, 17 Mar 1991 23:42
14 lines
947 bytes
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
Technical Details
Message-ID: <1097300009@cdp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!sgi!cdp!jeff

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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