home *** CD-ROM | disk | FTP | other *** search
/ On Disk Monthly 63 / odm63.zip / TPAUSE.TXT < prev    next >
Text File  |  1991-11-07  |  4KB  |  114 lines

  1. TPAUSE
  2. banner colors 7 7
  3. SG
  4. tpause static
  5. staticgraph 89,115
  6. staticgraph 47,249
  7. AG
  8. tpause animation
  9. L #1 1 122,-50;122,78 10 1 B
  10. L #2 1 0,258;78,255 6 4 B
  11. L #3 1 96,350;96,268 6 4 B
  12. T #4 1 133,255 5
  13. T #5 1 122,78 18
  14. T #6 1 122,78 18
  15. T #7 1 122,78 18
  16. T #8 1 29,61 1
  17.  
  18. Note: You cannot run these utilities from the ODM presentation
  19. system.  They are batch file commands and must be used within
  20. batch files.  Please read on for information on running the demo
  21. batch files.
  22.  
  23. This month the Happy Hacker provides a batch file
  24. command to enhance your use of these interpreted little wonders.
  25. TPAUSE is the first of our COMMANDS THAT DOS FORGOT series.
  26.  
  27. Currently DOS supports the batch file command PAUSE.  It allows
  28. you to pause the execution of the batch file and display a
  29. user message until a key is pressed.  PAUSE is so vigilant that
  30. it will sit there and wait for a keypress until time itself
  31. ceases to tick or the power is shut off.  What if you only
  32. wanted to hold for a few moments and then continue?  With the
  33. standard DOS commands, you were out of luck.  Enter the Happy
  34. Hacker with TPAUSE!
  35.  
  36. TPAUSE comes in three flavors to meet your batch pausing needs.
  37. Here's a list of the TPAUSE variants and how they work.
  38.  
  39. (Note: [] = optional parameter)
  40.  
  41. TPAUSE [message //] [additional messages //] , wait_time
  42.  
  43. The first of the TPAUSE programs allows you to display multiple
  44. message lines.  When TPAUSE encounters the "//" parameter it
  45. will insert a new line character and place the cursor at the
  46. beginning of a new line.
  47.  
  48. Wait_time is expressed in seconds but is calibrated for a
  49. 12mhz 286 processor.  You'll have to experiment to see
  50. how long the correct wait_time is for your batch file.
  51.  
  52. This version of TPAUSE shuts the cursor off.
  53.  
  54. TPAUSE1 [message] , wait_time
  55.  
  56. TPAUSE1, the second flavor of TPAUSE commands, is the same as
  57. its brother except that it does not support the new line command
  58. and leaves the cursor on.
  59.  
  60. TPAUSE2 [message] , wait_time
  61.  
  62. TPAUSE2 is like TPAUSE1 except that it turns the cursor off when
  63. waiting for a keypress.
  64.  
  65. If you should ever forget these commands and (say it isn't so)
  66. lose this documentation, use the command TPAUSE /? to see how it
  67. works.  Of course TPAUSE1 /? and TPAUSE2 /? will give you help
  68. for these commands as well.
  69.  
  70. We have included a demo batch file on the disk for you to
  71. experiment with.  The Happy Hacker always says, "Learn by doing."
  72. So go do!
  73.  
  74. The file is named TPDEMO.BAT.  You must have the TPAUSE programs
  75. in your path (if you have no idea what that means you need to
  76. look at a DOS manual) or in the same directory.  If you run the
  77. demo programs from the ODM disk you won't have a problem.
  78.  
  79. The demo file can be loaded into any text editor or word
  80. processor for viewing or editing.  If you do edit and resave
  81. it, make sure:
  82.  
  83. 1: You do not save it on the ODM disk.  As always it's full, and
  84. you will get a DISK FULL error.
  85.  
  86. 2: Your word processor saves the files as regular TEXT or ASCII
  87. files, not as some weird file type that belongs to your word
  88. processor.
  89.  
  90. 3: You use the file extension .BAT.  If you don't the file will
  91. not run!
  92.  
  93. Notes:
  94.  
  95. 1: Remember to leave a space between each of the TPAUSE
  96. parameters.
  97.  
  98. 2: Because of the time difference on different PC's TPAUSE may
  99. not accurately calculate seconds.  You'll have to experiment with
  100. the time delays to get it right on your machine.
  101.  
  102. ^C^BOutside On Disk Monthly^B
  103.  
  104. These utilities can only be run outside of On Disk Monthly, so,
  105. first copy them to a directory on your hard drive that is in
  106. your path.
  107.  
  108. ^C^BDisk files this program uses:^B
  109. ^FTPAUSE.EXE
  110. ^FTPAUSE1.EXE
  111. ^FTPAUSE2.EXE
  112. ^FTPDEMO.BAT
  113.  
  114. ^C^SBe happy and hack--learn by doing!^S