home *** CD-ROM | disk | FTP | other *** search
- /* AutoSave
- A Macro by Steven. R. Giovenella, 5823 Dutchess Dr., Colorado Springs, CO 80918.
- © Copyright 1994 Steven. R. Giovenella, All rights reserved.
- This macro is my gift to the Amiga community. It may be given away free to
- anyone, but it may NOT be sold in any way, shape, or form, not even for the cost of
- reproduction, downloading, shipping, or handling, without express written
- permission from the author listed above. Any person or company who violates the
- content of the previous sentence, agrees to pay Steven R. Giovenella $1,000 (US) for
- each copy of this macro sold. This macro may NOT be added to any disk which is to
- be sold for any price or fee, to include shipping and handling. The ONLY way this
- macro may be distributed is on a disk which is given away 100% free of all charges,
- or on via telecommunications networks which do not charge any additional fee as a
- result of a user downloading this particular macro. This macro may only be
- reproduced in its entirety, including all comment lines and code. The individual
- user may alter this macro for personal use, but may not then distribute the macro
- in any modified form. If you wish, feel free to send me some cash, a Christmas card,
- some other piece of software, or absolutely nothing as a gift for creating this macro.
- The author of this software is not responsible for any data loss or damage to
- computer equipment as a result, direct or indirect, of the use of this macro. */
-
- Options Results
-
- /* Ask how often to Save, default to 5 minutes*/
- s=5
- ShowMessage 1 0 '"Save every..." "" "" " 10 mins " " 5 mins " "
- Other "'
- IF Result = 1 THEN s = 10
- IF Result = 2 THEN s = 5
- IF Result = 3 THEN DO
- RequestText '"AutoSave" "Enter save time in minutes..." "15"'
- s=Result
- END
- savesecs=s*60
-
- /* Save Confirmation Switch */
- ShowMessage 1 0 '"Confirm each save?" "" "" " Yes " " No " ""'
- IF Result = 1 THEN c=1
- IF Result = 2 THEN c=0
-
- /* Save Routine */
-
- CT=Time(seconds)
- ST=CT+savesecs
-
- DO FOREVER
- WAIT 10
- CT=Time(seconds)
- IF VAL CT>=VAL ST THEN DO
- ST=CT+savesecs
- skipsave=1
- IF c=1 THEN DO
- ShowMessage 1 0 '"Time to save..." "" "" " Save " "
- Skip this save " " Quit AutoSave "'
- IF Result = 1 THEN save
- IF Result = 2 THEN skipsave=0
- IF Result = 3 THEN Leave
- END
- IF skipsave=1 THEN save
- END
- IF VAL ST>VAL 86400 THEN ST=0
- END
- ShowMessage 1 0 '"AutoSave Terminating" "" "" " OK " "" ""'
-
-