home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18843 < prev    next >
Encoding:
Text File  |  1992-11-23  |  972 b   |  29 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!amexatg!croyer
  3. From: croyer@atg.amex-trs.com (Chuck Royer)
  4. Subject: Fooling the Event Manager
  5. Sender: root@atg.amex-trs.com (Root user)
  6. Message-ID: <By6EqM.M3K@atg.amex-trs.com>
  7. Date: Mon, 23 Nov 1992 15:51:58 GMT
  8. Reply-To: croyer@atg.amex-trs.com
  9. Organization: American Express Advanced Technology Group
  10. Keywords: event keyboard modifier
  11. Followup-To: comp.sys.mac.programmer
  12. Lines: 15
  13.  
  14.  
  15. -- 
  16. I'm developing a background application that is generating keyboard events.
  17. I need to be able to generate an event that also sets the status of the
  18. modifier keys (i.e. Command-s for "save").  Using PostEvent, I can only set
  19. the character code for the letter "s" and the OS generates the modifiers
  20. field in the event record.  Is there a way I can set the modifiers field as
  21. well as the character code when I post a keyDown event?
  22.  
  23. Please e-mail responses and I will post a summary.
  24.  
  25. Thanks in advance.
  26.  
  27.  
  28. - Chuck Royer
  29.