home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: Menu_BindKey.edge 1.3 (Sunday 19-Sep-93 20:18:34)
- **
- ** Bind a macro to a key
- **
- ** Written by Thomas liljetoft
- */
-
-
- options results
-
- /* get the users error-report level */
-
- getenvvar _ge_errlevel
- errlevel = result
-
- /* ask for a key-description to use */
-
- 'requestkey' title '"Enter key to bind macro to."'
- if RC == 0 then do
-
- /* ok so far, now ask for a macro to bind to the key */
-
- key = result
- 'requestfile' title '"Select macro..."' path '""' file '""' getdir
- if RC == 0 then do
-
- /* okidoki, add to the key-list */
-
- '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)
-