home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15145 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.3 KB

  1. Path: sparky!uunet!gatech!darwin.sura.net!spool.mu.edu!agate!ucbvax!ucdavis!salsa.engr.ucdavis.edu!jedavis
  2. From: jedavis@salsa.engr.ucdavis.edu (James Davis)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: How to swap KCHR the sys is using ?
  5. Message-ID: <16827@ucdavis.ucdavis.edu>
  6. Date: 8 Sep 92 15:05:56 GMT
  7. Sender: usenet@ucdavis.ucdavis.edu
  8. Organization: College of Engineering - University of California - Davis
  9. Lines: 18
  10.  
  11. I need to temporarily replace the system KCHR mapping with one of my
  12. own.  I know its possible since the Keyboard Control Panel does essentially
  13. what I want.  It seems the script manager should do what I want,
  14. through the KeyScript() function.  But I cant seem to enable the SM.
  15. When I call GetEnvirons(smEnabled) I get a 0 returned.  So how do
  16. I turn on the SM?  Also IM seems to say that KeyScript() will function
  17. only on the KCHR resources that belong to a script.  How do I make
  18. sure my custom KCHR belongs to the script system?
  19. All this is in refrence to a US system.  Im using 7.0.1 on a IIci, but
  20. my app needs to run under sys6 as well. Writing with Think C 5.x
  21.  
  22. Any pointers to a piece of sample code that swaps around KCHRs
  23. or otherwise use the script manager appreciated.  I looked through
  24. Apple DTS Sample code, but didnt see anything, might have missed it
  25. though.
  26.  
  27. Thanks for any info,
  28. James Davis : University California : jedavis@ucdavis.edu
  29.