home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!utcsri!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: Re: SendMessage in TPW ????
- Message-ID: <1992Nov9.183520.12544@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <1992Nov9.090531.26605@Informatik.TU-Muenchen.DE>
- Date: Mon, 9 Nov 1992 18:35:20 GMT
- Lines: 14
-
- In article <1992Nov9.090531.26605@Informatik.TU-Muenchen.DE> loescher@Informatik.TU-Muenchen.DE (Stephan Loescher) writes:
- >
- >I have a problem:
- >I want to send a message to a window, e.g. a keystroke like 'A'.
- >(for programming an macro-recorder)
- >I can only send system-messages with SendMessage(), like wm_close.
- [stuff deleted]
-
- Why can't you just do:
- SendMessage(hwnd,WM_CHAR,(WPARAM)'A',0);
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-