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