home *** CD-ROM | disk | FTP | other *** search
- /*
- ** $VER: Menu_PlayNDefMac.edge 1.0 (Friday 22-Oct-93 12:55:22)
- **
- ** Playback the default macro N' times, upto 65535 times
- **
- ** Written by Thomas liljetoft & Inovatronics
- */
-
- options results
-
- /* check to see if it exists */
- if exists('ram:edge.macro') then do
-
- /* clear out the control-c flag */
- checkabort
-
- /* ask the user how many times to replay the macro */
- 'requestnumber showlimits title "How many times" default 10 min 1 max 65535'
- if rc==0 then do
-
- /* save off the count */
- top=result
-
- /* put edge to sleep */
- disableuser
-
- /* loop N times */
- do n=1 to top
- 'ram:edge.macro'
- if rc~=0 then leave
-
- /* check to see if the user want's to give up yet */
- checkabort
- if rc~=0 then leave
- end
-
- /* wake edge back up */
- enableuser
- end
- end
-
- /* if not then complain */
- else 'requestnotify "There is no default macro."'
-