CompuServe Thread

changing prefs

1 messages in this thread
#115470From: Francis KostellaAug 2, 1990 10:48 PM
I'm having a bit of trouble with SetPrefs, has anyone here used it? GetPrefs seems to work OK for me, but when I try to modify the Prefs with SetPrefs, the darn thing blows up. A little background: I want to get keyboard keydown and keyups, so I'm using a console with RAW keyboard input. I haven't had any problems with the console, but my preferences are set with a short repeat delay and a fast repeat speed. When I hold down a number of keys I end up receiving a lot of keydowns for the last key down, then I start getting garbage (the ends of the sequences start to get chopped off). I only WANT to be told when any key has been pushed or released, and in the best of all possible worlds, only once each. After playing around with my preferences a while, it dawned on me that I could modify Intuition's prefs (while saving the originals) to have the longest delay and slowest repeat (Incidentally, is it possible to turn off key repeating? Gee, if I could do it via the console I'd be one happy puppy!). I've been looking around for examples of how to modify prefs with GetPref and SetPref, but haven't been able to find anything. Suggestions, anyone? Also, this brings up another point (assuming I get this together), if I send a FALSE in the Inform parameter to SetPrefs, does that mean that the only windows that use my modified keyrepeat will be those that are opened after I modify them? Hmmm, it's a pain using an editor with a 3 second repeat delay! I dont want to do THAT to anyone…