home *** CD-ROM | disk | FTP | other *** search
- /* This procedure will scroll a text in the main cycle window */
- /* */
- /* If you want to use this little procedure in your own programs, do */
- /* this: Cut out the procedure starting from the line that begins with */
- /* 'ScrollMe: PROCEDURE' ending on 'RETURN 0' (Both lines inclusive) */
- /* */
- /* The procedure takes two arguments, namely <String> and <Pause> */
- /* <String> is the string you want scrolled, and <Pause> is the pause */
- /* in seconds between each character scroll. */
-
- ADDRESS APlayer
- OPTIONS RESULTS
- SIGNAL ON HALT
-
- GetString "Enter a scroll text"
- IF RC=1 THEN EXIT
-
- string=RESULT
-
- CALL ScrollMe string,0.08 /* This will call the procedure ScrollMe */
- EXIT
-
- /* This procedure will scroll the text which you have typed */
-
- ScrollMe: PROCEDURE
- PARSE ARG text,waittime
- SetCycle RexxMsg
-
- text=INSERT("",text,0,30," ")
- counter=0
-
- DO UNTIL counter=LENGTH(text)+1
- RexxMsg text
- text=RIGHT(text,LENGTH(text)-1) || LEFT(text,1)
- counter=counter+1
-
- CALL TIME('R')
- DO UNTIL TIME('E') > waittime
- END
- END
- RETURN 0
-
- /*
- This is the 'emergencybrake' part of this script. If you can't stop this
- sucker run the program HI which is located in the RXC drawer on your
- sys: partition.
- */
-
- HALT:
- Say 'The ScrollMe.aplay script has been stopped. Hope you liked it.'
- EXIT
-