home *** CD-ROM | disk | FTP | other *** search
/ Shareware 1 2 the Maxx / sw_1.zip / sw_1 / DISK_UTL / LAST20.ZIP / DEM.LAS < prev    next >
Text File  |  1992-08-01  |  14KB  |  559 lines

  1.   videoback red
  2.   videofore brightwhite
  3. * videoback white
  4. * videofore black
  5. load        "last.exe"                                    
  6. Go "%1"
  7. call waitdot
  8. call lowbox
  9. screen 21 1 "LAST has read all files on drive C: and sorted them in chronological order.         "
  10. screen 22 1 "The file most recently modified appears first.  This is the last work you did."
  11. screen 24 28   "To continue, press <Enter>."
  12. call getanykey
  13. call lowbox
  14. screen 21 3 "You can change which file is highlighted by pressing PgDn, PgUp, cursor " 
  15. screen 22 3 "arrows, <End> and <Home>." 
  16. screen 24 0 "        Press PgDn to highlight the file on the bottom of the screen."  
  17. call dopgdn
  18.  call waitdot
  19. screen 22 0 "                                                                                "
  20. screen 23 0 "                       Press PgDn again to see more files.                      "
  21. screen 24 0 "                                                                                "
  22. call dopgdn
  23. call waitdot
  24. screen 22 0 "                                                                                "
  25. screen 23 0 "                Press the Home key to move to the top of the list.              "
  26. screen 24 0 "                                                                                "
  27. call homekey
  28. call waitdot
  29. call lowbox
  30. screen 20 3 "LAST allows you to view, search, move, delete, tag, copy, sort, and rename"
  31. screen 21 3 "files.  Let's start with Copy.  Before using the Copy function, we need to 
  32. screen 22 3 "tell LAST which floppy drive to copy to."
  33. screen 24 25 "Press S to go to the Setup."
  34. call dosetup
  35. waitscreen 18 12 "I"
  36. call lowbox
  37. screen 21 3 "The Setup Screen allows you to change LAST's parameters.  Right now we are"
  38. screen 22 3 "concerned with the Floppy Drive parameter."
  39. screen 24 1 "                       Press the down arrow twice."
  40. call dodown
  41. call dodown
  42. waitscreen 17 16 "ending"
  43. call lowbox
  44. screen 21 7 "Type the letter of the floppy drive you wish to copy to.  Type A:."
  45. screen 23 1 "             Press the <Enter> key to return to the list of files."
  46. call dofloppy
  47. call redraw
  48. screen 22 0 "                                                                                "
  49. screen 23 0 "            Press C to copy the highlighted file to your floppy disk.          "
  50. screen 24 0 "                                                                                "
  51. call docopy
  52. call redraw
  53. call lowbox
  54. Screen 21 20 "  We will now narrow down the list of files."
  55. Screen 23 20 "Press F to go to the File Specification Screen."
  56. call dofilespec
  57. waitscreen 20 8 "F"
  58. call lowbox
  59. screen 21 3 "A File Specification is any combination of drive, directory and filename."
  60. screen 22 3 "Let's select all batch files on drive C:."
  61. screen 24 26 ^Type  "C:*.BAT" and press <Enter>.
  62. call dountilcr
  63. call redraw
  64. call lowbox
  65. screen 21 1 "As you may have noticed, LAST's commands are invoked with only one keystroke."
  66. screen 22 1 "The Help Screen summarizes the commands available to you."
  67. screen 24 20 "Press H or F1 to see the Help Screen."
  68. call dohelp
  69. waitscreen 0 9 "("
  70. call lowbox
  71. screen 21 3 "This summary is a handy way to view all of LAST's commands.  Part of the"
  72. screen 22 3 "Help Screen is obscured by the Demo."
  73. screen 24 1 "                  Press <Esc> to return to the list of files."
  74. call doesc
  75. call redraw
  76. call lowbox
  77. screen 21 9 "LAST's manual provides a detailed description of LAST's operation."
  78. screen 23 24 "Press R to read LAST's manual."
  79. call doread
  80. waitscreen 0 9 "("
  81. call lowbox
  82. screen 21 1 "This is the beginning of the manual.  You can search the manual for any string"
  83. screen 22 1 ^of text.  We will search for "STARTUP".
  84. screen 24 36 "Press S."
  85. call dosetup
  86. waitscreen 6 12 "Search"
  87. call lowbox
  88. screen 22 23 ^Type "STARTUP" and press <Enter>.
  89. call dountilcr
  90. waitscreen 23 63 "Page"
  91. call lowbox
  92. screen 21 3 ^The top of the screen shows the first occurrence of "STARTUP".  You can
  93. screen 22 3 "repeat the search by pressing the + key."
  94. screen 24 36 "Press +."
  95. call doplus
  96. waitscreen 22 37 "Setup"
  97. call lowbox
  98. screen  21 13 "Notice how easy it is to access and search LAST's manual."
  99. screen 23 1 "                  Press <Esc> to return to the list of files."
  100. call doesc
  101. call redraw
  102. call lowbox
  103. screen 21 17 "The next step is to view the highlighted file."
  104. screen 23 32 "Press <Enter>."
  105. call doenter
  106. waitscreen 0 9 "("
  107. call lowbox
  108. screen 20 3 "This is the highlighted file.  LAST allows you to see the highlighted file"
  109. screen 21 3 "using the four cursor arrows, PgUp, PgDn, End, and Home keys.  Right now"
  110. screen 22 3 "we will demonstrate LAST's ability to search multiple files."
  111. screen 24 36 "Press S."
  112. call dosetup
  113. waitscreen 6 12 "Search"
  114. call lowbox
  115. screen 21 3 "Let's search for something that surely doesn't exist in your batch files."
  116. screen 23 12 ^Type:  "This DEMO is helpful."  and press the <Enter> key.
  117. call dountilcr
  118. waitscreen 8 18 "Press"
  119. call lowbox
  120. screen 21 3 "If LAST found the string, LAST would display its location.  Since it did not"
  121. screen 22 3 "find the string, it asks to continue the search."
  122. screen 24 31 "Press <Enter>."
  123. call doenter
  124. waitscreen 8 26 "Press"
  125. call lowbox
  126. screen 21 13 "LAST did not find the string in any of the files."
  127. screen 23 31 "Press <Enter>."
  128. call doenter
  129. call lowbox
  130. screen 22 20 "Press Home to move to the top of the list."
  131. call homekey
  132. call redraw
  133. call lowbox
  134. screen 21 26  "Next let's try the tag function."
  135. screen 23 36  "Press T." 
  136. call dotag
  137. key "[Shift][F10]"
  138. call waitdot
  139. call lowbox
  140. screen 21 1 "                Notice the check mark next to the first filename."
  141. screen 23 24 "Press T again to tag the 2nd file."
  142. call dotag
  143. key "[Shift][F10]"
  144. call waitdot
  145. call lowbox
  146. screen 22 1 "              Press C to copy the tagged files to your floppy disk.          "
  147. call docopy
  148. call redraw
  149. call lowbox
  150. screen 21 8 "Now let's look at your floppy drive to see the files we just copied."
  151. screen 23 36 "Press F." 
  152. call dofilespec
  153. waitscreen 20 8 "F"
  154. call lowbox
  155. screen 22 24^Type  "A:*.BAT" and press <Enter>.
  156. call dountilcr
  157. call redraw
  158. pause 5 t
  159. call lowbox
  160. screen 21 27 "Next we will rename a file."
  161. screen 23 36 "Press N.
  162. call doname
  163. pause 5 t
  164. key "[Shift][F10]"
  165. call lowbox
  166. screen 21 20 "Enter a new name for the highlighted file."
  167. screen 23 31 "Then press <Enter>."
  168. call dountilcr
  169. call redraw
  170. call lowbox
  171. screen 21 21 "Now delete the two files we just copied."
  172. screen 23 32 "Press Ctrl D."
  173. call dodelete
  174. key "[Shift][F10]"
  175. call waitdot
  176. call lowbox
  177. screen 22 25 "Now press Ctrl D again."
  178. call dodelete
  179. key "[Shift][F10]"
  180. call waitdot
  181. call lowbox
  182. screen 21 26 "Now let's go back to drive C:."
  183. screen 23 36 "Press F." 
  184. call dofilespec
  185. waitscreen 20 8 "F"
  186. pause 2 t 
  187. call lowbox
  188. screen 21 22 "Press the F5 key to erase the File Spec."
  189. screen 23 26 ^Then type "C:" and press <Enter>.
  190. call dountilcr
  191. call redraw
  192. call lowbox
  193. screen 21 14 "You can sort the files in order of name, size, or date."
  194. screen 23 23 "Press Alt N to sort the files by name."
  195. call doaltn
  196. call redraw
  197. call lowbox
  198. screen 21 22 "The files are now in alphabetical order."
  199. screen 23 22 "Press Home to see the beginning entries."
  200. call homekey
  201. call redraw
  202. call lowbox
  203. screen 21 15 "Next let's look at the directory tree of drive C:."
  204. screen 23 30 "Press the spacebar."
  205. call dospacebar
  206. waitscreen 24 23 "Press"
  207. call lowbox
  208. screen 21 3 "The Directory Menu allows you to select a directory with one key.  Or use"
  209. screen 22 3 "the arrows, PgDn, PgUp, Home and End keys to select a directory."   
  210. screen 24 35 "Press <Esc>.
  211. call doesc
  212. call redraw
  213. call lowbox
  214. screen 21 20 "Let's look at another Directory Tree style."
  215. screen 23 36 "Press B."
  216. call dobytes
  217. waitscreen 24 29 "<Enter>"
  218. call lowbox
  219. screen 21 1 "The B (bytes) display shows the number of bytes used in each directory.  The" 
  220. screen 22 1 "totals on the left include subdirectories.  The right excludes subdirectories."   
  221. screen 24 35 "Press <Esc>.
  222. call doesc
  223. call redraw
  224. call lowbox
  225. screen 21 20 "LAST provides a handy way to go to DOS."
  226. screen 23 36 "Press G."
  227. call dogotodos
  228. waitscreen 21 7 "Default"
  229. pause 2 t
  230. call lowbox
  231. screen 21 3 "This dialog box is provided so you can perform DOS commands.  After the "
  232. screen 22 3 "command is performed, you will come right back to LAST."
  233. screen 24 18 "Type CHKDSK C: and press the <Enter> key."
  234. call dountilcr
  235. waitscreen 7 7 "Press"
  236. call lowbox
  237. screen 22 36 "Press N."
  238. call doname
  239. call redraw
  240. call lowbox
  241. screen 21 15 "You can also use function keys to operate LAST."
  242. screen 23 36 "Press K."
  243. call dokeys
  244. waitscreen 21 19 "Valid"
  245. pause 2 t
  246. call lowbox
  247. screen 20 3 "When you press any function key, LAST acts as though you had pressed the"
  248. screen 21 3 "key assigned to it.  You can change the function key assignments using"
  249. screen 22 3 "this screen."
  250. screen 23 30 "Press <Enter>."
  251. call getanykey
  252. key "[Enter]"
  253. call redraw
  254. call lowbox
  255. screen 20 1 "One very useful feature of LAST which can't be included in the demo is the"
  256. screen 21 1 "Launch.  The L key launches the highlighted file into an application program"
  257. screen 22 1 "you've assigned in Setup. "
  258. screen 24 31 "Press <Enter>."
  259. call getanykey
  260. key "[Shift][F10]"
  261. call redraw
  262. call lowbox
  263. screen 21 2 "We will not explore other useful functions, such as split-screen viewing, "
  264. screen 22 2 "moving, and executing.  Please refer to the manual for details."
  265. screen 24 31 "Press <Enter>."
  266. call getanykey
  267. key "[Shift][F10]"
  268. call redraw
  269. SCREEN 5 0 "                                                                                "
  270. sCREEN  6 0 "                         This concludes the DEMO.                               "
  271. SCREEN 7 0 "                                                                                "
  272. SCREEN 8 0 "         To start LAST:  At the C: prompt, type LAST and press <Enter>.         "
  273. SCREEN 9 0 "                                                                                "
  274. SCREEN 10 0 "                       Press <Enter> to go to DOS.                              "
  275. SCREEN 11 0 "                                                                                "
  276.  
  277. call getanykey
  278. key "[Alt]Q"
  279. quit
  280.  
  281.  
  282. label dotag
  283. getkey        
  284. call done
  285. ifkey "tT" 
  286. else
  287.    jump dotag
  288. endif
  289. passkey
  290. return
  291.  
  292. label redraw
  293. waitscreen 4 36 ":"
  294. key "[Shift][F9]"
  295. key "[Shift][F10]"
  296. call waitdot
  297. return
  298.  
  299.  
  300. label dogotodos
  301. getkey        
  302. call done
  303. ifkey "gG" 
  304. else
  305.    jump dogotodos
  306. endif
  307. passkey
  308. return
  309.  
  310.  
  311. label dobytes
  312. getkey        
  313. call done
  314. ifkey "bB" 
  315. else
  316.    jump dobytes
  317. endif
  318. passkey
  319. return
  320.  
  321. label doaltn
  322. getkey        
  323. call done
  324. ifkey "[Alt][N]" 
  325. else
  326.    jump doaltn
  327. endif
  328. passkey
  329. return
  330.  
  331.  
  332. label dospacebar
  333. getkey        
  334. call done
  335. ifkey " " 
  336. else
  337.    jump dospacebar
  338. endif
  339. passkey
  340. return
  341.  
  342.  
  343. label dodelete
  344. getkey        
  345. call done
  346. ifkey "[Ctrl][D]" 
  347. else
  348.    jump dodelete
  349. endif
  350. passkey
  351. return
  352.  
  353. label waitdot
  354. WaitScreen 0 79 "."
  355. key "[Shift][F9]"
  356. return
  357.  
  358.  
  359. label doname
  360. getkey        
  361. call done
  362. ifkey "nN" 
  363. else
  364.    jump doname
  365. endif
  366. passkey
  367. return
  368.  
  369.  
  370. label doview
  371. getkey        
  372. call done
  373. ifkey "vV" 
  374. else
  375.    jump doview
  376. endif
  377. passkey
  378. return
  379.  
  380. label doplus
  381. getkey        
  382. call done
  383. ifkey "+" 
  384. else
  385.    jump doplus
  386. endif
  387. passkey
  388. return
  389.  
  390. label homekey
  391. getkey        
  392. call done
  393. ifkey "[Home]" 
  394. else
  395.    jump homekey
  396. endif
  397. key "[Shift][F10]"
  398. passkey
  399. return
  400.  
  401. label getanykey
  402. getkey
  403. call done
  404. return
  405.  
  406.  
  407. label dountilcr
  408. getkey
  409. call done
  410. ifkey "[Enter]
  411.   passkey
  412.   return
  413. else
  414.   passkey
  415. endif
  416. jump dountilcr
  417.  
  418. label dofilespec
  419. getkey        
  420. call done
  421. ifkey "fF" 
  422. else
  423.    jump dofilespec
  424. endif
  425. key "[Shift][F10]"
  426. passkey
  427. return
  428.  
  429.  
  430. label dofloppy
  431. getkey
  432. call done
  433. ifkey "abAB:" 
  434.    passkey
  435. endif
  436. ifkey "[Enter]" 
  437.    passkey
  438.    return
  439. endif
  440. jump dofloppy
  441.  
  442.  
  443.  
  444. label dodown
  445. getkey        
  446. call done
  447. ifkey "[Down]" 
  448.    passkey
  449.    return
  450. endif
  451. jump dodown
  452.  
  453. label dosetup
  454. getkey        
  455. call done
  456. ifkey "sS" 
  457. else
  458.    jump dosetup
  459. endif
  460. key "[Shift][F10]"
  461. passkey
  462. return
  463.  
  464. label docopy
  465. getkey
  466. call done
  467. ifkey "cC"
  468.   passkey
  469.   return
  470. else
  471.   passkey
  472. endif
  473. jump docopy
  474.  
  475.  
  476. label doread
  477. getkey        
  478. call done
  479. ifkey "rR" 
  480. else
  481.    jump doread
  482. endif
  483. key "[Shift][F10]"
  484. passkey
  485. return
  486.  
  487. label dokeys
  488. getkey        
  489. call done
  490. ifkey "kK" 
  491. else
  492.    jump dokeys
  493. endif
  494. passkey
  495. return
  496.  
  497. label dohelp
  498. getkey        
  499. call done
  500. ifkey "Hh[F1]"
  501. key "[Shift][F10]"
  502.  
  503.    passkey
  504.    return 
  505. endif
  506. jump dohelp
  507.  
  508. label doesc
  509. getkey        
  510. call done
  511. ifkey "[Esc]" 
  512. else
  513.    jump doesc
  514. endif
  515. key "[Shift][F10]"
  516. passkey
  517. return
  518.  
  519. label doenter
  520. getkey        
  521. call done
  522. ifkey "[Enter]" 
  523. else
  524.    jump doenter
  525. endif
  526. key "[Shift][F10]"
  527. passkey
  528. return
  529.  
  530. label dopgdn
  531. getkey        
  532. call done
  533. ifkey "[PgDn]" 
  534. else
  535.    jump dopgdn
  536. endif
  537. key "[Shift][F10]"
  538. passkey
  539. return
  540. label lowbox
  541. pause 3 t
  542. SCREEN 20 0 "                                                                                "
  543. SCREEN 21 0 "                                                                                "
  544. SCREEN 22 0 "                                                                                "
  545. SCREEN 23 0 "                                                                                "
  546. SCREEN 24 0 "                                                                                "
  547. return
  548.  
  549. label done
  550. ifkey "[Alt][Q]"
  551.    wipe
  552.    killchild
  553.    quit
  554. endif
  555. return
  556.  
  557.  
  558. 
  559.