home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** $VER: NewKey.edge 1.2 (Sunday 19-Sep-93 20:19:52)
- **
- ** Add a new keyboard command
- **
- ** Written by Thomas liljetoft
- */
-
-
- options results
-
- /* get the users error-report level */
-
- getenvvar _ge_errlevel
- errlevel = result
-
- /* ask for the key-description to use */
-
- 'requestkey' title '"Enter new key."'
- if RC == 0 then do
-
- /* ok, now ask for the command */
-
- key = result
- 'requeststring' title '"Enter command."'
- if RC == 0 then do
-
- /* add the new command */
-
- 'keyboard' key result
-
- end
- end
-
- if RC >= errlevel then do
-
- /* something went wrong enought to be reported so report */
-
- 'fault'
- 'requestnotify' result
- end
-
- exit(0)
-