home *** CD-ROM | disk | FTP | other *** search
-
- /*
- ** $VER: BindButton.edge 1.2 (Sunday 08-Aug-93 02:32:06)
- **
- ** Bind a macro to a mousebutton click
- **
- ** Written by Thomas liljetoft
- */
-
-
- options results
-
- /* get the users error-report level */
-
- getenvvar _ge_errlevel
- errlevel = result
-
- /* ask for a button-description to use */
-
- 'requeststring' title '"Enter Button, Qualifier & QualMask."' '"BUTTON=*"*" Q=*"*" QM=*"*""'
- if RC == 0 then do
-
- /* ok so far, now ask for a macro to bind to the button */
-
- button = result
- 'requestfile' title '"Select macro..."' path '""' file '""' getdir
- if RC == 0 then do
-
- /* okidoki, add to the mouse-button-command-list */
-
- 'mousebutton' button result
-
- end
- end
-
- if RC >= errlevel then do
-
- /* something went wrong enought to be reported so report */
-
- 'fault'
- 'requestnotify' '"'result'"'
- end
-
- exit(0)
-