home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3327 < prev    next >
Encoding:
Text File  |  1992-11-09  |  877 b   |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!utcsri!torn!nott!emr1!jagrant
  3. From: jagrant@emr1.emr.ca (John Grant)
  4. Subject: Re: SendMessage in TPW ????
  5. Message-ID: <1992Nov9.183520.12544@emr1.emr.ca>
  6. Organization: Energy, Mines, and Resources, Ottawa
  7. References: <1992Nov9.090531.26605@Informatik.TU-Muenchen.DE>
  8. Date: Mon, 9 Nov 1992 18:35:20 GMT
  9. Lines: 14
  10.  
  11. In article <1992Nov9.090531.26605@Informatik.TU-Muenchen.DE> loescher@Informatik.TU-Muenchen.DE (Stephan Loescher) writes:
  12. >
  13. >I have a problem:
  14. >I want to send a message to a window, e.g. a keystroke like 'A'.
  15. >(for programming an macro-recorder)
  16. >I can only send system-messages with SendMessage(), like wm_close.
  17. [stuff deleted]
  18.  
  19.     Why can't you just do:
  20.         SendMessage(hwnd,WM_CHAR,(WPARAM)'A',0);
  21. -- 
  22. John A. Grant                        jagrant@emr1.emr.ca
  23. Airborne Geophysics
  24. Geological Survey of Canada, Ottawa
  25.