home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 427.lha / VLT_select_v2.3 / Select.doc < prev    next >
Text File  |  1990-10-07  |  12KB  |  241 lines

  1. Select.vlt 2.3-- An ARexx Autodialer For VLT
  2.  
  3. Copyright 1990
  4. Warren Block
  5. 1921 Fifth, #3
  6. Rapid City, SD  57701
  7. (605) 342-1632
  8.  
  9.  
  10. What Is Select?
  11.  
  12. Good question!  Select is an autodialer for VLT.  VLT is a great program, it's
  13. incredibly reliable and solid, more so than most commercial efforts.  However,
  14. it isn't built for calling multiple BBS systems, and as such has no phone book
  15. or dialer.  Via the magic of ARexx, Select attempts to add those features to
  16. VLT, without adding the unreliability or code bloat of those other terminal
  17. programs.  When Select is run, it presents a list of BBS systems that you may
  18. select with the mouse, then will dial through your selections until a
  19. connection is made or you stop the process by pressing F1.  After you have
  20. completed your online transactions with one system, re-running Select will
  21. bring up the list of remaining systems and dial them, until finally you have
  22. connected to each of them.  In other words, Select makes a potentially
  23. exhausting and time-consuming series of BBS calls virtually effortless, and can
  24. also be used to produce a delicious and healthy fruit drink!*
  25.  
  26. New For Version 2.3
  27.  
  28. This version should be more compatible with all the weird pseudo-Hayes modems
  29. out there, since it doesn't watch the return codes from the modem to see what
  30. the user did.  Instead, it now receives a message that the user wants to cancel
  31. dialing when the F1 key is pressed.  Dialing can now be cancelled at any time,
  32. not just when the modem is waiting for an answer.  Some code cleanup, too, and
  33. ConMan is no longer necessary.  Still no ants...
  34.  
  35. New For Version 2.2
  36.  
  37. While I was digging around in some new code, version 2.5 of RexxArpLib arrived,
  38. fixing a bug in PostMsg() that prevented me from using it with Select.  Now
  39. Select does use it, so you can click the mouse or press a key in the VLT window
  40. and Select's windows won't go away.  This version also tries to be smarter
  41. about changing the system font back to whatever it should be on your system,
  42. but it's still not an ideal solution.  The best thing would be a way to change
  43. fonts just on the VLT screen, but I'm not sure I want it bad enough to try that
  44. with ARexx just yet.
  45.  
  46. Status
  47.  
  48. This program is freely redistributable.  See the copyright notice in the
  49. comments at the end of this document for the original copyright, and I've added
  50. my own to it just in case.
  51.  
  52. Installation And Requirements
  53.  
  54. First off, you need a Hayes-compatible modem and an Amiga (that should be
  55. fairly obvious, but you never know).  For software, there's a fair bit, but all
  56. of it is readily available and well worth having.  Please note the version
  57. numbers, since the right version of VLT and rexxarplib.library are required to
  58. run Select correctly:
  59.  
  60.    VLT         (version 4.824 or later; without this you ain't going nowhere)
  61.    ARexx       (version 1.10; fully installed, libraries, RexxMast, and such)
  62.    Select.vlt  (must be installed in your REXX: directory)
  63.    FF          (FastFonts; must be in C: as FastFonts or FF)
  64.    rexxarplib.library  (must be version 2.5 or later; should be in LIBS: with the rest of the libraries)
  65.  
  66. Creating Your Phone File
  67.  
  68. Select's database of numbers is stored in a file in the S:  directory called
  69. VLT.Phone.  The first line of this file is a format line that determines the
  70. size of the fields.  Here is a sample:
  71.  
  72. |    BBS Name     |  Phone Number   |Baud|Font     |Script
  73.  
  74. Select reads this line and determines the field widths between the vertical
  75. bars.  The following lines are then read according to those field widths.
  76. Fields start under the leading vertical bar and extend to just before the next
  77. vertical bar (except for the Script field which goes to the end of the line).
  78. The font shouldn't have the .font extension, and the VLT script name should
  79. have the full path.  The baud rate will be set before dialing.  If a connection
  80. is made, FastFonts will be used to set the font, and finally, the VLT script
  81. specified will be executed.  Note that only the BBS name, phone number, and
  82. baud rate are required, and the rest can be blank.
  83.  
  84. Except for the first line, lines beginning with a vertical bar will be ignored.
  85. This means you can use vertical bars to add comments about certain entries or
  86. comment them out.  Here is a small sample:
  87.  
  88. |    BBS Name     |  Phone Number   |Baud|Font     |Script
  89. A BBS System      (404) 555-4444    9600 Pearl
  90. YABBS             (505) 555-5555    1200 Ansi      REXX:ConnectYABBS.scp
  91. One More BBS      (606) 555-6666    2400 Topaz     REXX:OneMore.scp
  92. | Comment: The following entry has no font or script settings.
  93. The Last BBS      (707) 555-7777    1200
  94.  
  95. (Note:  changing back to Topaz after using another font can be a problem, since
  96. FastFonts uses the actual .font file in the fonts:  directory, and Topaz 8
  97. doesn't have an entry in that file--it's in system ROM.  I ran the FED font
  98. editor and saved a copy of the Topaz 8 font.  This created the actual disk file
  99. (fonts:topaz/8), and, although bruteforce, works fine.  If you normally use a
  100. different system font like Pearl, you should have no trouble.)
  101.  
  102. Now it's time to create your own S:VLT.Phone file.  Don't rush, I'll wait right
  103. here until you're done...
  104.  
  105. Using Select
  106.  
  107. The easiest way to use Select is to assign it to one of the function keys in
  108. VLT.  To do this, turn on Program Mode, press whichever function key you wish
  109. to use (I like F10 for this; since it's on the end, even a floundering typist
  110. can fish around for it, making it ideal for this porpoise), and type
  111. ~@REXX:select.vlt into the requester.  Turn Program Mode off, and select Save
  112. Configuration if you'd like this function key to always bring up Select (a wise
  113. and tasteful choice).
  114.  
  115. When you run Select, it presents a list of the BBS system names found in
  116. S:VLT.Phone in a window on the right side of the VLT screen.  As you click on
  117. the gadgets for these systems, their names are added to the dial list, which is
  118. shown in a window on the left side of the screen.  When you have selected all
  119. of the systems you'd like to call, click on the <<< Dial >>> gadget.  Select
  120. will begin cycling through the dial list until a system connection is
  121. accomplished or you stop the dialing process by pressing F1.
  122.  
  123. Select watches the text responses from the modem.  If it sees CONNECT, it will
  124. remove the current number from the dial list.  It then sets the font and
  125. executes the VLT script defined in S:VLT.Phone.  After you have finished and
  126. logged off the current system, re-execute Select.  It will locate the
  127. unfinished dial list (which was saved as a very small file in the T:
  128. directory) and present that as the current dial list.  You can click <<< Dial
  129. >>> at this point to continue cycling through the dial list you have already
  130. defined, or select new numbers to dial, which will clear the current dial list
  131. and let you create a new one.  The other way to clear the current dial list is
  132. to click on Select's close gadget.
  133.  
  134. If you press F1 to stop dialing, the current number is not removed from the
  135. dial list.  As described above, you can re-run Select at any time and continue
  136. dialing from that list.
  137.  
  138. Potential Problems
  139.  
  140. Select assumes that you have assigned T:  to RAM:T.  This isn't necessary, but
  141. you won't enjoy using Select unless you've done this assign or really like
  142. waiting.
  143.  
  144. Those who use VLT in an industrial or academic setting should remember that
  145. this version of the program sets the environment variable SystemPassWord to
  146. AMIGA.  If you're not expecting it, you might find someone else sending
  147. commands that are executed on your machine!  If you are using VLT in this kind
  148. of setting, remove the setenv call near the start of the program and use
  149. something like
  150.  
  151.     password = getenv(systempassword)
  152.  
  153. If you modify the contents of S:VLT.Phone, make sure you delete t:undialed,
  154. since the names in the undialed list won't match what numbers are really
  155. available to dial.  Or just run Select and click the close gadget to force it
  156. to reset the dial list.
  157.  
  158. Other Stuff
  159.  
  160. Most of the comments have been removed from the program, to make for faster
  161. loading and smaller size.  With the configuration constants at the beginning of
  162. the program, this shouldn't be a major problem, but you can contact me if you
  163. have trouble.  Consider it a learning experience (learning how not to program,
  164. probably).
  165.  
  166. User-Customizable Variables
  167.  
  168. Here you will find cryptic explanations of some of the less-obvious
  169. configuration variables located at the start of the program.
  170.  
  171. predial = 0
  172.  
  173. Length of time to wait (in ticks) before sending the dial string.  Select dials
  174. by sending a Return ('0D'x) to the modem, then the dial string.  Some modems
  175. can't accept a dial string immediately after a Return.  If you have one of
  176. these, set this value to 15 or 25 and Select will wait that many ticks
  177. (fiftieths of a second) before sending the dial string.  (This was discovered
  178. on one of the older Commodore modems meant to fit under the A1000; the 1680, I
  179. think it's called.)
  180.  
  181. numfile = 'S:VLT.Phone'
  182.  
  183. Name and path of the file containing the BBS phone numbers and descriptions.
  184.  
  185. dialfile = 't:undialed'
  186.  
  187. Name of the temporary file containing the remaining dial list.
  188.  
  189. password = 'AMIGA'
  190.  
  191. The value to use as the SystemPassWord environment variable.  See the section
  192. called Potential Problems.
  193.  
  194. maxdialcnt = 8
  195.  
  196. Maximum number of entries in the to-be-dialed window; change this constant if
  197. you need it bigger.  Note that this number only deals with the dialing window;
  198. there are no limits (other than screen size) on how many entries you can have
  199. in the S:VLT.Phone file, since that window is auto-sized.
  200.  
  201. pausetime = 2
  202.  
  203. Number of seconds to pause before dialing the next number.  Two seconds is a
  204. reasonable time to let the phone company computers realize you've actually hung
  205. up; some are probably not even that fast.
  206.  
  207. quitfont = 'Topaz'
  208.  
  209. Font to use as the system font on user abort of the dialer.  Even with this,
  210. you'll still find your system occasionally using a nasty font as the system
  211. font, since there's no way to set just VLT to a custom font with FastFonts.
  212.  
  213. Credits
  214.  
  215. This program has a bit of a history.  Here are the comment sections from the
  216. original version that I found somewhere (the FAUG BBS or BIX, probably):
  217.  
  218. /* Dial_Select.vlt - display a list of numbers to dial for mouse selection    */
  219. /*                 - written by Glenn M. Lewis - Caltech - 12/12/89           */
  220. /*                 - based upon an ARexx script in Amazing Computing V4.12    */
  221. /*                                                                            */
  222. /* Do what you want with this code.                                           */
  223. /* I shall not be held responsible for any use or misuse of this code.        */
  224. /* Since parts of this code were derived from the Amazing Computing article,  */
  225. /* here is the gratuitous notice:                                             */
  226. /*                                                                            */
  227. /* copyright 1989 Richard Lee Stockton and Gramma Software.                   */
  228. /* This code is freely distributable as long as this copyright                */
  229. /* notice remains, unchanged, at the start of the code.  Thank you.           */
  230. /*                                                                            */
  231. /* You are welcome.                                                           */
  232. /*                  -- Glenn                                                  */
  233.  
  234. Again, this program has very extremely little in common with the original.  But
  235. the idea came from it, and without that, this program would not exist.  My
  236. thanks to Mr.  Lewis and Mr Stockton, and my incredulous gratitude to Mr.
  237. Willem Langeveld for VLT.
  238.  
  239.    Warren Block
  240.    August 27, 1990
  241.