home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / MLINKDOC.ZIP / MLINKMAN.ASC
Text File  |  1993-11-28  |  119KB  |  3,115 lines

  1.  
  2. MicroLink for Windows
  3. Users Guide
  4. Welcome
  5.  
  6. MicroLink for Windows is a communications application for Microsoft Windows 
  7. version 3.0 or later.  You can use MicroLink to connect your computer to
  8. other computers and to information services such as CompuServe and Genie.
  9.  
  10. At the nucleus of MicroLink is the dialing directory, an easy to use 
  11. database where you can store names, phone numbers, logon scripts, terminal 
  12. settings, and port settings.  Select an entry, press the Dial button, and
  13. MicroLink instructs the modem to dial for you, and to redial if the line is 
  14. busy.  Once connected your computer acts as a terminal, giving you access 
  15. to the remote computer's resources.  Eight built-in transfer protocols 
  16. provide compatibility with nearly any other system for sending and receiving 
  17. files.
  18.  
  19. You can have MicroLink capture incoming information to file with the simple 
  20. press of a button. With MicroLink's scroll-back feature, you can review or 
  21. print up to 2000 lines of text.
  22.  
  23. With its simple but powerful script language, you can prepare responses to 
  24. a remote computer's prompts before a call.  In this way,  routine 
  25. information requests and file transfers can be done automatically and 
  26. completely unattended.  Best of all, you do not need to be a programmer 
  27. to prepare these scripts.  MicroLink can write these scripts for you by 
  28. watching your last call.
  29.  
  30. With MicroLink's configurable button bar, you can send or receive files, 
  31. print captured text, open your dialing directory, and perform many other 
  32. functions by simply selecting the appropriate button.  You can even define 
  33. your own "custom" buttons to invoke a script file.
  34.  
  35. About This Manual
  36.  
  37. This manual is designed to help you explore and use MicroLink for Windows.  
  38. The table that follows lists the chapters in this guide.
  39.  
  40. Chapter 1, "Getting Started", tells you how to install MicroLink on your 
  41.             computer and how to run MicroLink for Windows.  
  42.             This chapter also explains the various parts of the MicroLink 
  43.             window and provides some basic knowledge of the Windows 
  44.             environment.
  45. Chapter 2, "The Basics", introduces you to MicroLink.  Detailed instructions 
  46.             enable you to configure MicroLink for your computer and 
  47.             provide for the creation of your directory file.  
  48.             Instructions for exiting MicroLink are also provided.
  49. Chapter 3, "Communicating with MicroLink", explains how to dial into a 
  50.             remote computer.  It includes instructions about sending and 
  51.             receiving files and how to copy, paste and enter text while in 
  52.             an active session.  You also learn how to disconnect to end an 
  53.             active session.
  54. Chapter 4, "Scripting", provides a complete list of the script commands 
  55.             supported by MicroLink.  Numerous examples are given to aid you 
  56.             through the process.
  57. Chapter 5, "Command Summary", gives a detailed description of every command 
  58.             in MicroLink  the order in which they appear on the menu bar.
  59. Chapter 6, "Errors and Troubleshooting", describes possible problems you may 
  60.             encounter when using communication software and their solutions .
  61.  
  62. What You Need to Get Started
  63.  
  64. Setting up MicroLink on your computer is easy and takes only a few minutes.  
  65. This application requires that Microsoft Windows 3.0 or later is installed 
  66. on your computer.  If Windows is not yet installed on your computer, install 
  67. it now.  Before you get started you should know how to do the following:
  68.  
  69.     Set up, start and use you computer.
  70.     Use Microsoft Windows 3.0.
  71.     Use the File Manager to create a directory and copy files.
  72.  
  73. If you do not know how to perform these tasks, use your computer owner's 
  74. manual and the Windows User's Guide to familiarize yourself with them..
  75.  
  76. Notational Conventions
  77.  
  78. A few notes on the typographical conventions used throughout this manual 
  79. follow below: 
  80.  
  81. The names of the keys are spelled out throughout the manual and appear in 
  82. bold face.  Key combinations are expressed with the use of the addition 
  83. symbol (+).  For example, "Press Alt+D" means that you should press the Alt 
  84. key and hold it down while you press the D key.  Once you have both keys 
  85. pressed, release them at the same time. 
  86.  
  87. The directional keys are expressed as the Left, Right, Up, Down, Page Up, 
  88. Page Down, Home and End keys and not as they are graphically represented 
  89. on your keyboard. 
  90.  
  91. Text that is to be entered is enclosed within quotes (" ").  Whenever 
  92. possible the exact syntax is presented. 
  93.  
  94. Notes appear throughout the manual to provide additional information.  
  95. They appear separately from the body text with one horizontal line above 
  96. the note text and one horizontal line below it.  The font used for notes 
  97. is Helvetica.  To further aid you, one of two graphic symbols appears on 
  98. the left side of the margin.  A "i" icon indicates that the note is 
  99. informational and an exclamation icon presents an important note which 
  100. should be read carefully.
  101.  
  102. *    This feature is present only in the Word for Windows format.
  103.  
  104. Getting Started
  105.  
  106. Windows must be installed on your computer before you can start using 
  107. MicroLink.  You should also be familiar with using Microsoft Windows to 
  108. launch and terminate an application.
  109.  
  110. Setting Up MicroLink
  111.  
  112. To set up MicroLink, follow these steps:
  113. 1.    Place your MicroLink diskette in a drive and close its latch.
  114. Normally, you will use Drive A.  Some systems have more than one floppy 
  115. drive.  The second drive is usually called Drive B.  If you choose to use a 
  116. drive other than A, simply substitute the drive letter for A in the 
  117. instructions that follow.
  118.  
  119. 2. Before creating a directory for MicroLink, Windows must be running.  
  120. If Windows is not running, type WIN at the DOS prompt to begin.  
  121. From the Program Manager, start the File Manager by double clicking on the 
  122. File Manager icon.  Once the File Manager is visble on the screen and 
  123. has displayed your fixed disk directory tree, select File, then 
  124. Create Directory.  Type "MLINK", then select OK.  Your MicroLink directory 
  125. will now appear in the Directory Tree.
  126. It is best to put MicroLink in a subdirectory of its own.  We suggest the 
  127. name "MLINK" for the subdirectory.  
  128.  
  129. 3. To copy the MicroLink program and help files to your fixed disk, select 
  130. File from the File Manager.  Then choose Copy.  When the Copy dialog box 
  131. appears, type "A:\*.*" at the From line.  At the To line, type "C:\MLINK".  
  132. Select Copy and MicroLink's files will be copied to your fixed disk in the 
  133. MLINK directory.
  134.  
  135. 4.  To add the MicroLink icon to your Program Manager, select File from the 
  136. File Manager.  Then choose New.  When the New Program Object dialog box 
  137. appears, select Program Item and OK.  The Program Item Properties dialog box 
  138. will then appear.  At the Description line, type "MicroLink for Windows".  
  139. At the Command line, type "C:\MLINK\MLINK.EXE", then choose OK.  The 
  140. MicroLink icon will now appear in your Program Manager selections.
  141.  
  142. Anatomy of the MicroLink Window
  143.  
  144. The top bar of the MicroLink Window is the Title bar.  This bar contains the 
  145. system menu on the far left side and the minimize and maximize buttons on 
  146. the far right.  In the center of the Title bar is the application name.  
  147. If you have selected a directory entry, its title will appear enclosed in 
  148. backets beside the application name.  (ex. MicroLink - [Atlanta Windows]).  
  149. Below the title bar is the Menu bar.  You can access the menu options by 
  150. moving the mouse over the menu item and pressing the left mouse button.  
  151. Alternately, you may press the "Alt" key, and once the File menu item has 
  152. becomed inverted, press the underlined letter of the menu item you want to 
  153. select.
  154.  
  155. The Tools Bar contains a set of push buttons designed to provide mouse 
  156. accelerators for various commands.  The push buttons that appear are 
  157. definable via the Tools command.  
  158.  
  159. The Function Key Bar contains a set of push buttons that represent the 
  160. function keys on your keyboard.  These keys may be programmed via the 
  161. Function Keys command.
  162.  
  163. The Lights Bar is a set of indicators about the active port.  IM indicates 
  164. modem initialization; HS indicates high speed; AA indicates auto answer mode;
  165. CD indicates carrier detected; OH indicates off hook; RD indicates receiving 
  166. data; SD indicates sending data; TR indicates terminal ready; and MR 
  167. indicates modem ready.  
  168.  
  169. The Session Window displays all incoming characters and, optionally, all 
  170. outgoing characters.  This window is scrollable, retrieving up to 2,000 lines 
  171. of previously displayed text.  The choice of typeface, font size and 
  172. fore- and background colors may be customized via the Terminal command.
  173.  
  174. The Status Bar is the horizontal bar that appears along the bottom of 
  175. MicroLink's window.  It contains the current time or connected time; the 
  176. current port settings; an indicator as to whether a log file is opened, 
  177. closed, or temporarily on hold; and an indicator as to whether a script 
  178. file is currently recording, paused or stopped.
  179.  
  180. The Tools, Function Key, Lights and Status bars may all be optionally 
  181. disabled via the Window command thereby increasing the size of the Session 
  182. Window.
  183.  
  184. The Basics
  185.  
  186. It is easy to get around the MicroLink program and to know just what MicroLink 
  187. expects of you at any time.  This chapter introduces you to the basics of 
  188. using MicroLink.
  189.  
  190. Starting MicroLink
  191.  
  192. There are several ways to start MicroLink (some are easier than others).  
  193. The four basic techniques follow below:
  194.  
  195. From the DOS command line, type "WIN MLINK".  You must be within the 
  196. directory that the MicroLink executable file (MLINK.EXE) resides in and 
  197. Windows must be located on your path environment variable.
  198. Double click on the program icon within Program Manager.  As an alternate 
  199. method, you can highlight the icon with either the mouse or arrow keys and 
  200. press enter.
  201.  
  202. Choose the Run command from the File menu of either the Program Manager or 
  203. the File Manager.  Enter the name of the program, then select OK.  Remember 
  204. to enter the complete pathname of MicroLink if it is not located within your 
  205. path environment variable.
  206.  
  207. Double click on the program file from a directory window within File Manager.  
  208. As an alternate method, you can highlight the icon with either the mouse or 
  209. arrow keys and press enter.
  210.  
  211. If Windows cannot find MicroLink, a message box will appear telling you that 
  212. Windows could not find the file within the current search path.  If MicroLink 
  213. is not located on your current search path try placing it before the program 
  214. name.  For example, enter "C:\MLINK\MLINK.EXE"  at the Command Line.
  215.  
  216. Configuring MicroLink
  217.  
  218. Because every computer is equipped with different hardware, you need to 
  219. configure MicroLink before connecting to a remote computer.  In particular, 
  220. you need to tell MicroLink the brand of modem you are using and the COM port 
  221. your modem is attached to. You also need to enter the phone number of the 
  222. remote computer, as well as its port and terminal settings.  Finally, you will 
  223. want to set the user preferences.
  224.  
  225. The first time you start MicroLink, a small dialog box will appear prompting 
  226. you to select the port your modem is attached to.  After selecting the port 
  227. and pressing OK, MicroLink will attempt to open the port and connect 
  228. locally to the modem.  If it is unable to open the port, the dialog box will 
  229. reappear, prompting you to select another port as the default port.  If no 
  230. ports are available or if you have selected the cancel option, MicroLink will 
  231. complete initialization but will not open any ports.  When you attempt to 
  232. connect to a remote computer, MicroLink will again retry this process.
  233.  
  234. Modem Settings
  235.  
  236. To configure the Modem settings including Modem Type, Line Type, Modem Volume, 
  237. Initialization String, and Dialing Prefix, perform the following steps:
  238.  
  239. 1.    Choose Settings, then choose Modem.
  240. 2.    Select the Modem Type, Line Type and Modem Volume.
  241. 3.    Enter the Initialization String and Dialing Prefix.
  242. 4.    Choose OK to accept these changes.
  243.  
  244. The Initialization String allows you to add additional initialization strings 
  245. to be sent to the modem.  Enter initialization strings without the AT prefix, 
  246. as this prefix is already included.  DP, DT, E, E0, L, M, Q, S1, S7 and Z 
  247. commands cannot be included in the initialization string as these codes are 
  248. used internally. 
  249.  
  250. The Dialing Prefix allows you to insert additional characters in front on 
  251. the phone number.  Codes such as "*70" for call waiting and "9," for business 
  252. PBX's should be placed here.
  253.  
  254. Port Settings
  255.  
  256. To set the Port settings including serial (COM) port, baud rate, data bits, 
  257. stop bits, flow control, parity, lock baud rate, parity check, and carrier 
  258. detect, perform the following steps:
  259.  
  260. 1.  Choose Settings, then choose Port.
  261. 2.  Select the serial (COM) port that your modem is attached to and its 
  262.     appropriate communications parameters.
  263. 3.  Choose OK to accept these changes.
  264.  
  265. The Baud Rate group specifies how fast information is transferred through 
  266. the port; Data Bits specifies the number of data bits in each packet of 
  267. information; Parity specifies the error-checking method used; Stop Bits 
  268. specifies the number of stop bits in each packet of information; and Flow 
  269. Control specifies the method used to control the transmission, or flow,  of 
  270. data.
  271.  
  272. The Lock Baud Rate option indicates whether MicroLink should modify the 
  273. connection speed between the computer and the modem.  This option should be 
  274. enabled when using modems that can connect at baud rates that are not 
  275. supported by Windows.  For example, several US Robotics modems can connect at 
  276. baud rates of 14,400.  To support a modem at this speed, set the baud rate to 
  277. 19,200 and enable the Lock Baud Rate option.  
  278.  
  279. The Parity Check option indicates whether MicroLink should translate the high 
  280. order bit on the characters it receives.  
  281.  
  282. The Carrier Detect option indicates whether MicroLink should automatically 
  283. delete the loss of carrier to automatically perform a hang up.  
  284.  
  285. It is important that these port options are set correctly.  It is recommended 
  286. that you refer to the manual from your modem to find its maximum baud rate 
  287. and that you verify the settings of the remote computer.  If these settings 
  288. are incorrect a Receiving Framing error may occur.
  289.  
  290. Session Settings
  291.  
  292. To set the Session settings including the Session Title, Phone Number, default 
  293. File Transfer Protocol, and Logon Script, perform the following steps:
  294.  
  295. 1.    Choose Settings, then choose Session.
  296. 2.    Enter the Session Title and Phone Number.
  297. 3.    Select the default File Transfer Protocol.  If the chosen protocol
  298.      requires additional settings the Configure button will be enabled.  
  299.      The Configure button allows you to choose additional settings for the
  300.      selected protocol.  For example, ZModem allows you to configure send 
  301.      and receive options and enable its auto download feature.
  302. 4.    Enter the Logon Script filename or select the Logon Script button to
  303.      display a listing of available scripts.
  304. 5.    Choose OK to accept these changes.
  305.  
  306. The maximum number of characters for the Title is 25. 
  307. The maximum number of characters for the Phone Number is also 25.  
  308. Special dialing codes such as "*70" for call waiting or "9," for business 
  309. PBXs, should be entered in the dialing prefix option located in the Modem 
  310. dialog box.
  311.  
  312. The default File Transfer Protocol is the method of file transfer you use 
  313. most often when transferring files to this remote computer.  
  314.  
  315. The Logon Script is the script that is automatically invoked once a connection 
  316. has been made.  This script file must reside in the default scripts 
  317. directory.  
  318.  
  319. Terminal Settings
  320.  
  321. To set the Terminal settings including Terminal Type, the default Font Name 
  322. and Size, the Caret Type, scrollback buffer size and dimensions, outbound 
  323. Carriage Return expands to Carriage Return plus Line Feeds options, 
  324. Local Echo, and ANSI Color Attributes, perform the following steps:
  325.  
  326. 1.    Choose Settings, then choose Terminal.
  327. 2.    Select the Terminal Type, Font Name, Font Size and Caret Type.
  328. 3.    Enter the scrollback Buffer size in lines, the number of Rows per page,          
  329.      and the Column width.
  330. 4.    Select CR->CR+LF options, Local Echo and ANSI Color Attributes.
  331. 5.    Choose OK to accept these changes.
  332.  
  333. The minimum number of lines in the scrollback Buffer is 50 and the maximum 
  334. is 2000.  The minimum number of Rows per page is 25, the maximum is 50 and 
  335. the default setting is 25.  The minimum number of Columns per page is 40, the 
  336. maximum is 240 and the default setting is 80. 
  337.  
  338. If ANSI Color Attributes is set on, MicroLink will translate the colors the 
  339. remote computer sends thru escape sequences.  Disabling ANSI Color Attributes 
  340. allows you to set the colors for the session window, thereby overriding the 
  341. remote color sequences.  You can change the default  colors by selecting the 
  342. Colors button, which will display the colors dialog box.  For more 
  343. information on setting colors, see the related topic Colors below.
  344.  
  345. MicroLink will display every fixed space typeface that resides in your 
  346. system.  However, the list of available font sizes is a standard one and may 
  347. not represent the actual font sizes you have in your system.  It is designed 
  348. to accommodate Adobe Type Manager, Bitstreams FaceLift and True Type, which 
  349. create fonts on the fly.  As a result, typefaces such as terminal may display 
  350. the same font for various sizes.
  351.  
  352. Terminal - Colors Command
  353.  
  354. The Terminal - Colors Command sets the screen colors of the session window .
  355. To select the foreground and background colors used in the session window, 
  356. perform the following steps:
  357.  
  358. 1.    Choose Settings, then choose Terminal.  
  359. 2.    After the terminal window is displayed, insure that the ANSI Color 
  360.      Attributes option is not checked.
  361. 3.    Push the Colors button.  This will display the current color selections.
  362. 4.    Select the colors you want for the foreground and background.
  363. 5.    Choose OK to accept the these changes.
  364.  
  365. Default colors are only used when the ANSI Color Attributes option is not 
  366. checked.
  367.  
  368. Preferences
  369.  
  370. To set the user Preferences including the Redial Count, Timeout value, Pause 
  371. value, default Directory filename, Delete Partial File option, Prompts option, 
  372. Elapsed Time Clock option, Return from Iconic option, Quick Initialization 
  373. option and Warning Beeps option, perform the following steps:
  374.  
  375. 1.    Choose Settings, then choose Preferences.
  376. 2.    Enter the Redial Count, Timeout value and Pause value.
  377. 3.    Enter the Directory filename or select the Directory button to display a
  378.      listing of available directory files.
  379. 4.    Check the Delete Partial File, Prompts, Elapsed Time Clock, Return from
  380.      Iconic, Quick Initialization and Warning Beeps options.
  381. 5.    Choose OK to accept these changes.
  382.  
  383. The Redial value indicates the number of times MicroLink will attempt to
  384. retry to connect to the remote computer.  The range is from 0 to 99.  
  385.  
  386. The Timeout value indicates how long MicroLink instructs the modem to wait 
  387. to receive a connection.  The range is from 15 to 120 seconds.  
  388.  
  389. The Pause value indicates how long MicroLink will wait before redialing.  
  390. The range is from 0 to 120 seconds.  
  391.  
  392. The Directory file must reside in the default directory path.  If the 
  393. directory file you entered does not exist, MicroLink will attempt to open it 
  394. as a new directory file.
  395.  
  396. The Delete Partial File option indicates whether MicroLink should 
  397. automatically delete files that are a result of a failed file transfer.  
  398.  
  399. The Prompts option indicates whether MicroLink should display additional 
  400. dialog boxes during file transfers.  
  401.  
  402. The Elapsed Time Clock option indicates whether MicroLink should display the 
  403. amount of time you have been connected to the remote computer.  
  404.  
  405. The Return from Iconic option indicates whether MicroLink should restore the 
  406. window to a full screen when it has completed background processing, such as 
  407. background dialing and background file transfers.  
  408.  
  409. The Quick Initialization option indicates whether MicroLink should bypass the 
  410. modem initialization process after the first initialization has been 
  411. completed.  
  412.  
  413. The Warning Beeps option indicates whether MicroLink should emit audible beeps 
  414. to indicate connection and completed file transfers.  
  415.  
  416. Creating a Dialing Directory Database
  417.  
  418. You may want to store the terminal, port, and session settings of a remote 
  419. computer for later use.  MicroLink allows you create your own yellow pages of 
  420. remote computer profiles.  You can use these profiles for quick access.  
  421. For example, if you can have your favorite BBS's stored in a directory file, 
  422. all you need to do is open the directory listing file and select that entry.  
  423. From that dialog box, you can have MicroLink begin the connection process for 
  424. that entry.
  425.  
  426. To build a listing of directory entries, perform the following steps:
  427.  
  428. 1.    Choose File, then choose Directory.
  429.  
  430. To Add a record to the directory listing, do the following:
  431.  
  432. 2.    Set the phone number and the file transfer protocol. The file 
  433.      transfer protocol may need to be configured as appropriate for your 
  434.      modem.  The port and terminal settings should be changed as necessary 
  435.      by clicking on the current port or terminal settings to display the 
  436.      port or terminal selections.
  437. 3.    Select the Add button.  Enter the name of the entry on the title field 
  438.      of the Add Record dialog box.
  439. 4.    Choose OK to add the entry to your directory listing.
  440.  
  441. To Change an entry, do the following:
  442.  
  443. 1.    Select the entry to be changed.
  444. 2.    Make any necessary changes to the entry, then select the Change 
  445.      button.
  446.  
  447. To Delete an entry, do the following:
  448.  
  449. 1.    Select the entry to be deleted.
  450. 2.    Select the Delete button.
  451.  
  452. The directory file used is the one which you have chosen in the Preferences 
  453. dialog box.
  454.  
  455. If you make changes to an entry thru Settings and then choose Directory, 
  456. you will be prompted with the message "Record has been changed.  Update 
  457. record?".  By choosing Yes, the record will be updated in your Directory 
  458. listing. 
  459.  
  460. If you make changes to the title of an entry thru Settings and then choose 
  461. Directory, you will be prompted with the message "(Entry) does not exist.  
  462. Add record to file?".  By choosing Yes, the record will be added to your 
  463. Directory listing. 
  464. After selecting an entry, you may select the Dial button to immediately begin 
  465. the dialing process.
  466.  
  467. Getting Help
  468.  
  469. To get help with whatever you are trying to accomplish, open the Help menu 
  470. (the menu item at the far right).  Once the pull down Help menu is visible you 
  471. will see six choices, plus the About command.  To get help, select the menu 
  472. item that is closest to the kind of help you need.  If you need help using the 
  473. keyboard with MicroLink, select Keyboard.  If you are confused about the 
  474. action a particular command performs, select Commands.  Selecting Index will 
  475. display an index of all of the commands available with MicroLink, sorted in 
  476. alphabetical order.  The Using Help option will provide you with general 
  477. information on using Windows.
  478.  
  479. Once you have made the appropriate choice, the Help window will be displayed.  
  480. It also has push buttons that function similar to those within MicroLink.  
  481. To jump to an associated section either click on the word with a mouse or, 
  482. using the tab key, position the pointer on that topic and press enter.  
  483. Words within the help file that are underlined will enable you to jump to a 
  484. different section within the manual.  Words that have a dotted line are words 
  485. that have a definition that you can see.  By clicking the left mouse button, 
  486. the definition will appear on the screen in a small box.  Pressing the Esc key 
  487. will cause the box to disappear.  Keyboard support is the same for underlined 
  488. words, however you must hold down the enter key to display the definition 
  489. box.  For more information on using the Help system, refer to your Windows 
  490. documentation.
  491.  
  492. Ending MicroLink
  493.  
  494. When you are finished with a MicroLink session, you should exit MicroLink 
  495. properly.  The steps to correctly exit MicroLink appear below:
  496.  
  497. 1.    Choose Exit from the file menu of the MicroLink window.  After selecting
  498.      this option, MicroLink will automatically disconnect you from any
  499.      computer you may be currently connected to.
  500. 2.    Set the Save Changes box if you want MicroLink to remember your current
  501.      settings and screen location when you quit.
  502. 3.    Select OK.
  503.  
  504. Communicating with MicroLink
  505.  
  506. Once you have initialized the required variables, you are ready to begin 
  507. communications using MicroLink.  This chapter will provide you with 
  508. step-by-step instructions for communicating with a remote computer.
  509.  
  510. Dialing a Remote Computer
  511.  
  512. After you have entered the session, port, and terminal settings as described 
  513. earlier, you are ready to dial. To connect MicroLink to a remote computer 
  514. choose Session, then choose Dial or select the Dial button from the Tools Bar.
  515. The Lights Bar will be updated indicating that MicroLink will first initialize 
  516. the modem and then attempt to dial and connect to the remote computer.
  517.  
  518. If MicroLink is unable to properly initialize the modem, dialing will fail.  
  519. After the modem initialization completes, MicroLink will display a dialog box 
  520. indicating the title of the remote computer it is dialing; its phone number; 
  521. the number of seconds left until MicroLink issues a timeout; the remaining 
  522. number of times MicroLink will attempt to connect to the remote computer; and 
  523. the last error that has occurred.
  524.  
  525. You may cancel at any time by pressing the Escape key or selecting the Cancel 
  526. button.  Selecting the Background button will minimize MicroLink, thereby 
  527. entering background processing.
  528.  
  529. Since proper initialization takes time, it is recommended that you set the 
  530. Quick Initialization option, located in the Preference dialog box.
  531.   
  532. MicroLink does not automatically restore itself on the screen after background 
  533. processing is complete.  To enable restoration check Return From Iconic, 
  534. located in the Preferences dialog box.
  535.  
  536. When MicroLink has not dialed to a remote computer, the icon is the comet.  
  537. Once MicroLink has dialed and connected to a remote computer, the icon changes 
  538. to a modem.
  539.  
  540. Once you have connected to the remote computer, you can begin your 
  541. communication session with the remote computer.  Characters you type will be 
  542. sent to the remote computer and characters sent by the remote computer will be 
  543. displayed on the screen.  If none of the characters you type appear on the 
  544. screen, enable the Local Echo option under  Terminal settings.  Further, if 
  545. the screen becomes filled with unreadable characters, verify that your Port 
  546. settings are correct.
  547.  
  548. Using the Clipboard
  549.  
  550. During your communications session, you may want to use the clipboard to copy 
  551. portions of the session and/or to paste text to the remote computer.
  552.  
  553. To copy the contents of a marked block to the clipboard, perform the following 
  554. steps:
  555.  
  556. 1.    Scroll thru the session buffer to bring the text you want to copy into 
  557.      view.
  558. 2.    Using the mouse, move to the upper left hand corner of the block and
  559.      press and hold the left mouse button down.
  560. 3.    Drag the mouse to the lower right hand corner of the block.  The text
  561.      that appears within the block will become inverted.
  562. 4.    Choose Edit, then choose Copy or select the Copy button from the Tools 
  563.      Bar.
  564.  
  565. To copy the contents of the Clipboard to the remote computer (Paste) choose 
  566. Edit, then choose Paste or select the Paste button from the Tools Bar.  
  567. MicroLink will then begin transmitting the contents of the file to the remote 
  568. computer.  You may cancel the Paste command at any time by pressing the Esc 
  569. key.
  570.  
  571. At this time, MicroLink cannot automatically scroll thru the session window 
  572. when marking characters.  Therefore only the contents of the session buffer 
  573. that are visible can be copied to the clipboard at anytime.
  574.  
  575. Copying From and Pasting To Files
  576.  
  577. You can also mark a block and copy it to a file for later reference.  
  578. Similarly, you can send the contents of a file to the remote computer.
  579.  
  580. Copy To Command
  581.  
  582. To create a file and copy the contents of a marked block to it, perform the 
  583. following steps:
  584.  
  585. 1.    Scroll thru the session buffer to bring the text you want to copy into
  586.      view.
  587. 2.    Using the mouse, move to the upper left hand corner of the block and
  588.      press and hold the left mouse button down.
  589. 3.    Drag the mouse to the lower right hand corner of the block and release
  590.      the left mouse button.  The text that appears within the block will
  591.      become inverted.
  592. 4.    Select Edit, then choose Copy To.
  593. 5.    Type or select the name of the file you want to copy to.  If the target
  594.      directory is not the current directory, either type the directory name
  595.      in front of the filename or select the directory from the Directories
  596.      box.
  597. 6.    Choose OK to begin copying to the file.
  598.  
  599. If the file already exists, MicroLink will display a dialog box giving you the 
  600. option to cancel the operation or erase the contents of the file.  
  601. Selecting OK will instruct MicroLink to destroy the contents of the current 
  602. file.
  603.  
  604. Paste From Command
  605.  
  606. To open a file and copy its contents to the remote computer, perform the 
  607. following steps:
  608.  
  609. 1.    Select Edit, then choose Paste From.
  610. 2.    Type or select the name of the file you want to paste from.  If the
  611.      document is not listed in the current directory, either type the
  612.      directory name in front of the document name or select the directory 
  613.      in the Directories box.
  614. 3.    Choose OK to begin pasting the file.
  615.  
  616. MicroLink will then begin transmitting the contents of the file to the remote 
  617. computer.  You may cancel the paste command at any time by pressing the Escape 
  618. key.
  619.  
  620. Sending and Receiving Files
  621.  
  622. You may need to send files to or receive files from the remote computer.  
  623. MicroLink has several built-in file transfer protocols to ensure that you 
  624. will be able to transfer files from nearly any computer.
  625.  
  626. To send a file to the remote computer, perform the following steps:
  627.  
  628. 1.    Select Session, then choose Send or select the Send button from the
  629.      Tools Bar.
  630.  
  631. If you have Prompts enabled, do the following:
  632.  
  633. 2.    Select the protocol you want to use.
  634.  
  635. If your default protocol is ASCII, XModem, or YModem, do the following:
  636.  
  637. 3.    Type the name of the file you want to send.  If the source directory is 
  638.      not the current directory, type the directory name in front of the file
  639.      name or select the directory from the Directories box.
  640.  
  641. 4.    Choose OK to begin sending the file.
  642.  
  643. If your default protocol is YModem G, YModem Batch, or ZModem, 
  644. do the following:
  645.  
  646. 3.    Select the name of the file(s) you wish to send by first choosing the 
  647. directory where the file(s) resides and then marking the appropriate file(s).  
  648. When you have finished marking the selections from that directory, select the 
  649. Add button.  You may then repeat this process thru the remaining directories.
  650.  
  651. To remove a file you have added to the Selected Files list, mark the file(s) 
  652. and select the Delete button.
  653.  
  654. 4.    Choose OK to begin sending the file(s).
  655.  
  656. If MicroLink is unable to synchronize properly with the remote computer the 
  657. file transfer will fail.  After the initialization is complete, MicroLink 
  658. will display a dialog box indicating the name of the file being sent, the 
  659. estimated time remaining to complete the file transfer, the time that has 
  660. elapsed since the file transfer was initiated, and the last error which has 
  661. occurred.
  662.  
  663. You may cancel sending a file at any time by pressing the Escape key or 
  664. selecting the Cancel button.  Selecting the Background button will minimize 
  665. MicroLink and enter background processing.
  666.  
  667. To receive a file from the remote computer, perform the following steps:
  668.  
  669. 1.    Select Session, then choose Receive or select the Receive button from
  670.      the Tools Bar.
  671.  
  672. If you have Prompts enabled, do the following:
  673.  
  674. 2.    Select the protocol you want to use.
  675.  
  676. If your default protocol is ASCII, XModem, or YModem, do the following:
  677.  
  678. 3.    Type the name of the file you want to receive.  If the target directory 
  679.      is not the current directory, type the directory name in front of the
  680.      file name or select the directory in the Directories box.
  681. 4.    Choose OK to begin receiving the file.
  682.  
  683. If your default protocol is YModem G, YModem Batch, or ZModem, do the following:
  684.  
  685. 3.    Type the complete pathname where the receiving file is to be placed.
  686. 4.    Choose OK to begin receiving the file.
  687.  
  688. As in sending files, if MicroLink is unable to synchronize properly with the 
  689. remote computer, the file transfer will fail.  After the initialization is 
  690. complete, MicroLink will display a dialog box indicating the filename of the 
  691. receiving file, the estimated time remaining to complete the file transfer, 
  692. the time that has elapsed since the file transfer was initiated, and the last 
  693. error that has occurred.  With YModem G, YModem Batch, or ZModem, the total 
  694. size of the file to be received will be known and the thermometer will be 
  695. active.
  696.  
  697. You may cancel receiving a file at any time by pressing the Escape key or 
  698. selecting the Cancel button.  Selecting the Background button will minimize 
  699. MicroLink and enter background processing.
  700.  
  701. Some Notes on File Transfer Protocols
  702.  
  703. Sending and receiving files is one of the most important capabilities to be 
  704. handled by a communications program.  To do so, a connection must be made 
  705. between the two computers.  Then several things are necessary:
  706.  
  707.     The sending computer must know what file is wanted.
  708.     
  709.      The receiving computer must know what name to use when storing it.
  710.     
  711.      The sending computer needs to know when to start sending, and when to 
  712.      pause if it is sending faster than the receiving computer can store 
  713.      the data.
  714.  
  715.      Errors from a bad phone connection should be detected and corrected.
  716.     A way must be provided to signal the end of the transmission.
  717.  
  718. These needs are handled by the file transfer protocol that is chosen.  
  719. MicroLink supports the most popular file transfer protocols, and in most 
  720. cases, you'll simply choose the most sophisticated protocol available on 
  721. both computers.
  722.  
  723. ASCII Transfer Protocol
  724.  
  725. ASCII is the most primitive (in fact, most experts wouldn't consider it a 
  726. protocol at all) but it is the most universally available. No error detection 
  727. is employed (unless you're using MNP.)  The end of file is signified by a 
  728. Ctrl-Z character (ASCII 26).  Because binary files might have Ctrl-Z's and 
  729. other control characters anywhere, they can't be sent reliably with ASCII.
  730. Unless the data to be sent is pure text, don't use ASCII. Even for text files, 
  731. use ASCII transfers only when no other  protocol is available.
  732.  
  733. XModem
  734.  
  735. In XModem transfers, a file is sent in blocks of 132 bytes.  The transfer is 
  736. started by the receiver, which sends a NAK character (ASCII 21) at 10-second 
  737. intervals until the sender responds with the first block.  Validity checking 
  738. is done by evaluating the checksum and the other non-data bytes in the 
  739. block.  The receiver also expects no more than a 1 second interval between 
  740. bytes.  If an error is detected, the receiver sends a NAK and the block may 
  741. be resent up to 10 times.  Otherwise, an ACK (ASCII 6) is sent to acknowledge 
  742. correct receipt.  An EOT character (ASCII 4) instead of another block 
  743. indicates end of file, and the receiver responds with a final ACK.  
  744. The Ctrl-X character (ASCII 24) between blocks by sender or receiver requests  
  745. cancellation of the transfer.
  746.  
  747. An XModem Block
  748.  
  749. 1 Byte  SOH (ASCII 1)
  750. 1 Byte  Sequence Number  0-255
  751. 1 Byte  Complement (255-seq number)
  752. 128 Bytes Data
  753. 1 Byte  Checksum
  754.  
  755. XModem CRC
  756.  
  757. The XModem CRC protocol improves on XModem by using CRC instead of a checksum
  758. for validity checking.  This provides a much better chance that errors due to 
  759. a bad phone line will be caught.  Instead of the initial NAK character(s), 
  760. the receiving computer sends "C" until the first block is received.
  761.  
  762. YModem - XModem 1k
  763.  
  764. The YModem protocol, sometimes called XModem-1k, is like XModem CRC, but 
  765. faster transfers can be achieved (when a phone connection is good) because 
  766. 1024 bytes of data are sent per block.  The sender may also use 128 byte 
  767. blocks, at its discretion.  Blocks with 1024 bytes have STX (ASCII 2) as the 
  768. start of block character instead of SOH.
  769.  
  770. YModem Batch
  771.  
  772. One (usually insignificant) problem of XModem, XModem CRC, and YModem transfers
  773. is that the file size on the receiving computer is always an even multiple of 
  774. 128 bytes.  (ASCII zeros are padded onto the end.)   YModem Batch solves this 
  775. problem and allows more than one file to be  to be sent in a single transfer 
  776. by including file name(s) and size(s) along with the data. After requesting 
  777. file(s) from the sender, the receiver only needs to specify the drive and path 
  778. for local storage.
  779. In batch transfers the initial block number is zero (instead of one) to 
  780. indicate that it contains a file name and size.  After each file, another 
  781. "filename block" is expected.  A filename block with ASCII zeros instead of a 
  782. file name indicates the end of the batch.
  783.  
  784. Because file naming is handled automatically, YModem batch (and G) are well 
  785. suited for unattended operation in scripts.
  786.  
  787. YModem G
  788.  
  789. These protocols correspond to YModem Batch but can be much faster because the 
  790. sender does not wait for an ACK character before sending each block.  In 
  791. addition, the timing is relaxed to make it more suitable for use on some 
  792. transmission links where data is sent in bursts, with (sometimes) more than 
  793. one-second intervening delays.
  794.  
  795. YModem G are the preferred protocols for use with MNP, because MNP does its 
  796. own error checking and correcting.  They should not be used otherwise.
  797. To start a YModem G, the receiver sends "G" instead of "C" to say it's ready.
  798. One disadvantage of the "G" protocols is that cancellation (using Ctrl-X) is 
  799. sometimes messy.  By the time the sender receives the Ctrl-X, a lot of data 
  800. may already be in transit.  The receiver may need to ignore several  pages of 
  801. unintelligible data on the screen before the sender's menu is redisplayed.
  802.  
  803. ZModem
  804.  
  805. The Zmodem protocol  provides reliable file transfer between application 
  806. programs.  End-To-End data integrity is insured with the CRC16 or CRC32 data 
  807. verification schemes. File transfer is simplified with advanced file 
  808. management features, Automatic Receiver Transfer (AutoDownload), AutoFile 
  809. Restart (Crash Recovery), and selective file transfers.  Binary Data Escape 
  810. techniques are implemented with a minimum amount of overhead allowing transfer 
  811. rates above the Kermit or YModem Batch protocols and almost as good as 
  812. YModem G.  Selective buffering and windowing techniques allow Zmodem to 
  813. operate on systems that do not support streaming protocols.
  814.  
  815. Hanging Up
  816.  
  817. Once you have completed your communications session you need to disconnect 
  818. from the remote computer.  To do so select Session, then choose Hang Up or 
  819. select the Hang Up button from the Tools Bar.
  820.  
  821. Scripting
  822.  
  823. Scripts are a set of instructions you can create for MicroLink to follow.  
  824. Ranging from very simple to extremely complex, scripts are a short-cut which 
  825. will save you considerable effort over time.  These mini-programs can be 
  826. created for most anything, including the automation of a logon process.  
  827. Examples of several scripts are provided throughout this chapter.
  828.  
  829. Script Reference
  830.  
  831. Script File Name
  832.  
  833. A script file name can be any valid filename.  The default file extension for 
  834. a script file is MSL, which stands for MicroWerks Script Language.  An example 
  835. of a valid script file name is "MYSCRIPT.MSL".
  836.  
  837. Contents of a Script File
  838.  
  839. A MSL script, regardless of size, consists of statements, functions and 
  840. variables.  A statement is a command that specifies the operations which 
  841. should be performed.  Functions manipulate variables, which store values used 
  842. during the execution of the script.  It is suggested that you end every script 
  843. you create with the END statement.  
  844.   
  845. Constant
  846.  
  847. A constant is a value which will be interpreted literally by MicroLink.  
  848. Constants specify actual information, as opposed to information that is 
  849. contained within a variable and identified by a name.  In the following 
  850. example, "Hello World" is a string constant.
  851.  
  852. RPRINT "Hello World"
  853.  
  854. Character (string) constants can contain any alphanumeric characters and 
  855. special symbols.  Character constants are enclosed in double quotes.
  856. Numeric constants identify numeric values and can be used in arithmetic 
  857. operations.  Numeric constants should not be delimited.  If delimiters are 
  858. used, the numbers will be interpreted as a string.  In the following example,
  859. "9" is a numeric constant.
  860.  
  861. x = 9
  862.  
  863. Variables
  864.  
  865. Variables are temporary storage bins for information.  The variables and their 
  866. contents are released when a script is terminated by a syntax error, a 
  867. runtime error, or when a script reaches an END statement.  The name you 
  868. assign to a variable may contain numerics, letters, or the underscore 
  869. character ("_"), however the first character must a a letter.  The name can be 
  870. up to 10 characters in length.  Variables can be assigned with either a 
  871. constant or another variable by using the equal sign "=".   Several 
  872. statements can also assign data to a variable.  The following examples 
  873. demonstrate different methods  used to assign a value to a variable.
  874.  
  875. intro$ = "Hello World"    ' Assigned by a constant
  876. first$ = last$    ' Assigned by a variable
  877. INPUT "Enter Password:", pw$ ' Assigned by a statement
  878.  
  879. The variable type is determined by its name.  A string variable must end with 
  880. a dollar sign ($).  In the following example, "Hello World" is stored in a 
  881. string variable named "intro$".
  882.  
  883. intro$ = "Hello World"
  884.  
  885. Strings variables can be concatenated (combined) together using the plus 
  886. sign (+), as demonstrated in the following example.
  887.  
  888. hello$ = "Hello "
  889. intro$ = hello$ + "World"
  890.  
  891. Numeric expressions can be used in mathematical expressions or whenever a 
  892. numeric value is needed by a statement.  The following examples demonstrate 
  893. the use of numeric variables.
  894.  
  895. FOR i = 1 to 10
  896.     j = i % 2
  897.     IF j = 1                ' If so, print "it odd"
  898.         RPRINT "Its odd...^M"
  899.     ELSE            ' otherwise, print "it even"
  900.         RPRINT "Its even...^M"
  901.     ENDIF
  902. NEXT
  903.  
  904. The following list shows the symbol used and the calculation performed by each 
  905. supported mathematical operator
  906.  
  907.         Symbol    Calculation Performed
  908.  
  909. +        Addition.
  910. -        Subtraction.
  911. *        Multiplication.
  912. /        Division.
  913. %    Modulus.  The modulus operator returns only the remainder of the 
  914.      division operator.  
  915. ( )    Used to set the order of operations.
  916.  
  917. The next section provides detailed intructions regarding every command and 
  918. function currently available.  Numerous examples are given to aid your 
  919. understanding of script file assembly.
  920.  
  921. AUTOANSWER Statement
  922.  
  923. Action:        Sets the modem to auto answer mode.
  924. Syntax:        AUTOANSWER
  925. Remarks:    The AUTOANSWER statement sets the modem to auto answer mode.
  926. Example:  The following example uses AUTOANSWER to place the modem 
  927.           into auto answer mode:
  928.  
  929. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  930. SET INCRLF OFF    ' Sets Inbound CR->LF
  931. SET ECHO OFF    ' Sets Local Echo
  932. SET TEXTWRAP ON    ' Sets Text Wrap
  933. SET TERMINAL ANSI
  934. SET PROTOCOL YMODEMB
  935. SET TITLE "Simple Host Mode"
  936. AUTOANSWER    ' Set AA mode
  937. RPRINT "Welcome to my PC^M"
  938. SLEEP 5
  939. RPRINT "Send me the name of the file you want^M"
  940. RINPUT "Enter filename:", file$
  941. RPRINT "^M^M"    ' Send 2 CRs
  942. RPRINT "When your ready to receive the file "
  943. RPRINT "using YMODEMB, send me 'OK'^M"
  944. WAITFOR "OK"
  945. RPRINT "Sending file " + file$ + " using YMODEMB^M"
  946. SEND file$
  947. RPRINT "Bye"
  948. HANGUP
  949. END
  950.  
  951. BEEP Statement
  952.  
  953. Action:        Makes a sound through the speaker.
  954. Syntax:        BEEP
  955. Remarks:    The BEEP statement makes a sound through the speaker.
  956. Example:    The following example uses BEEP to indicate a successful log 
  957.           on to a remote computer:
  958.  
  959. ONERROR DialFailed
  960. DIAL "9,123-4567"
  961. WAITFOR "Enter FIRST name: "
  962. RPRINT "John^M"    ' Send First Name
  963. WAITFOR "Enter LAST name: "
  964. RPRINT "Doe^M"    ' Send Last Name
  965. WAITFOR "Enter Password: "
  966. RPRINT "PASSWORD^M"    ' Send Password
  967. MPRINT "Connection Complete!"
  968. END
  969. DialFailed:
  970. BEEP
  971. MPRINT "Did not connect"
  972. END
  973.  
  974. CLEAR Statement
  975.  
  976. Action:        Clears the display and the contents of the scrollback buffer.
  977. Syntax:        CLEAR
  978. Remarks:    The CLEAR statement clears the display and the contents of the
  979.           scrollback buffer.
  980. Example:    The following example uses CLEAR to remove the contents of the
  981.           scrollback buffer:
  982.  
  983. ONERROR DialFailed
  984. DIAL "9,123-4567"
  985. WAITFOR "Enter FIRST name: "
  986. RPRINT "John^M"    ' Send First Name
  987. WAITFOR "Enter LAST name: "
  988. RPRINT "Doe^M"    ' Send Last Name
  989. WAITFOR "Enter Password: "
  990. RPRINT "PASSWORD^M"    ' Send Password
  991. MPRINT "Connection Complete!"
  992. CLEAR
  993. END
  994. DialFailed:
  995. MPRINT "Did not connect"
  996. END
  997.  
  998. CLOSELOG Statement
  999.  
  1000. Action:        Closes the open log file.
  1001. Syntax:        CLOSELOG
  1002. Remarks:    The CLOSELOG statement closes the open log file.
  1003. Example:    The following example uses CLOSELOG to close the log file:
  1004.  
  1005. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1006. OPENLOG LOG$    ' Open a log File
  1007. HOLDLOG
  1008. WAITFOR "Enter FIRST name: "
  1009. RPRINT "John^M"    ' Send First Name
  1010. WAITFOR "Enter LAST name: "
  1011. RPRINT "Doe^M"    ' Send Last Name
  1012. WAITFOR "Enter Password: "
  1013. RPRINT "PASSWORD^M"    ' Send Password
  1014. RESUMELOG
  1015. REM Keep the script running in background until the BBS 
  1016. REM ends the session and sends "Goodbye".
  1017. WAITFOR "Goodbye"
  1018. CLOSELOG
  1019. MPRINT "Log File Closed."
  1020. END
  1021.  
  1022. CLS Statement
  1023.  
  1024. Action:        Clears the display.
  1025. Syntax:        CLS
  1026. Remarks:    The CLS statement clears the display and saves its contents to   
  1027.           the scrollback buffer.
  1028. Example:    The following example uses CLS to indicate the successful log on
  1029.           to a remote computer:
  1030.  
  1031. ONERROR DialFailed
  1032. DIAL "9,123-4567"
  1033. WAITFOR "Enter FIRST name: "
  1034. RPRINT "John^M"    ' Send First Name
  1035. WAITFOR "Enter LAST name: "
  1036. RPRINT "Doe^M"    ' Send Last Name
  1037. WAITFOR "Enter Password: "
  1038. RPRINT "PASSWORD^M"    ' Send Password
  1039. MPRINT "Connection Complete!"
  1040. END
  1041. DialFailed:
  1042. MPRINT "Did not connect"
  1043. END
  1044.  
  1045. DIAL Statement
  1046.  
  1047. Action:        Starts the dialing connect process.
  1048. Syntax:        DIAL [phonenumber$]
  1049. Remarks:    The optional argument phonenumber$ is a string expression that 
  1050.           specifies the phone number MicroLink will use when performing 
  1051.           a dial command.  If this argument is not supplied, the DIAL  
  1052.           statement will use the default phone number.
  1053. Example:    The following example uses DIAL to connect to a remote computer:
  1054.  
  1055. ONERROR DialFailed
  1056. DIAL "9,123-4567"
  1057. WAITFOR "Enter FIRST name: "
  1058. RPRINT "John^M"    ' Send First Name
  1059. WAITFOR "Enter LAST name: "
  1060. RPRINT "Doe^M"    ' Send Last Name
  1061. WAITFOR "Enter Password: "
  1062. RPRINT "PASSWORD^M"    ' Send Password
  1063. MPRINT "Connection Complete!"
  1064. END
  1065. DialFailed:
  1066. MPRINT "Did not connect"
  1067. END
  1068.  
  1069. END Statement
  1070.  
  1071. Action:        Stops a script.
  1072. Syntax:        END
  1073. Remarks:    The END statement stops script execution, closes all files and
  1074.           returns control to the user.  You can place an END statement
  1075.           anywhere in the script to terminate execution.
  1076. Example:    The following script uses the END statement to end script             
  1077.            execution:
  1078.  
  1079. FIRST$ = "John"    ' First Name
  1080. LAST$  = "Doe"    ' Last Name
  1081. WAITFOR "First Name-> "
  1082. RPRINT FIRST$
  1083. RPRINT "^M"
  1084. WAITFOR "Last Name-> "
  1085. RPRINT LAST$
  1086. RPRINT "^M"
  1087. WAITFOR "Password-> "
  1088. INPUT "Enter Password:", PW$ ' Get Password
  1089. RPRINT PW$
  1090. RPRINT "^M"
  1091. MPRINT "Log-on Complete!"
  1092. SLEEP 10
  1093. MPRINT "Finishing Up..."
  1094. X = 1
  1095. Again:
  1096. IF X = 5 THEN
  1097.     GOTO Done
  1098. ENDIF
  1099. WAITFOR "Continue? "    ' Wait for 5 Continues
  1100. MPRINT "^M"    ' and send each a CR
  1101. X = X + 1
  1102. GOTO Again
  1103. Done:
  1104. CLS
  1105. MPRINT "All Done..."
  1106. END
  1107.  
  1108. FOR...NEXT Statement
  1109. Action:        Repeats a group of instructions a specified number of times.
  1110. Syntax:        FOR counter=start TO end
  1111.               [statementblock]
  1112.             [EXIT FOR]
  1113.               [statementblock]
  1114.             NEXT
  1115. Remarks:    The FOR statement utilizes the following arguments:
  1116.  
  1117. Argument:     Description counter -  A numeric variable used as a loop 
  1118.                counter.
  1119.                start - The initial value of the counter.
  1120.                end - The final value of the loop counter.
  1121.             
  1122.                A FOR...NEXT loop executes only if start is less than end.
  1123.                Within the FOR...NEXT loop, the program lines following 
  1124.                the FOR statement are executed until the NEXT statement is 
  1125.                encountered.  Then the counter is incremented and compared 
  1126.                by the final value, end.
  1127.             Avoid changing the value of counter within the loop.
  1128.               Changing the value of counter is poor programming
  1129.               practice and can make the program difficult to read and
  1130.              debug.
  1131.  
  1132.  
  1133. EXIT FOR Statement
  1134.  
  1135. The EXIT FOR statement provides a convenient method to exit a FOR...NEXT loop.
  1136.  
  1137. Example:        The following example uses a FOR...NEXT loop in a script:
  1138.  
  1139. FIRST$ = "John"    ' First Name
  1140. LAST$  = "Doe"    ' Last Name
  1141. WAITFOR "First Name-> "
  1142. RPRINT FIRST$
  1143. RPRINT "^M"
  1144. WAITFOR "Last Name-> "
  1145. RPRINT LAST$
  1146. RPRINT "^M"
  1147. WAITFOR "Password-> "
  1148. INPUT "Enter Password:", PW$ ' Get Password
  1149. RPRINT PW$
  1150. RPRINT "^M"
  1151. MPRINT "Log-on Complete!"
  1152. SLEEP 10
  1153. MPRINT "Finishing Up..."
  1154. X = 1
  1155. Again:
  1156. IF X = 5 THEN
  1157.     GOTO Done
  1158. ENDIF
  1159. WAITFOR "Continue? "    ' Wait for 5 Continues
  1160. MPRINT "^M"    ' and send each a CR
  1161. X = X + 1
  1162. GOTO Again
  1163. Done:
  1164. CLS
  1165. MPRINT "All Done..."
  1166. END
  1167.  
  1168.  
  1169. GOTO Statement
  1170.  
  1171. Action:        Branches unconditionally to the specified label.
  1172. Syntax:        GOTO label
  1173. Remarks:    The GOTO statement provides a way to branch unconditionally to
  1174.          another label.  
  1175. Example:    The following example uses the GOTO statement:
  1176.  
  1177. FIRST$ = "John"    ' First Name
  1178. LAST$  = "Doe"    ' Last Name
  1179. WAITFOR "First Name-> "
  1180. RPRINT FIRST$
  1181. RPRINT "^M"
  1182. WAITFOR "Last Name-> "
  1183. RPRINT LAST$
  1184. RPRINT "^M"
  1185. WAITFOR "Password-> "
  1186. INPUT "Enter Password:", PW$ ' Get Password
  1187. RPRINT PW$
  1188. RPRINT "^M"
  1189. MPRINT "Log-on Complete!"
  1190. SLEEP 10
  1191. MPRINT "Finishing Up..."
  1192. X = 1
  1193. Again:
  1194. IF X = 5 THEN
  1195.     GOTO Done
  1196. ENDIF
  1197. WAITFOR "Continue? "    ' Wait for 5 Continues
  1198. MPRINT "^M"    ' and send each a CR
  1199. X = X + 1
  1200. GOTO Again
  1201. Done:
  1202. CLS
  1203. MPRINT "All Done..."
  1204. END
  1205.  
  1206.  
  1207. HANGUP Statement
  1208.  
  1209. Action:        Disconnects the modem and ends an active session.
  1210. Syntax:        HANGUP
  1211. Remarks:    The HANGUP statement disconnects the modem and ends an active 
  1212.           session.
  1213. Example:    The following example uses HANGUP to end an active session:
  1214.  
  1215. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1216. SET INCRLF OFF    ' Sets Inbound CR->LF
  1217. SET ECHO OFF    ' Sets Local Echo
  1218. SET TEXTWRAP ON    ' Sets Text Wrap
  1219. SET TERMINAL ANSI
  1220. SET PROTOCOL YMODEMB
  1221. SET TITLE "Simple Host Mode"
  1222. AUTOANSWER    ' Sets AA mode
  1223. RPRINT "Welcome to my PC^M"
  1224. SLEEP 5
  1225. RPRINT "Send me the name of the file you want^M"
  1226. RINPUT "Enter filename:", file$
  1227. RPRINT "^M^M"    ' Sends 2 CRs
  1228. RPRINT "When you are ready to receive the file "
  1229. RPRINT "using YMODEMB, send me 'OK'^M"
  1230. WAITFOR "OK"
  1231. RPRINT "Sending file " + file$ + " using YMODEMB^M"
  1232. SEND file$
  1233. RPRINT "Bye"
  1234. HANGUP
  1235. END
  1236.  
  1237.  
  1238. HOLDLOG Statement
  1239.  
  1240. Action:        Pauses the logging of text to a file.
  1241. Syntax:        HOLDLOG
  1242. Remarks:    The HOLDLOG statement pauses the logging of text to a file.
  1243. Example:    The following example uses HOLDLOG to pause the logging of text
  1244.         to a file:
  1245.  
  1246. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1247. OPENLOG LOG$    ' Open a log File
  1248. HOLDLOG
  1249. WAITFOR "Enter FIRST name: "
  1250. RPRINT "John^M"    ' Send First Name
  1251. WAITFOR "Enter LAST name: "
  1252. RPRINT "Doe^M"    ' Send Last Name
  1253. WAITFOR "Enter Password: "
  1254. RPRINT "PASSWORD^M"    ' Send Password
  1255. MPRINT "Log File Opened."
  1256. RESUMELOG
  1257. REM Keep the script running in background until the BBS 
  1258. REM ends the session and sends "Goodbye".
  1259. WAITFOR "Goodbye"
  1260. CLOSELOG
  1261. MPRINT "Log File Closed."
  1262. END
  1263.  
  1264.  
  1265. IF...THEN...ELSE...ENDIF Statement
  1266.  
  1267. Action:        Allows conditional execution, or branching, based on the 
  1268.                evaluation of a Boolean (true or false) expression.
  1269. Syntax1:        IF booleanexpression THEN statement [ELSE statement]
  1270.  
  1271. Syntax2:        IF booleanexpression THEN
  1272.                   [statementblock]
  1273.             [ELSE]
  1274.                        [statementblock]
  1275.             ENDIF
  1276.  
  1277. Remarks:  The argument boolean expression is any expression that evaluates to 
  1278. true (no zero) or false (zero).  If the boolean expression is true the 
  1279. statements following the THEN are executed.  If the boolean expression is 
  1280. false and an ELSE statement exist, the statements that follow the ELSE 
  1281. statement are executed.  The program continues execution following the line 
  1282. after the ENDIF statement.
  1283.  
  1284. The single-line form of the statement is best used for short, straightforward 
  1285. tests where only one action is taken.  Otherwise it is recommended that the 
  1286. block form of the statement be used.  Programs that use the block form of 
  1287. the statement are usually easier to read, maintain and debug.  
  1288.  
  1289. Example:    The following example uses the IF...THEN...ELSE...ENDIF statement:
  1290.  
  1291. FIRST$ = "John"    ' First Name
  1292. LAST$  = "Doe"    ' Last Name
  1293. WAITFOR "First Name-> "
  1294. RPRINT FIRST$
  1295. RPRINT "^M"
  1296. WAITFOR "Last Name-> "
  1297. RPRINT LAST$
  1298. RPRINT "^M"
  1299. WAITFOR "Password-> "
  1300. INPUT "Enter Password:", PW$ ' Get Password
  1301. RPRINT PW$
  1302. RPRINT "^M"
  1303. MPRINT "Log-on Complete!"
  1304. SLEEP 10
  1305. MPRINT "Finishing Up..."
  1306. X = 1
  1307. Again:
  1308. IF X = 5 THEN
  1309.     GOTO Done
  1310. ENDIF
  1311. WAITFOR "Continue? "    ' Wait for 5 Continues
  1312. MPRINT "^M"    ' and send each a CR
  1313. X = X + 1
  1314. GOTO Again
  1315. Done:
  1316. CLS
  1317. MPRINT "All Done..."
  1318. END
  1319.  
  1320. INPUT Statement
  1321.  
  1322. Action:        Displays a dialog box with a given prompt to allow the user 
  1323.                to enter an expression from the keyboard and place the results 
  1324.                in a    specified memory variable.
  1325. Syntax:        INPUT stringexpression$, stringID$ [USING SUPPRESS]
  1326. Remarks:    The argument stringexpression$ can be any string variable, string 
  1327.           constant, or string expression.  It is the prompt message that 
  1328.           appears before the input area.  The stringID$ is the name of the 
  1329.           string variable where the result of the evaluation is placed.  The 
  1330.           optional argument SUPPRESS allows the inputted information to be 
  1331.           hidden, replaced only by asterisks (*).
  1332. Example:    The following example uses the INPUT statement to accept dynamic 
  1333.         input:
  1334.  
  1335. FIRST$ = "John"    ' First Name
  1336. LAST$  = "Doe"    ' Last Name
  1337. INPUT "Enter Password:", PW$ USING SUPRESS
  1338. WAITFOR "First Name-> "
  1339. RPRINT FIRST$
  1340. RPRINT "^M"
  1341. WAITFOR "Last Name-> "
  1342. RPRINT LAST$
  1343. RPRINT "^M"
  1344. WAITFOR "Password-> "
  1345. RPRINT PW$
  1346. RPRINT "^M"
  1347. MPRINT "Log-on Complete!"
  1348. CLS
  1349. END
  1350.  
  1351.  
  1352. LOWER Function
  1353.  
  1354. Action:        Returns a string with all letters in upper case.
  1355. Syntax:        LOWER(stringexpression$)
  1356. Remarks:    The argument stringexpression$ can be any string variable, string 
  1357.           constant, or string expression.  Both the LOWER and UPPER functions 
  1358.           are useful when making string comparisons.
  1359. Example:    The following example uses the LOWER function to convert a string to 
  1360.           lower case:
  1361.  
  1362. FIRST$ = "John"    ' First Name
  1363. LAST$  = "Doe"    ' Last Name
  1364. INPUT "Enter Password:", PW$ USING SUPRESS
  1365. PW$  = LOWER(PW$)    
  1366. WAITFOR "First Name-> "
  1367. RPRINT FIRST$
  1368. RPRINT "^M"
  1369. WAITFOR "Last Name-> "
  1370. RPRINT LAST$
  1371. RPRINT "^M"
  1372. WAITFOR "Password-> "
  1373. RPRINT PW$
  1374. RPRINT "^M"
  1375. MPRINT "Log-on Complete!"
  1376. CLS
  1377. END
  1378. MPRINT Statement
  1379. Action:        Prints text in the Status Bar.
  1380. Syntax:        MPRINT strnigexpression$
  1381. Remarks:    The argument stringexpression$ can be any string variable,
  1382.         string constant, or string expression.  
  1383. Example:    The following example uses the MPRINT statement to print text in
  1384.          the Status Bar:
  1385.  
  1386. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1387. OPENLOG LOG$    ' Open a log File
  1388. HOLDLOG
  1389. WAITFOR "Enter FIRST name: "
  1390. RPRINT "John^M"    ' Send First Name
  1391. WAITFOR "Enter LAST name: "
  1392. RPRINT "Doe^M"    ' Send Last Name
  1393. WAITFOR "Enter Password: "
  1394. RPRINT "PASSWORD^M"    ' Send Password
  1395. MPRINT "Log File Opened."
  1396. RESUMELOG
  1397. REM Keep the script running in background until the BBS 
  1398. REM ends the session and sends "Goodbye".
  1399. WAITFOR "Goodbye"
  1400. CLOSELOG
  1401. MPRINT "Log File Closed."
  1402. END
  1403.  
  1404.  
  1405. ONERROR Statement
  1406.  
  1407. Action:        Branches unconditionally to the specified label whenever a
  1408.              runtime error occurs.
  1409. Syntax:        ONERROR label
  1410. Remarks:    If the SET ERROR statement  is set to OFF, the ONERROR statement
  1411.          will be ignored.
  1412. Example:    The following example uses the ONERROR statement to end a script 
  1413.         due to a runtime error:
  1414.  
  1415. ONERROR DialFailed
  1416. DIAL "9,123-4567"
  1417. WAITFOR "Enter FIRST name: "
  1418. RPRINT "John^M"    ' Send First Name
  1419. WAITFOR "Enter LAST name: "
  1420. RPRINT "Doe^M"    ' Send Last Name
  1421. WAITFOR "Enter Password: "
  1422. RPRINT "PASSWORD^M"    ' Send Password
  1423. MPRINT "Connection Complete!"
  1424. END
  1425. DialFailed:
  1426. MPRINT "Did not connect"
  1427. END
  1428.  
  1429.  
  1430. OPENLOG Statement
  1431.  
  1432. Action:        Opens a log file.
  1433. Syntax:        OPENLOG filename$
  1434. Remarks:    The argument filename$ can be any string variable, string
  1435.          constant, or string expression.  If the filename$ is the file
  1436.         name without a path, the opened log command will prefix it with
  1437.          the path specified in the log path setting.  Any opened log
  1438.         files will be closed.
  1439. Example:    The following example uses OPENLOG to open a log file:
  1440.  
  1441. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1442. OPENLOG LOG$    ' Open a log File
  1443. HOLDLOG
  1444. WAITFOR "Enter FIRST name: "
  1445. RPRINT "John^M"    ' Send First Name
  1446. WAITFOR "Enter LAST name: "
  1447. RPRINT "Doe^M"    ' Send Last Name
  1448. WAITFOR "Enter Password: "
  1449. RPRINT "PASSWORD^M"    ' Send Password
  1450. MPRINT "Log File Opened."
  1451. RESUMELOG
  1452. REM Keep the script running in background until the BBS 
  1453. REM ends the session and sends "Goodbye".
  1454. WAITFOR "Goodbye"
  1455. CLOSELOG
  1456. MPRINT "Log File Closed."
  1457. END
  1458.  
  1459.  
  1460. REM Statement
  1461.  
  1462. Action:        Allows explanatory remarks to be inserted in a script.
  1463. Syntax1:    REM remark
  1464. Syntax2:    ' remark
  1465. Remarks:    Statements that exist after the REM statement are not executed.
  1466.           A remark is terminated by a carriage return.
  1467. Example:    The following is an example of the use of the REM    statement to 
  1468.           make a script more readable:
  1469.  
  1470. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1471. OPENLOG LOG$    ' Open a log File
  1472. HOLDLOG
  1473. WAITFOR "Enter FIRST name: "
  1474. RPRINT "John^M"    ' Send First Name
  1475. WAITFOR "Enter LAST name: "
  1476. RPRINT "Doe^M"    ' Send Last Name
  1477. WAITFOR "Enter Password: "
  1478. RPRINT "PASSWORD^M"    ' Send Password
  1479. MPRINT "Log File Opened."
  1480. RESUMELOG
  1481. REM Keep the script running in background until the BBS 
  1482. REM ends the session and sends "Goodbye".
  1483. WAITFOR "Goodbye"
  1484. CLOSELOG
  1485. MPRINT "Log File Closed."
  1486. END
  1487.  
  1488.  
  1489. RECEIVE Statement
  1490.  
  1491. Action:        Receives a file from the remote computer.
  1492. Syntax:        RECEIVE [filename$] [USING protocol]
  1493. Remarks:    The argument filename$ is optional when the default file transfer 
  1494.           protocol is one which sends the name of the file to be received.
  1495.           YMODEMB, YMODEMG and ZMODEM protocols are of this type.  The 
  1496.           argument filename$ can be any string variable, string constant, 
  1497.           or string expression.  If the filename$ is the file name without 
  1498.           a path, the receive command will prefix it with the path specified
  1499.           in the receive path setting.
  1500.  
  1501.         The optional argument protocol can be ASCII, XMODEM, XMODEMCRC,
  1502.          XMODEM1K,  YMODEM, YMODEMB, YMODEMG and ZMODEM.  This argument
  1503.         will modify the default file transfer protocol.  The RECEIVE
  1504.         statement is not case sensitive.
  1505. Example:    The following example uses the RECEIVE statement to receive a
  1506.         file from the remote computer:
  1507.  
  1508. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1509. SET INCRLF OFF    ' Sets Inbound CR->LF
  1510. SET ECHO OFF    ' Sets Local Echo
  1511. SET TEXTWRAP ON    ' Sets Text Wrap
  1512. SET TERMINAL ANSI
  1513. SET PROTOCOL YMODEMB
  1514. SET TITLE "Simple Host Mode"
  1515. AUTOANSWER    ' Sets AA mode
  1516. RPRINT "Welcome to my PC^M"
  1517. SLEEP 5
  1518. RPRINT "Send me the name of the file I need.^M"
  1519. RINPUT "Enter filename:", file$
  1520. RPRINT "^M^M"    ' Sends 2 CRs
  1521. RPRINT "When your ready to send the file "
  1522. RPRINT "using YMODEMB, send me 'OK'^M"
  1523. WAITFOR "OK"
  1524. RPRINT "Receiving file " + file$ + " using YMODEMB^M"
  1525. RECEIVE file$
  1526. RPRINT "Bye"
  1527. HANGUP
  1528. END
  1529.  
  1530.  
  1531. RESUMELOG Statement
  1532.  
  1533. Action:        Resumes the logging of characters to a file.
  1534. Syntax:        RESUMELOG
  1535. Remarks:    The RESUMELOG statement resumes the logging of characters to a file.
  1536. Example:    The following example uses the RESUMELOG statement to resume the     
  1537.          logging of characters to a file:
  1538.  
  1539. LOG$ = "LOGFILE.LOG"    ' Log File Name
  1540. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1541. SET INCRLF OFF    ' Sets Inbound CR->LF
  1542. HOLDLOG
  1543. WAITFOR "Enter FIRST name: "
  1544. RPRINT "John^M"    ' Send First Name
  1545. WAITFOR "Enter LAST name: "
  1546. RPRINT "Doe^M"    ' Send Last Name
  1547. WAITFOR "Enter Password: "
  1548. RPRINT "PASSWORD^M"    ' Send Password
  1549. MPRINT "Log File Opened."
  1550. RESUMELOG
  1551. REM Keep the script running in background until the BBS 
  1552. REM ends the session and sends "Goodbye".
  1553. WAITFOR "Goodbye"
  1554. CLOSELOG
  1555. MPRINT "Log File Closed."
  1556. END
  1557.  
  1558.  
  1559. RINPUT Statement
  1560.  
  1561. Action:        Displays a given prompt to allow the remote user to enter an
  1562.              expression from the keyboard and place the results in a
  1563.              specified variable.
  1564. Syntax:        RINPUT stringexpression$, stringID$ [USING SUPPRESS]
  1565. Remarks:    The argument stringexpression$ can be any string variable,
  1566.         string constant, or string expression.  It is the prompt message 
  1567.         that appears before the input area.  The stringID$ is the name
  1568.         of the string variable where the result of the evaluation is
  1569.         placed.  The optional argument SUPPRESS allows for the inputted
  1570.          information to be hidden, replaced only by asterisks (*).
  1571.  
  1572. Example:    The following example uses the RINPUT statement to accept dynamic
  1573.           input:
  1574.  
  1575. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1576. SET INCRLF OFF    ' Sets Inbound CR->LF
  1577. SET ECHO OFF    ' Sets Local Echo
  1578. SET TEXTWRAP ON    ' Sets Text Wrap
  1579. SET TERMINAL ANSI
  1580. SET PROTOCOL YMODEMB
  1581. SET TITLE "Simple Host Mode"
  1582. AUTOANSWER    ' Sets AA mode
  1583. RPRINT "Welcome to my PC^M"
  1584. SLEEP 5
  1585. RPRINT "Send me the name of the file you want^M"
  1586. RINPUT "Enter filename:", file$
  1587. RPRINT "^M^M"    ' Sends 2 CRs
  1588. RPRINT "When your ready to receive the file "
  1589. RPRINT "using YMODEMB, send me 'OK'^M"
  1590. WAITFOR "OK"
  1591. RPRINT "Sending file " + file$ + " using YMODEMB^M"
  1592. SEND file$
  1593. RPRINT "Bye"
  1594. HANGUP
  1595. END
  1596.  
  1597.  
  1598. RPRINT Statement
  1599.  
  1600. Action:        Sends text to the remote computer
  1601. Syntax:        RPRINT stringexpression$
  1602. Remarks:    The argument stringexpression$ can be any string variable, string 
  1603.           constant, or string expression.  
  1604. Example:    The following example uses the RPRINT statement to send text to
  1605.          the remote computer:
  1606.  
  1607. WAITFOR "Enter FIRST name: "
  1608. RPRINT "John^M"    ' Send First Name
  1609. WAITFOR "Enter LAST name: "
  1610. RPRINT "Doe^M"    ' Send Last Name
  1611. WAITFOR "Enter Password: "
  1612. RPRINT "PASSWORD^M"    ' Send Password
  1613. CLS            ' Clears the screen
  1614. BEEP            ' Log on complete
  1615. END
  1616.  
  1617.  
  1618. SEND Statement
  1619.  
  1620. Action:        Sends a file to the remote computer.
  1621. Syntax:        SEND filename$ [USING protocol]
  1622. Remarks:    The argument filename$ can be any string variable, string constant,
  1623.           or string expression.  If the filename$ is the file name without a
  1624.           path, the send command will prefix it with the path specified in the 
  1625.           send path setting.  
  1626.         The optional argument protocol can be ASCII, XMODEM, XMODEMCRC, 
  1627.           XMODEM1K,  YMODEM, YMODEMB, YMODEMG and ZMODEM.  This argument will 
  1628.           modify the default file transfer protocol.  The SEND statement is 
  1629.           not case sensitive.
  1630. Example:    The following example uses the SEND statement to send a file to
  1631.          the remote computer:
  1632.  
  1633. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1634. SET INCRLF OFF    ' Sets Inbound CR->LF
  1635. SET ECHO OFF    ' Sets Local Echo
  1636. SET TEXTWRAP ON    ' Sets Text Wrap
  1637. SET TERMINAL ANSI
  1638. SET PROTOCOL YMODEMB
  1639. SET TITLE "Simple Host Mode"
  1640. file$ = "c:\dos\command.com"
  1641. AUTOANSWER    ' Sets AA mode
  1642. RPRINT "Welcome to my PC^M"
  1643. SLEEP 5
  1644. RPRINT "Send me the name of the file you want^M"
  1645. RINPUT "Enter filename:", file$
  1646. RPRINT "^M^M"    ' Sends 2 CRs
  1647. RPRINT "When your ready to receive the file "
  1648. RPRINT "using YMODEMB, send me 'OK'^M"
  1649. WAITFOR "OK"
  1650. RPRINT "Sending file " + file$ + " using YMODEMB^M"
  1651. SEND file$
  1652. RPRINT "Bye"
  1653. HANGUP
  1654. END
  1655.  
  1656.  
  1657. SET BAUDRATE Statement
  1658.  
  1659. Action:        Sets the Baud Rate option.
  1660. Syntax:        SET BAUDRATE baudrate
  1661. Remarks:    The argument baudrate can be 300, 600, 1200, 2400, 4800, 9600 or
  1662.          19200.
  1663. Example:    The following example uses the SET BAUDRATE statement to change
  1664.          the baud rate:
  1665.  
  1666. CLS
  1667. SET COMPORT COM1
  1668. SET BAUDRATE 2400
  1669. SET PARITY EVEN
  1670. SET DATABITS 7
  1671. SET STOPBITS 1
  1672. SET FLOWCONTROL NONE
  1673. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1674. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1675. SET PARITYCHECK OFF    ' Sets Parity Check
  1676. CLS
  1677. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1678. SET INCRLF OFF    ' Sets Inbound CR->LF
  1679. SET ECHO OFF    ' Sets Local Echo
  1680. SET TEXTWRAP ON    ' Sets Text Wrap
  1681. SET TERMINAL ANSI                
  1682. SET PHONENUMBER "9,123-4567"    
  1683. SET PROTOCOL ZMODEM            
  1684. SET TITLE "Bill's Computer"        
  1685. DIAL            ' Connects
  1686. END
  1687.  
  1688.  
  1689. SET CARRIERDETECT Statement
  1690.  
  1691. Action:        Sets the Carrier Detect state.
  1692. Syntax:        SET CARRIERDETECT state
  1693. Remarks:    The argument state can be either ON or OFF.
  1694. Example:    The following example uses the SET CARRIERDETECT statement to
  1695.         change the carrier detect state:
  1696.  
  1697. CLS
  1698. SET COMPORT COM1
  1699. SET BAUDRATE 2400
  1700. SET PARITY EVEN
  1701. SET DATABITS 7
  1702. SET STOPBITS 1
  1703. SET FLOWCONTROL NONE
  1704. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1705. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1706. SET PARITYCHECK OFF    ' Sets Parity Check
  1707. CLS
  1708. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1709. SET INCRLF OFF    ' Sets Inbound CR->LF
  1710. SET ECHO OFF    ' Sets Local Echo
  1711. SET TEXTWRAP ON    ' Sets Text Wrap
  1712. SET TERMINAL ANSI                
  1713. SET PHONENUMBER "9,123-4567"    
  1714. SET PROTOCOL ZMODEM            
  1715. SET TITLE "Bill's Computer"        
  1716. DIAL            ' Connects
  1717. END
  1718.  
  1719.  
  1720. SET COMPORT Statement
  1721.  
  1722. Action:        Sets the Ports option.
  1723. Syntax:        SET COMPORT comport
  1724. Remarks:    The argument comport can be COM1, COM2, COM3 or COM4.
  1725. Example:    The following example uses the SET COMPORT statement to change
  1726.         the communications port:
  1727.  
  1728. CLS
  1729. SET COMPORT COM1
  1730. SET BAUDRATE 2400
  1731. SET PARITY EVEN
  1732. SET DATABITS 7
  1733. SET STOPBITS 1
  1734. SET FLOWCONTROL NONE
  1735. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1736. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1737. SET PARITYCHECK OFF    ' Sets Parity Check
  1738. CLS
  1739. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1740. SET INCRLF OFF    ' Sets Inbound CR->LF
  1741. SET ECHO OFF    ' Sets Local Echo
  1742. SET TEXTWRAP ON    ' Sets Text Wrap
  1743. SET TERMINAL ANSI                
  1744. SET PHONENUMBER "9,123-4567"    
  1745. SET PROTOCOL ZMODEM            
  1746. SET TITLE "Bill's Computer"        
  1747. DIAL            ' Connects
  1748. END
  1749.  
  1750.  
  1751. SET DATABITS Statement
  1752.  
  1753. Action:        Sets the Data Bits option.
  1754. Syntax:        SET DATABITS databits
  1755. Remarks:    The argument databits can be 6, 7 or 8.
  1756. Example:    This following example uses the SET DATABITS statement to change
  1757.          the data bits:
  1758.  
  1759. CLS
  1760. SET COMPORT COM1
  1761. SET BAUDRATE 2400
  1762. SET PARITY EVEN
  1763. SET DATABITS 7
  1764. SET STOPBITS 1
  1765. SET FLOWCONTROL NONE
  1766. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1767. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1768. SET PARITYCHECK OFF    ' Sets Parity Check
  1769. CLS
  1770. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1771. SET INCRLF OFF    ' Sets Inbound CR->LF
  1772. SET ECHO OFF    ' Sets Local Echo
  1773. SET TEXTWRAP ON    ' Sets Text Wrap
  1774. SET TERMINAL ANSI                
  1775. SET PHONENUMBER "9,123-4567"    
  1776. SET PROTOCOL ZMODEM            
  1777. SET TITLE "Bill's Computer"        
  1778. DIAL            ' Connects
  1779. END
  1780.  
  1781.  
  1782. SET ECHO Statement
  1783.  
  1784. Action:        Sets the Local Echo state.
  1785. Syntax:        SET ECHO state
  1786. Remarks:    The argument state can be either ON or OFF.
  1787. Example:    The following example uses the SET ECHO statement to change the
  1788.          local echo state:
  1789.  
  1790. CLS
  1791. SET COMPORT COM1
  1792. SET BAUDRATE 2400
  1793. SET PARITY EVEN
  1794. SET DATABITS 7
  1795. SET STOPBITS 1
  1796. SET FLOWCONTROL NONE
  1797. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1798. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1799. SET PARITYCHECK OFF    ' Sets Parity Check
  1800. CLS
  1801. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1802. SET INCRLF OFF    ' Sets Inbound CR->LF
  1803. SET ECHO OFF    ' Sets Local Echo
  1804. SET TEXTWRAP ON    ' Sets Text Wrap
  1805. SET TERMINAL ANSI                
  1806. SET PHONENUMBER "9,123-4567"    
  1807. SET PROTOCOL ZMODEM            
  1808. SET TITLE "Bill's Computer"        
  1809. DIAL            ' Connects
  1810. END
  1811.  
  1812.  
  1813. SET ERROR Statement
  1814.  
  1815. Action:        Sets the Error state.
  1816. Syntax:        SET ERROR state
  1817. Remarks:    The argument state can be either ON or OFF.
  1818. Example:    The following example uses the SET ERROR statement to disable
  1819.         error processing.
  1820.  
  1821. CLS
  1822. SET COMPORT COM1
  1823. SET BAUDRATE 2400
  1824. SET PARITY EVEN
  1825. SET DATABITS 7
  1826. SET STOPBITS 1
  1827. SET FLOWCONTROL NONE
  1828. SET ERROR OFF
  1829. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1830. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1831. SET PARITYCHECK OFF    ' Sets Parity Check
  1832. CLS
  1833. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1834. SET INCRLF OFF    ' Sets Inbound CR->LF
  1835. SET ECHO OFF    ' Sets Local Echo
  1836. SET TEXTWRAP ON    ' Sets Text Wrap
  1837. SET TERMINAL ANSI                
  1838. SET PHONENUMBER "9,123-4567"    
  1839. SET PROTOCOL ZMODEM            
  1840. SET TITLE "Bill's Computer"        
  1841. DIAL            ' Connects
  1842. END
  1843.  
  1844.  
  1845. SET FLOWCONTROL Statement
  1846.  
  1847. Action:        Sets the Flow Control option.
  1848. Syntax:        SET FLOWCONTROL flowcontrol
  1849. Remarks:    The argument flowcontrol can be NONE, RTS, CTS, XON.  The SET
  1850.         FLOWCONTROL statement is not case sensitive.
  1851. Example:    The following example uses the SET FLOWCONTROL statement to
  1852.         change the flow control:
  1853.  
  1854. CLS
  1855. SET COMPORT COM1
  1856. SET BAUDRATE 2400
  1857. SET PARITY EVEN
  1858. SET DATABITS 7
  1859. SET STOPBITS 1
  1860. SET FLOWCONTROL NONE
  1861. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1862. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1863. SET PARITYCHECK OFF    ' Sets Parity Check
  1864. CLS
  1865. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1866. SET INCRLF OFF    ' Sets Inbound CR->LF
  1867. SET ECHO OFF    ' Sets Local Echo
  1868. SET TEXTWRAP ON    ' Sets Text Wrap
  1869. SET TERMINAL ANSI                
  1870. SET PHONENUMBER "9,123-4567"    
  1871. SET PROTOCOL ZMODEM            
  1872. SET TITLE "Bill's Computer"        
  1873. DIAL            ' Connects
  1874. END
  1875.  
  1876.  
  1877. SET INCRLF Statement
  1878.  
  1879. Action:        Sets the Inbound CR->CRLF state.
  1880. Syntax:        SET INCRLF state
  1881. Remarks:    The argument state can be either ON or OFF.
  1882. Example:    The following example uses the SET INCRLF statement to change
  1883.         the inbound carriage expands to carriage return plus line feed
  1884.         state:
  1885.  
  1886. CLS
  1887. SET COMPORT COM1
  1888. SET BAUDRATE 2400
  1889. SET PARITY EVEN
  1890. SET DATABITS 7
  1891. SET STOPBITS 1
  1892. SET FLOWCONTROL NONE
  1893. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1894. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1895. SET PARITYCHECK OFF    ' Sets Parity Check
  1896. CLS
  1897. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1898. SET INCRLF OFF    ' Sets Inbound CR->LF
  1899. SET ECHO OFF    ' Sets Local Echo
  1900. SET TEXTWRAP ON    ' Sets Text Wrap
  1901. SET TERMINAL ANSI                
  1902. SET PHONENUMBER "9,123-4567"    
  1903. SET PROTOCOL ZMODEM            
  1904. SET TITLE "Bill's Computer"        
  1905. DIAL            ' Connects
  1906. END
  1907.  
  1908.  
  1909. SET LOCKBAUDRATE Statement
  1910.  
  1911. Action:        Sets the Lock Baud Rate state.
  1912. Syntax:        SET LOCKBAUDRATE state
  1913. Remarks:    The argument state can be either ON or OFF.
  1914. Example:    The following example uses the SET LOCKBAUDRATE statement to
  1915.         change the lock baud rate state:
  1916.  
  1917. CLS
  1918. SET COMPORT COM1
  1919. SET BAUDRATE 2400
  1920. SET PARITY EVEN
  1921. SET DATABITS 7
  1922. SET STOPBITS 1
  1923. SET FLOWCONTROL NONE
  1924. SET CARRIERDETECT ON            ' Sets Carrier Detect
  1925. SET LOCKBAUDRATE OFF            ' Sets Lock Baud Rate
  1926. SET PARITYCHECK OFF            ' Sets Parity Check
  1927. SET OUTCRLF OFF                ' Sets Outbound CR->LF
  1928. SET INCRLF OFF                ' Sets Inbound CR->LF
  1929. SET ECHO OFF                    ' Sets Local Echo
  1930. SET TEXTWRAP ON                ' Sets Text Wrap
  1931. SET TERMINAL ANSI
  1932. SET PHONENUMBER "9,123-4567"
  1933. SET PROTOCOL ZMODEM
  1934. SET TITLE "Bill's Computer"
  1935. DIAL
  1936. END
  1937.  
  1938.  
  1939. SET OUTCRLF Statement
  1940.  
  1941. Action:    Sets the Outbound CR->CRLF state.
  1942. Syntax:    SET OUTCRLF state
  1943. Remarks:    The argument state can be either ON or OFF.
  1944. Example:    The following example uses the SET OUTCRLF statement to change
  1945.         the outbound carriage expands to carriage return plus line feed
  1946.          state:
  1947.  
  1948. CLS
  1949. SET COMPORT COM1
  1950. SET BAUDRATE 2400
  1951. SET PARITY EVEN
  1952. SET DATABITS 7
  1953. SET STOPBITS 1
  1954. SET FLOWCONTROL NONE
  1955. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1956. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1957. SET PARITYCHECK OFF    ' Sets Parity Check
  1958. CLS
  1959. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1960. SET INCRLF OFF    ' Sets Inbound CR->LF
  1961. SET ECHO OFF    ' Sets Local Echo
  1962. SET TEXTWRAP ON    ' Sets Text Wrap
  1963. SET TERMINAL ANSI                
  1964. SET PHONENUMBER "9,123-4567"    
  1965. SET PROTOCOL ZMODEM            
  1966. SET TITLE "Bill's Computer"        
  1967. DIAL            ' Connects
  1968. END
  1969.  
  1970.  
  1971. SET PARITY Statement
  1972.  
  1973. Action:        Sets the Parity.
  1974. Syntax:        SET PARITY parity
  1975. Remarks:    The argument parity can be NONE, ODD, EVEN, MARK, or SPACE.  
  1976.           The SET PARITY statement is not case sensitive.  The parity 
  1977.           setting must match the setting of the remote computer.  Improper 
  1978.           parity settings will result in frame errors.
  1979. Example:    The following example uses the SET PARITY statement to change
  1980.         the parity:
  1981.  
  1982. CLS
  1983. SET COMPORT COM1
  1984. SET BAUDRATE 2400
  1985. SET PARITY EVEN
  1986. SET DATABITS 7
  1987. SET STOPBITS 1
  1988. SET FLOWCONTROL NONE
  1989. SET CARRIERDETECT ON    ' Sets Carrier Detect
  1990. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  1991. SET PARITYCHECK OFF    ' Sets Parity Check
  1992. CLS
  1993. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  1994. SET INCRLF OFF    ' Sets Inbound CR->LF
  1995. SET ECHO OFF    ' Sets Local Echo
  1996. SET TEXTWRAP ON    ' Sets Text Wrap
  1997. SET TERMINAL ANSI                
  1998. SET PHONENUMBER "9,123-4567"    
  1999. SET PROTOCOL ZMODEM            
  2000. SET TITLE "Bill's Computer"        
  2001. DIAL            ' Connects
  2002. END
  2003.  
  2004.  
  2005. SET PARITYCHECK Statement
  2006. Action:        Sets the Parity Check state.
  2007. Syntax:        SET PARITYCHECK state
  2008. Remarks:    The argument state can be either ON or OFF.
  2009. Example:    The following example uses the SET PARITYCHECK statement to
  2010.         change the parity check state:
  2011.  
  2012. CLS
  2013. SET COMPORT COM1
  2014. SET BAUDRATE 2400
  2015. SET PARITY EVEN
  2016. SET DATABITS 7
  2017. SET STOPBITS 1
  2018. SET FLOWCONTROL NONE
  2019. SET CARRIERDETECT ON    ' Sets Carrier Detect
  2020. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  2021. SET PARITYCHECK OFF    ' Sets Parity Check
  2022. CLS
  2023. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2024. SET INCRLF OFF    ' Sets Inbound CR->LF
  2025. SET ECHO OFF    ' Sets Local Echo
  2026. SET TEXTWRAP ON    ' Sets Text Wrap
  2027. SET TERMINAL ANSI                
  2028. SET PHONENUMBER "9,123-4567"    
  2029. SET PROTOCOL ZMODEM            
  2030. SET TITLE "Bill's Computer"        
  2031. DIAL            ' Connects
  2032. END
  2033.  
  2034.  
  2035. SET PHONENUMBER Statement
  2036.  
  2037. Action:    Sets the Phone Number to the specified string.
  2038. Syntax:    SET PHONENUMBER phonenumber$
  2039. Remarks:    The argument phonenumber$ can be any string variable, string
  2040.         constant, or string expression that passes validation.  
  2041.           Valid strings cannot contain the alpha characters, the 
  2042.           tilde "~"    character or exceed 25 characters in length.
  2043. Example:    The following example uses the SET PHONENUMBER statement to
  2044.         change the phone number used when dialing:
  2045.  
  2046. CLS
  2047. SET COMPORT COM1
  2048. SET BAUDRATE 2400
  2049. SET PARITY EVEN
  2050. SET DATABITS 7
  2051. SET STOPBITS 1
  2052. SET FLOWCONTROL NONE
  2053. SET CARRIERDETECT ON    ' Sets Carrier Detect
  2054. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  2055. SET PARITYCHECK OFF    ' Sets Parity Check
  2056. CLS
  2057. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2058. SET INCRLF OFF    ' Sets Inbound CR->LF
  2059. SET ECHO OFF    ' Sets Local Echo
  2060. SET TEXTWRAP ON    ' Sets Text Wrap
  2061. SET TERMINAL ANSI                
  2062. SET PHONENUMBER "9,123-4567"    
  2063. SET PROTOCOL ZMODEM            
  2064. SET TITLE "Bill's Computer"        
  2065. DIAL            ' Connects
  2066. END
  2067.  
  2068.  
  2069. SET PROTOCOL Statement
  2070.  
  2071. Action:        Sets the default File Transfer Protocol.
  2072. Syntax:        SET PROTOCOL protocol
  2073. Remarks:    The argument protocol can be ASCII, XMODEM, XMODEMCRC, XMODEM1K,
  2074.          YMODEM, YMODEMB, YMODEMG and ZMODEM.  The SET PROTOCOL statement
  2075.          is not case sensitive.
  2076. Example:    The following example uses the SET PROTOCOL statement to change
  2077.          the default file transfer protocol:
  2078.  
  2079. CLS
  2080. SET COMPORT COM1
  2081. SET BAUDRATE 2400
  2082. SET PARITY EVEN
  2083. SET DATABITS 7
  2084. SET STOPBITS 1
  2085. SET FLOWCONTROL NONE
  2086. SET CARRIERDETECT ON    ' Sets Carrier Detect
  2087. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  2088. SET PARITYCHECK OFF    ' Sets Parity Check
  2089. CLS
  2090. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2091. SET INCRLF OFF    ' Sets Inbound CR->LF
  2092. SET ECHO OFF    ' Sets Local Echo
  2093. SET TEXTWRAP ON    ' Sets Text Wrap
  2094. SET TERMINAL ANSI                
  2095. SET PHONENUMBER "9,123-4567"    
  2096. SET PROTOCOL ZMODEM            
  2097. SET TITLE "Bill's Computer"        
  2098. DIAL            ' Connects
  2099. END
  2100.  
  2101.  
  2102. SET STOPBITS Statement
  2103.  
  2104. Action:        Sets the Stop Bits option.
  2105. Syntax:        SET STOPBITS stopbits
  2106. Remarks:    The argument stopbits can be 1 or 2.
  2107. Example:    The following example uses the SET STOPBITS statement to change
  2108.          the stop bits:
  2109.  
  2110. CLS
  2111. SET COMPORT COM1
  2112. SET BAUDRATE 2400
  2113. SET PARITY EVEN
  2114. SET DATABITS 7
  2115. SET STOPBITS 1
  2116. SET FLOWCONTROL NONE
  2117. SET CARRIERDETECT ON    ' Sets Carrier Detect
  2118. SET LOCKBAUDRATE OFF    ' Sets Lock Baud Rate
  2119. SET PARITYCHECK OFF    ' Sets Parity Check
  2120. CLS
  2121. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2122. SET INCRLF OFF    ' Sets Inbound CR->LF
  2123. SET ECHO OFF    ' Sets Local Echo
  2124. SET TEXTWRAP ON    ' Sets Text Wrap
  2125. SET TERMINAL ANSI                
  2126. SET PHONENUMBER "9,123-4567"    
  2127. SET PROTOCOL ZMODEM            
  2128. SET TITLE "Bill's Computer"        
  2129. DIAL            ' Connects
  2130. END
  2131.  
  2132.  
  2133. SET TERMINAL Statement
  2134.  
  2135. Action:        Sets the Terminal Type.
  2136. Syntax:        SET TERMINAL terminaltype
  2137. Remarks:    The argument terminaltype can be ANSI, TTY and VT100.  The 
  2138.           SET TERMINAL statement is not case sensitive.
  2139. Example:    The following example uses the SET TERMINAL statement to change 
  2140.         the terminal type:
  2141.  
  2142. CLS
  2143. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2144. SET INCRLF OFF    ' Sets Inbound CR->LF
  2145. SET ECHO OFF    ' Sets Local Echo
  2146. SET TEXTWRAP ON    ' Sets Text Wrap
  2147. SET TERMINAL ANSI                
  2148. SET PHONENUMBER "9,123-4567"    
  2149. SET PROTOCOL ZMODEM            
  2150. SET TITLE "Bill's Computer"        
  2151. DIAL            ' Connects
  2152. END
  2153.  
  2154.  
  2155. SET TEXTWRAP Statement
  2156.  
  2157. Action:        Sets the Text Wrap state.
  2158. Syntax:        SET TEXTWRAP state
  2159. Remarks:    The argument state can be either ON or OFF.
  2160. Example:    The following example uses the SET TEXTWRAP statement to change
  2161.          the text wrap state:
  2162.  
  2163. CLS
  2164. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2165. SET INCRLF OFF    ' Sets Inbound CR->LF
  2166. SET ECHO OFF    ' Sets Local Echo
  2167. SET TEXTWRAP ON    ' Sets Text Wrap
  2168. SET TERMINAL ANSI                
  2169. SET PHONENUMBER "9,123-4567"    
  2170. SET PROTOCOL ZMODEM            
  2171. SET TITLE "Bill's Computer"        
  2172. DIAL            ' Connects
  2173. END
  2174.  
  2175.  
  2176. SET TITLE Statement
  2177.  
  2178. Action:        Sets the optional Title to the specified string.
  2179. Syntax:        SET TITLE title$
  2180. Remarks:    The argument title$ can be any string variable, string constant, 
  2181.          or string expression that passes validation.  Valid strings
  2182.         cannot contain the tilde "~" character or exceed 25 characters
  2183.         in length.
  2184. Example:    The following example uses the SET TITLE statement to
  2185.         change the caption bar:
  2186.  
  2187. CLS
  2188. SET OUTCRLF OFF    ' Sets Outbound CR->LF
  2189. SET INCRLF OFF    ' Sets Inbound CR->LF
  2190. SET ECHO OFF    ' Sets Local Echo
  2191. SET TEXTWRAP ON    ' Sets Text Wrap
  2192. SET TERMINAL ANSI                
  2193. SET PHONENUMBER "9,123-4567"    
  2194. SET PROTOCOL ZMODEM            
  2195. SET TITLE "Bill's Computer"        
  2196. DIAL            ' Connects
  2197. END
  2198.  
  2199.  
  2200. SLEEP Statement
  2201.  
  2202. Action:        Suspends the execution of the running script for a specified
  2203.              period of time.
  2204. Syntax:        SLEEP seconds
  2205. Remarks:    The argument seconds determines the number of seconds to suspend
  2206.          the script.
  2207. Example:    The following example uses the SLEEP statement to    suspend execution 
  2208.           for ten seconds.
  2209.  
  2210. CLS
  2211. RPRINT "Taking a ten second nap..."
  2212. SLEEP 10                    ' Pause 10 seconds.
  2213. RPRINT "Awake!"
  2214. END
  2215. STRING Function
  2216. Action:        Returns the string equivalent to a numeric value.
  2217. Syntax:        STRING(numericexpression)
  2218. Remarks:    The argument numericexpression can be any numeric variable,
  2219.         numeric constant, or numeric expression.
  2220. Example:    The following example uses Scripting
  2221.         the STRING function to convert a numeric value to a string:
  2222.  
  2223. ' Prints the value of i
  2224. FOR i = 1 TO 10
  2225.     output$ = STRING(i)
  2226.     RPRINT output$ + "^M"
  2227. NEXT
  2228. END
  2229.  
  2230.  
  2231. UPPER Function
  2232.  
  2233. Action:        Returns a string with all letters in upper case.
  2234. Syntax:        UPPER(stringexpression$)
  2235. Remarks:    The argument stringexpression$ can be any string variable,
  2236.         string constant, or string expression.  Both the LOWER and UPPER
  2237.          functions are useful when making string comparisons.
  2238. Example:    The following example uses the UPPER function to convert a
  2239.         string to upper case:
  2240.  
  2241. FIRST$ = "John"        ' First Name
  2242. LAST$  = "Doe"        ' Last Name
  2243. INPUT "Enter Password:", PW$ USING SUPRESS
  2244. WAITFOR "First Name-> "
  2245. RPRINT FIRST$
  2246. RPRINT "^M"
  2247. WAITFOR "Last Name-> "
  2248. RPRINT LAST$
  2249. RPRINT "^M"
  2250. WAITFOR "Password-> "
  2251. INPUT "Enter Password:", PW$ USING SUPRESS
  2252. PW$  = UPPER(PW$)    
  2253. RPRINT PW$
  2254. RPRINT "^M"
  2255. MPRINT "Log-on Complete!"
  2256. CLS
  2257. END
  2258.  
  2259.  
  2260. VAL Function
  2261.  
  2262. Action:    Returns the numeric value for a string expression.
  2263. Syntax:    VAL(stringexpression$)
  2264. Remarks:    The argument stringexpression$ can be any string variable,
  2265.         string constant, or string expression.  
  2266. Example:    The following example uses the VAL function to convert a string
  2267.          to a numeric value :
  2268.  
  2269. INPUT "Enter a number:", value$
  2270. val = VAL(value$)
  2271. val = val + 100
  2272. RPRINT STRING(VAL)
  2273. END
  2274.  
  2275.  
  2276. WAITFOR Statement
  2277.  
  2278. Action:    Suspends the execution of the running script until a specified 
  2279.           string is received from the remote computer.
  2280. Syntax:    WAITFOR stringexpression$
  2281. Remarks:    The argument stringexpression$ can be any string variable,
  2282.         string constant, or string expression.
  2283. Example:    The following example is a log on script that uses the WAITFOR
  2284.         statement:
  2285.  
  2286. WAITFOR "Enter FIRST name: "
  2287. RPRINT "John^M"        ' Send First Name
  2288. WAITFOR "Enter LAST name: "
  2289. RPRINT "Doe^M"        ' Send Last Name
  2290. WAITFOR "Enter Password: "
  2291. RPRINT "PASSWORD^M"        ' Send Password
  2292. CLS                    ' Clear the screen
  2293. MPRINT "Log-on Complete!"
  2294. BEEP            ' Log on complete
  2295. END
  2296.  
  2297.  
  2298. Command Summary
  2299. Here is a description of every command included in MicroLink.  
  2300.  
  2301. File Menu
  2302. The print command will be disabled (gray) whenever the contents of the 
  2303. scrollback buffer are empty.
  2304.  
  2305. Directory Command
  2306.  
  2307. Builds the Directory database file.
  2308. To build a listing of directory entries, perform the following steps:
  2309.  
  2310. 1.    Choose File, then choose Directory.
  2311.  
  2312. To Add a record to the directory listing, do the following:
  2313.  
  2314. 2.    Set the phone number and the file transfer protocol. The file transfer 
  2315.      protocol may need to be configured as appropriate for your modem.  
  2316.      The port and terminal settings should be changed as necessary by clicking 
  2317.      on the current port or terminal settings to display the port or 
  2318.      terminal selections.
  2319. 3.    Select the Add button.  Enter the name of the entry on the title field 
  2320.      of the Add Record dialog box.
  2321. 4.    Choose OK to add the entry to your directory listing.
  2322.  
  2323. To Change an entry, do the following:
  2324.  
  2325. 2.    Select the entry to be changed.
  2326. 3.    Make any necessary changes to the entry, then select the Change button.
  2327.  
  2328. To Delete an entry, do the following:
  2329.  
  2330. 2.    Select the entry to be deleted.
  2331. 3.    Select the Delete button.
  2332.  
  2333. The directory file used is the one which you have chosen in the Preferences 
  2334. dialog box.
  2335.  
  2336. If you make changes to an entry thru Settings and then choose Directory, you 
  2337. will be prompted with the message "Record has been changed.  Update record?"
  2338. By choosing Yes, the record will be updated in your Directory listing. 
  2339. If you make changes to the title of an entry thru Settings and then choose 
  2340. Directory, you will be prompted with the message "(Entry) does not exist.  
  2341. Add record to file?".  By choosing Yes, the record will be added to your 
  2342. Directory listing. 
  2343. After selecting an entry, you may select the Dial button to immediately begin 
  2344. the dialing process.
  2345.  
  2346. Save Configuration Command
  2347.  
  2348. To save your settings to MicroLink's initialization file, select Save 
  2349. Configuration.  This option performs the same function as the Save Changes 
  2350. option that is located on the Exit dialog box.
  2351.  
  2352. Print Command
  2353.  
  2354. Prints the contents of the scrollback buffer.
  2355. To print the current screen or the entire scrollback buffer, perform the 
  2356. following steps:
  2357.  
  2358. 1.    Choose File, then choose Print or select the Print button from the Tools
  2359.      Bar.
  2360. 2.    Select either Current Screen or Entire Buffer. 
  2361. 3.    Choose OK to begin printing.
  2362.  
  2363. To print a selected block of text, perform the following steps:
  2364.  
  2365. 1.    Scroll thru the session buffer to bring the text you want to copy into 
  2366.     view.
  2367. 2.    Using the mouse, move to the upper left hand corner of the block and
  2368.     press and hold the left mouse button down.
  2369. 3.    Drag the mouse to the lower right hand corner of the block.  The text
  2370.     that appears within the block will become inverted.
  2371. 4.    Choose File, then choose Print or select the Print button from the Tools
  2372.      Bar.  The Selected Text option will be selected by default.
  2373. 5.    Choose OK to begin printing.
  2374.  
  2375. You may cancel the print command at any time by pressing the Escape key.
  2376.  
  2377. Printer Setup Command
  2378. Configures the default printer used by MicroLink.
  2379.  
  2380. To select the default printer used by MicroLink and configure the printer's 
  2381. settings, perform the following steps:
  2382.  
  2383. 1.    Choose File, then choose Printer Setup.
  2384. 2.    Select the printer MicroLink will use. 
  2385. 3.    Push the Setup button if the printer's settings need to be altered.
  2386. 4.    Choose OK to accept changes.
  2387.  
  2388. Exit Command
  2389. Closes the MicroLink Window.
  2390.  
  2391. When you are finished with a MicroLink session, you should exit MicroLink 
  2392. properly.  The steps to correctly exit MicroLink appear below:
  2393.  
  2394. 1.    Choose Exit from the file menu of the MicroLink window.  After selecting
  2395.      this option, MicroLink will automatically disconnect you from any 
  2396.     computer you may be currently connected to.
  2397. 2.    Set the Save Changes box if you want MicroLink to remember your current
  2398.      settings and screen location when you quit.
  2399. 3.    Select OK.
  2400.  
  2401. MicroLink will automatically disconnect if you are connected to a remote 
  2402. computer.
  2403.  
  2404. Edit Menu
  2405.  
  2406. The Copy command in the Edit menu is disabled (gray) until you have selected 
  2407. some text.  The Paste command is disabled until you have an active session 
  2408. and their is some text in the Clipboard 
  2409.  
  2410. Copy Command. 
  2411. Copies selected text to the Clipboard.
  2412.  
  2413. To copy the contents of a marked block to the clipboard, perform the following 
  2414. steps:
  2415.  
  2416. 1.    Scroll thru session buffer to bring the text you want to copy into view.
  2417. 2.    Using the mouse, move to the upper left hand corner of the block and
  2418.     press and hold the left mouse button down.
  2419. 3.    Drag the mouse to the lower right hand corner of the block.  The text
  2420.     that appears within the block will become inverted.
  2421. 4.    Choose Edit, then choose Copy  or select the Copy button from the Tools
  2422.      Bar.
  2423.  
  2424. Paste Command
  2425. Pastes text from the Clipboard.
  2426.  
  2427. To copy the contents of the Clipboard to the remote computer choose Edit, 
  2428. then choose Paste or select the Paste button from the Tools Bar.  
  2429. MicroLink will then begin transmitting the contents of the file to the 
  2430. remote computer.  You may cancel the paste command at any time by pressing 
  2431. the Escape key.
  2432.  
  2433. Copy To Command
  2434. Copies selected text to a file.
  2435.  
  2436. To create a file and copy the contents of a marked block to it, perform the 
  2437. following steps:
  2438.  
  2439. 1.    Scroll thru session buffer to bring the text you want to copy into view.
  2440. 2.    Using the mouse, move to the upper left hand corner of the block and
  2441.     press and hold the left mouse button down.
  2442. 3.    Drag the mouse to the lower right hand corner of the block.  The text
  2443.     that appears within the block will become inverted.
  2444. 4.    Choose Edit, then choose Copy To.
  2445. 5.    Type or select the name of the file you want to copy to.  If the target
  2446.      directory is not the current directory, either type the directory name
  2447.      in front of the filename, or select the directory from the Directories
  2448.     box.
  2449. 6.    Choose OK to begin copying to the file.
  2450.  
  2451. If the file already exists, MicroLink will display a dialog box giving you the 
  2452. option to cancel the operation or erase the contents of the file.  Selecting 
  2453. OK will instruct MicroLink to destroy the contents of the current file.
  2454.  
  2455. Paste From Command
  2456. Pastes the contents of a file.
  2457.  
  2458. To open a file and copy its contents to the remote computer, perform the 
  2459. following steps:
  2460.  
  2461. 1.    Choose Edit, then choose Paste From.
  2462. 2.    Type or select the name of the file you want to paste from.  If the
  2463.     document is not listed in the current directory, either type the
  2464.     directory name in front of the document name, or select the directory
  2465.      in the Directories box.
  2466. 3.    Choose OK to begin pasting the file.
  2467.  
  2468. MicroLink will then begin transmitting the contents of the file to the remote 
  2469. computer.  You may cancel the paste command at any time by pressing the 
  2470. Escape key.
  2471.  
  2472. Session Menu
  2473.  
  2474. Some Notes On Dialing
  2475.  
  2476. Since proper initialization takes time, it is recommended that you set the 
  2477. Quick Initialization option, located in the Preference dialog box.
  2478. MicroLink does not automatically restore itself on the screen after background 
  2479. processing is complete.  To enable restoration check Return From Iconic, 
  2480. located in the Preferences dialog box.
  2481. When MicroLink is not connected to a com port the icon is the comet.  
  2482. Once MicroLink has open a com port, the icon changes to a modem.
  2483.  
  2484. Dial Command
  2485.  
  2486. Connect to a remote computer.
  2487.  
  2488. To connect MicroLink to a remote computer choose Session, then choose Dial 
  2489. or select the Dial button from the Tools Bar.  The Lights Bar will be updated 
  2490. indicating that MicroLink will first initialize the modem and then attempt to 
  2491. dial and connect to the remote computer.
  2492. If MicroLink is unable to properly initialize the modem, dialing will fail.  
  2493. After the modem initialization completes, MicroLink will display a dialog box 
  2494. indicating the title of the remote computer it is dialing; its phone number; 
  2495. the number of seconds left until MicroLink issues a timeout; the remaining 
  2496. number of times MicroLink will attempt to connect to the remote computer; and 
  2497. the last error that has occurred.
  2498. You may cancel at any time by pressing the Escape key or selecting the Cancel 
  2499. button.  Selecting the Background button will minimize MicroLink and enter 
  2500. background processing.
  2501.  
  2502. Batch Dial Command
  2503. Builds a list of Directory records to dial.
  2504.  
  2505. To build a batch dialing list, perform the following steps:
  2506.  
  2507. 1.    Choose Session, then choose Batch Dial.
  2508. 2.    Select the name of the directory records you wish to use by marking the
  2509.      appropriate entries.  When you have finished marking the selections 
  2510.     select the Add button.
  2511.     To remove a file you have added to the Selected list, mark the entries 
  2512.     and select the Delete button.
  2513. 3.    Check the Continuous Loop, Quick Initialization and Override Redial
  2514.     options as desired.  If you choose to temporarily override the redial
  2515.     value you have entered in Preferences, you must enter the new redial
  2516.     value.
  2517. 4.    Choose OK to begin the batch dialing process.
  2518.  
  2519. The Continuous Loop option indicates whether or not MicroLink will repeat its 
  2520. attempts to connect with every entry selected until they have all been 
  2521. connected to.  If you do not select this option MicroLink will end the batch 
  2522. dialing process after it connects to any of the entries you have selected.
  2523. The Quick Initialization option indicates whether or not MicroLink should 
  2524. bypass the modem initialization process after the first initialization has 
  2525. been completed.  
  2526. The Redial value indicates the number of times MicroLink will attempt to retry 
  2527. to connect to the remote computer.  The range is from 0 to 999.  
  2528. The Lights Bar will be updated indicating that MicroLink will first initialize 
  2529. the modem and then attempt to dial and connect to the remote computer.
  2530. If MicroLink is unable to properly initialize the modem, dialing will fail.  
  2531. After the modem initialization completes, MicroLink will display a dialog box 
  2532. indicating the title of the remote computer it is dialing; its phone number; 
  2533. the number of seconds left until MicroLink issues a timeout; the remaining 
  2534. number of times MicroLink will attempt to connect to the remote computer; and 
  2535. the last error that has occurred.
  2536.  
  2537. Auto Answer Command
  2538. Sets MicroLink into a host mode.
  2539.  
  2540. To configure MicroLink to automatically answer the phone choose Session, 
  2541. then choose Auto Answer or select the Auto Answer button from the Tools Bar.  
  2542. The Lights Bar will be updated indicating that MicroLink will first initialize 
  2543. the modem and then attempt to enter auto answer mode.
  2544. If MicroLink is unable to properly initialize the modem, dialing will fail.  
  2545. After the modem initialization completes, MicroLink will display a dialog box 
  2546. indicating that MicroLink has entered auto answer mode.
  2547. You may cancel at any time by pressing the Escape key or selecting the Cancel 
  2548. button.  Selecting the Background button will minimize MicroLink and enter 
  2549. background processing.
  2550.  
  2551. Connect Local Command
  2552. Re-opens the COM port to allow you to enter commands directly.
  2553.  
  2554. To bypass any modem initialization and open the communications port choose 
  2555. Session, then choose Connect Local or select the Connect Local button from the 
  2556. Tools Bar.  Once MicroLink has opened the communications port you will be able 
  2557. to enter modem commands and control the modem directly.
  2558.  
  2559. Hang Up Command
  2560. Disconnects MicroLink from the remote computer.
  2561.  
  2562. To disconnect from the remote computer choose Session, then choose Hang Up or 
  2563. select the Hang Up button from the Tools Bar.
  2564. If Carrier Detect is enabled, MicroLink automatically performs a hang up once 
  2565. you have logged off from the remote computer and the carrier is lost .  To 
  2566. enable carrier detect check Carrier Detect , located in the Session dialog box.
  2567.  
  2568.  
  2569. Open Log Command
  2570. To open an existing or creates a new log file, perform the following steps:
  2571.  
  2572. 1.    Choose Session, then choose Open or select the Open button from the
  2573.     Tools Bar.
  2574. 2.    Type or select the name of the file you want to log to.  If the target
  2575.     directory is not the current directory, either type the directory name
  2576.     in front of the log name or select the directory in the Directories box.
  2577. 3.    Choose OK to open the log file.
  2578.  
  2579. If the file already exist MicroLink will display a dialog box giving you the 
  2580. option of canceling the operation, appending the file,  or erasing the contents
  2581. of the file.  Selecting No when asked to truncate the file will instruct 
  2582. MicroLink to preserve the contents of the selected log file.  Selecting Yes 
  2583. will instruct MicroLink to destroy the contents of the current file.  MicroLink
  2584. will begin echoing every character received to the selected file.  The Status 
  2585. Bar will be updated to indicate that MicroLink is logging characters to the 
  2586. file.  
  2587.  
  2588. At any time during logging you may temporarily stop the logging of characters 
  2589. by selecting Hold.  To resume logging select Hold again.  To close the log file
  2590. permanently, select Close.
  2591.  
  2592. Hold Command
  2593. Stops/resumes the logging of characters.
  2594.  
  2595. To temporarily stop/resume the echoing of characters to a log file choose 
  2596. Session, then choose Hold or select the Hold button from the Tools Bar.  
  2597. The Status Bar will be updated to indicate that MicroLink is either logging or 
  2598. temporarily holding from logging characters to the file.
  2599.  
  2600. Close Command
  2601. Closes an open log file.
  2602.  
  2603. To close an open log file choose Session, then choose Close, or select the 
  2604. Close button from the Tools Bar.  The Status Bar will be updated to indicate 
  2605. that MicroLink has closed the log file.
  2606.  
  2607. Send File Command
  2608. Sends a file of group of files to the remote computer.
  2609.  
  2610. To send a file to the remote computer, perform the following steps:
  2611.  
  2612. 1.    Choose Session, then choose Send or  select the Send button from the 
  2613.     Tools Bar.
  2614.     If you have Prompts enabled, via the Preferences dialog box:
  2615. 2.    Select the protocol you want to use.
  2616.  
  2617. If you have selected ASCII, X modem, or Y Modem:
  2618.  
  2619. 3.    Type the name of the file you want to send.  If the source directory is 
  2620.     not the current directory, either type the directory name in front of
  2621.     the log name, or select the directory in the Directories box.
  2622. 4.    Choose OK to begin sending the file.
  2623.  
  2624. If you have selected Y modem G, Y modem Batch, or Z modem:
  2625.  
  2626. 3.    Select the name of the file(s) you wish to send by first choosing the
  2627.     directory where the file(s) reside and then marking the appropriate
  2628.     file(s).  When you have finished marking the selections from that
  2629.     directory, select the Add button.  You may then repeat this process thru
  2630.      the remaining directories.
  2631.     To remove a file you have added to the Selected Files list, mark the
  2632.     file(s) and select the Delete button.
  2633. 4.    Choose OK to begin sending the file(s).
  2634.  
  2635. If MicroLink is unable to synchronize properly with the remote computer, the 
  2636. file transfer will fail.  After the initialization is complete, MicroLink 
  2637. will display a dialog box indicating the filename of the sending file, the 
  2638. estimated time remaining to complete the file transfer, the time that has 
  2639. elapsed since the file transfer was initiated, and the last error that has 
  2640. occurred.
  2641. You may cancel sending the file at any time by pressing the Escape key or 
  2642. selecting the Cancel button.  Selecting the Background button will minimize 
  2643. MicroLink and enter background processing.
  2644.  
  2645. Receive File Command
  2646. Receives a file or group of files from the remote computer.
  2647.  
  2648. To receive a file from the remote computer, perform the following steps:
  2649.  
  2650. 1.    Choose Session, then choose Receive or  select the Receive button from
  2651.     the Tools Bar.
  2652.  
  2653. If you have Prompts enabled, via the Preferences dialog box:
  2654.  
  2655. 2.    Select the protocol you want to use.
  2656.  
  2657. If you have selected ASCII, X modem, or Y Modem:
  2658.  
  2659. 3.    Type the name of the file you want to receive.  If the target directory
  2660.      is not the current directory, either type the directory name in front of
  2661.      the log name, or select the directory in the Directories box.
  2662. 4.    Choose OK to begin receiving the file.
  2663.  
  2664. If you have selected Y modem G, Y modem Batch, or Z modem:
  2665.  
  2666. 3.    Type the complete pathname where the receiving files are to be placed.
  2667. 4.    Choose OK to begin receiving the file.
  2668.  
  2669. If MicroLink is unable to synchronize properly with the remote computer, the 
  2670. file transfer will fail.  After the initialization is complete, MicroLink will 
  2671. display a dialog box indicating the filename of the receiving file, the 
  2672. estimated time remaining to complete the file transfer, the time that has 
  2673. elapsed since the file transfer was initiated, and the last error that has 
  2674. occurred.  With Y modem G, Y modem Batch, or Z modem, the total size of the 
  2675. file to be received will be known and the thermometer will be active.
  2676. You may cancel receiving the file at any time by pressing the Escape key or 
  2677. selecting the Cancel button.  Selecting the Background button will minimize 
  2678. MicroLink and enter background processing.
  2679.  
  2680. Settings Menu
  2681. To save your settings to MicroLink's initialization file, select the Save 
  2682. Changes checkbox when you exit MicroLink.  None of the text fields allow the
  2683. tilde character "~" to be entered, as it is reserved.
  2684.  
  2685. The Tool Bar is designed to automatically wrap the buttons and expand the 
  2686. height of the Tool Bar to ensure that every button is visible on the screen.  
  2687. As a result, the session window may become reduced in size.  If this is 
  2688. undesirable, either expand the size of the application window or reduce the 
  2689. number of buttons that appear on the Tool Bar.
  2690.  
  2691. Modem Command
  2692. Sets the Modem settings.
  2693.  
  2694. To configure the Modem settings including Modem Type, Line Type, Modem Volume, 
  2695. Initialization String, and Dialing Prefix, perform the following steps:
  2696.  
  2697. 1.    Choose Settings, then choose Modem.
  2698. 2.    Select the Modem Type, Line Type and Modem Volume.
  2699. 3.    Enter the Initialization String and Dialing Prefix.
  2700. 4.    Choose OK to accept these changes.
  2701.  
  2702. The Initialization String allows you to add additional initialization strings 
  2703. to be sent to the modem.  Enter initialization strings without the AT prefix, 
  2704. as this prefix is already included.  DP, DT, E, E0, L, M, Q, S1, S7 and Z 
  2705. commands cannot be included in the initialization string as these codes are 
  2706. used internally. 
  2707.  
  2708. The Dialing Prefix allows you to insert additional characters in front on the 
  2709. phone number.  Codes such as "*70" for call waiting and "9," for business 
  2710. PBX's should be placed here.
  2711.  
  2712. Paths Command
  2713. Sets the default file paths.
  2714.  
  2715. To set the default file path and directory used by MicroLink for transferring 
  2716. files, directory files, script files, and log files, perform the following 
  2717. steps:
  2718.  
  2719. 1.    Choose Settings, then choose Paths.
  2720. 2.    Type the complete pathname including the drive letter, such as
  2721.      "C:\MYSUBDIR", for each pathname option.
  2722. 3.    Choose OK to accept changes.
  2723.  
  2724. If necessary MicroLink will automatically attempt to create a subdirectory 
  2725. when verifying the path entered.
  2726.  
  2727. Preferences Command
  2728. Sets the default user preferences.
  2729.  
  2730. To set the user Preferences including the Redial Count, Timeout value, 
  2731. Pause value, default Directory filename, Delete Partial File option, 
  2732. Prompts option, Elapsed Time Clock option, Return from Iconic option, 
  2733. Quick Initialization option and Warning Beeps option, perform the following 
  2734. steps:
  2735.  
  2736. 1.    Choose Settings, then choose Preferences.
  2737. 2.    Enter the Redial Count, Timeout value and Pause value.
  2738. 3.    Enter the Directory filename or select the Directory button to display 
  2739.      a listing of available directory files.
  2740. 4.    Check the Delete Partial File, Prompts, Elapsed Time Clock, Return from
  2741.      Iconic, Quick Initialization and Warning Beeps options.
  2742. 5.    Choose OK to accept these changes.
  2743.  
  2744. The Redial value indicates the number of times MicroLink will attempt to 
  2745. retry to connect to the remote computer.  The range is from 0 to 99.  
  2746.  
  2747. The Timeout value indicates how long MicroLink instructs the modem to wait to 
  2748. receive a connection.  The range is from 15 to 120 seconds.  
  2749.  
  2750. The Pause value indicates how long MicroLink will wait before redialing.  
  2751. The range is from 0 to 120 seconds.  
  2752.  
  2753. The Directory file must reside in the default directory path.  If the 
  2754. directory file you entered does not exist, MicroLink will attempt to open it 
  2755. as a new directory file.
  2756.  
  2757. The Delete Partial File option indicates whether MicroLink should 
  2758. automatically delete files that are a result of a failed file transfer.
  2759.   
  2760. The Prompts option indicates whether MicroLink should display additional 
  2761. dialog boxes during file transfers.  
  2762.  
  2763. The Elapsed Time Clock option indicates whether MicroLink should display the 
  2764. amount of time you have been connected to the remote computer.  
  2765.  
  2766. The Return from Iconic option indicates whether MicroLink should restore 
  2767. the window to a full screen when it has completed background processing, 
  2768. such as background dialing and background file transfers.  
  2769.  
  2770. The Quick Initialization option indicates whether MicroLink should bypass 
  2771. the modem initialization process after the first initialization has been 
  2772. completed.  
  2773.  
  2774. The Warning Beeps option indicates whether MicroLink should emit audible 
  2775. beeps to indicate connection and completed file transfers.  
  2776.  
  2777. Port Command
  2778. Sets the Port settings.
  2779.  
  2780. To set the Port settings including serial (COM) port, baud rate, data bits, 
  2781. stop bits, flow control, parity, lock baud rate, parity check, and carrier 
  2782. detect, perform the following steps:
  2783.  
  2784. 1.    Choose Settings, then choose Port.
  2785. 2.    Select the serial (COM) port that your modem is attached to and its
  2786.     appropriate communications parameters.
  2787. 3.    Choose OK to accept these changes.
  2788.  
  2789. The Baud Rate group specifies how fast information is transferred through the 
  2790. port; Data Bits specifies the number of data bits in each packet of 
  2791. information; Parity specifies the error-checking method used; Stop Bits 
  2792. specifies the number of stop bits in each packet of information; and Flow 
  2793. Control specifies the method used to control the transmission, or flow,  of 
  2794. data.
  2795.  
  2796. The Lock Baud Rate option indicates whether MicroLink should modify the 
  2797. connection speed between the computer and the modem.  This option should be 
  2798. enabled when using modems that can connect at baud rates that are not 
  2799. supported by Windows.  For example, several US Robotics modems can connect 
  2800. at baud rates of 14,400.  To support a modem at this speed, set the baud rate 
  2801. to 19,200 and enable the Lock Baud Rate option.  
  2802.  
  2803. The Parity Check option indicates whether MicroLink should translate the high 
  2804. order bit on the characters it receives.  
  2805.  
  2806. The Carrier Detect option indicates whether MicroLink should automatically 
  2807. delete the loss of carrier to automatically perform a hang up.  
  2808. It is important that these port options are set correctly.  It is recommended 
  2809. that you refer to the manual from your modem to find its maximum baud rate 
  2810. and that you verify the settings of the remote computer.  If these settings 
  2811. are incorrect a Receiving Framing error may occur.
  2812.  
  2813. Session Command
  2814. Sets the session parameters.
  2815.  
  2816. To set the Session settings including the Session Title, Phone Number, 
  2817. default File Transfer Protocol, and Logon Script, perform the following steps:
  2818.  
  2819. 1.    Choose Settings, then choose Session.
  2820. 2.    Enter the Session Title and Phone Number.
  2821. 3.    Select the default File Transfer Protocol.  If the chosen protocol
  2822.     requires additional settings the Configure button will be enabled. 
  2823.      The Configure button allows you to choose additional settings for the
  2824.     selected protocol.  For example, ZModem allows you to configure send and
  2825.      receive options and enable its auto download feature.
  2826. 4.    Enter the Logon Script filename or select the Logon Script button to
  2827.     display a listing of available scripts.
  2828. 5.    Choose OK to accept these changes.
  2829.  
  2830. The maximum number of characters for the Title is 25. 
  2831. The maximum number of characters for the Phone Number is also 25.  Special 
  2832. dialing codes such as "*70" for call waiting or "9," for business PBXs, 
  2833. should be entered in the dialing prefix option located in the Modem dialog box.
  2834.  
  2835. The default File Transfer Protocol is the method of file transfer you use most 
  2836. often when transferring files to this remote computer.  
  2837.  
  2838. The Logon Script is the script that is automatically invoked once a connection 
  2839. has been made.  This script file must reside in the default scripts 
  2840. directory.  
  2841.  
  2842. Scripts Command
  2843. Sets the optional script buttons.
  2844.  
  2845. To set the Script buttons that appear on the Tool Bar, perform the 
  2846. following steps:
  2847.  
  2848. 1.    Enter the Script filename or select the Script button to display a 
  2849.     listing of available scripts. Script files must reside in the 
  2850.      default script directory.
  2851. 2.    Choose OK to accept changes.
  2852.  
  2853. Terminal Command
  2854. Sets the Terminal settings.
  2855.  
  2856. To set the Terminal settings including Terminal Type, the default Font Name 
  2857. and Size, the Caret Type, scrollback buffer size and dimensions, 
  2858. outbound Carriage Return expands to Carriage Return plus Line Feeds options, 
  2859. Local Echo, and ANSI Color Attributes, perform the following steps:
  2860.  
  2861. 1.    Choose Settings, then choose Terminal.
  2862. 2.    Select the Terminal Type, Font Name, Font Size and Caret Type.
  2863. 3.    Enter the scrollback Buffer size in lines, the number of Rows per page,
  2864.      and the Column width.  
  2865. 4.    Select CR->CR+LF options, Local Echo and ANSI Color Attributes.
  2866. 5.    Choose OK to accept these changes.
  2867.  
  2868. The minimum number of lines in the scrollback Buffer is 50 and the maximum is 
  2869. 2000.  The minimum number of Rows per page is 25, the maximum is 50 and the 
  2870. default setting is 25.  The minimum number of Columns per page is 40, the 
  2871. maximum is 240 and the default setting is 80. 
  2872.  
  2873. If ANSI Color Attributes is set on, MicroLink will translate the colors the 
  2874. remote computer sends thru escape sequences.  Disabling ANSI Color Attributes 
  2875. allows you to set the colors for the session window, thereby overriding the 
  2876. remote color sequences.  You can change the default  colors by selecting the 
  2877. Colors button, which will display the colors dialog box.  For more information 
  2878. on setting colors, see the related topic Colors below.
  2879.  
  2880. MicroLink will display every fixed space typeface that resides in your system.
  2881. However, the list of available font sizes is a standard one and may not 
  2882. represent the actual font sizes you have in your system.  It is designed to 
  2883. accommodate Adobe Type Manager, Bitstreams FaceLift and True Type, which 
  2884. create fonts on the fly.  As a result, typefaces such as terminal may display 
  2885. the same font for various sizes.
  2886.  
  2887. Terminal - Colors Command
  2888. The Terminal - Colors Command sets the screen colors of the session window .
  2889.  
  2890. To select the foreground and background colors used in the session window, 
  2891. perform the following steps:
  2892.  
  2893. 1    Choose Settings, then choose Terminal.  
  2894. 2    After the terminal window is displayed, insure that the ANSI Color
  2895.     Attributes option is not checked.
  2896. 3.    Push the Colors button.  This will display the current color selections.
  2897. 4    Select the colors you want for the foreground and background.
  2898. 5.    Choose OK to accept the these changes.
  2899.  
  2900. Default colors are only used when the ANSI Color Attributes option is not 
  2901. checked.
  2902.  
  2903. Tools Command
  2904. Sets the Tool bar.
  2905.  
  2906. To toggle the display of the various buttons that available on the Tool Bar, 
  2907. perform the following steps:
  2908.  
  2909. 1.    Choose Settings, then choose Tools.
  2910. 2.    Check the buttons that you desire to appear on the Tool Bar. 
  2911. 3.    Choose OK to accept changes.
  2912.  
  2913. Buttons that are not enabled will appear dimmed.  
  2914.  
  2915. Windows Command
  2916. Sets the contents of the MicroLink window.
  2917.  
  2918. To toggle the display of the Status Bar, Tool Bar, and Lights Bar, perform 
  2919. the following steps:
  2920.  
  2921. 1.    Choose Settings, then choose Windows.
  2922. 2.    Check the child windows that you desire to be visible. 
  2923. 3.    Choose OK to accept changes.
  2924.  
  2925. The Tools Bar contains a set of push buttons designed to provide mouse 
  2926. accelerators for various commands.  The push buttons that appear are definable 
  2927. via the Tools command.  
  2928.  
  2929. The Function Key Bar contains a set of push buttons that represent the 
  2930. function keys on your keyboard.  These keys may be programmed via the 
  2931. Function Keys command.
  2932.  
  2933. The Lights Bar is a set of indicators about the active port.  IM indicates 
  2934. modem initialization; HS indicates high speed; AA indicates auto answer mode;
  2935. CD indicates carrier detected; OH indicates off hook; RD indicates receiving 
  2936. data; SD indicates sending data; TR indicates terminal ready; and MR indicates 
  2937. modem ready.  
  2938.  
  2939. The Session Window displays all incoming characters and, optionally, all 
  2940. outgoing characters.  This window is scrollable, retrieving up to 2,000 lines 
  2941. of previously displayed text.  The choice of typeface, font size and fore- 
  2942. and background colors may be customized via the Terminal command.
  2943.  
  2944. The Status Bar is the horizontal bar that appears along the bottom of 
  2945. MicroLink's window.  It contains the current time or connected time; the 
  2946. current port settings; an indicator as to whether a log file is opened, 
  2947. closed, or temporarily on hold; and an indicator as to whether a script file 
  2948. is currently recording, paused or stopped.
  2949.  
  2950. Scripts Menu
  2951. The Pause and Stop commands in the Scripts menu are disabled (gray) until you 
  2952. have started recording a script.
  2953.  
  2954. Record Script
  2955. Automatically creates a script file.
  2956.  
  2957. To create a new script file and echo all commands to it, perform the following 
  2958. steps:
  2959.  
  2960. 1.    Choose Scripts, then choose Record or select the Record button from the
  2961.      Tools Bar.
  2962. 2.    Type or select the name of the file you want to open or create.
  2963. 3.    Choose OK to begin creating the script file.
  2964.  
  2965. If the file already exists, MicroLink will display a dialog box giving you 
  2966. the option to cancel the operation or erase the contents of the file.  
  2967. Selecting OK will instruct MicroLink to destroy the contents of the current 
  2968. file.  MicroLink will begin to echo commands into the script file.  
  2969. The Status Bar will be updated to indicate that MicroLink is recording a 
  2970. script.  
  2971.  
  2972. At any time during recording you may temporarily pause the recording of 
  2973. commands by selecting Pause.  To resume recording select Pause again.  
  2974.  
  2975.  
  2976.  
  2977. Command Summary
  2978.  
  2979. Pause
  2980. Pauses or Resumes the recording of commands to a script file.
  2981. To temporarily stop/resume the recording of commands to a script file, choose 
  2982. Scripts, then choose Pause or select the Pause button from the Tools Bar.  
  2983. The Status Bar will be updated to indicate that MicroLink is either recording 
  2984. or temporarily paused from recording commands to a script file.
  2985.  
  2986. Stop
  2987. Stop the recording of commands to a script file.
  2988. To stop the recording of a script file choose Scripts, then choose Stop or 
  2989. select the Stop button from the Tools Bar.  The Status Bar will be updated 
  2990. to indicate that MicroLink has terminated the recording of a script file.
  2991. To close the script file permanently, select Stop.
  2992.  
  2993. Script Editor
  2994. Opens a script Editor Window.
  2995.  
  2996. To open a Script Editor Window choose Scripts, then choose Script Editor.  
  2997. The Script Editor allows you to create script files or edit scripts files 
  2998. that were automatically created by the Record Script command.  
  2999. Currently this command invokes the Windows Notepad.
  3000.  
  3001. Help Menu
  3002. Index
  3003. Lists all Help topics available for MicroLink.  Index items are arranged 
  3004. alphabetically within each category.
  3005.  
  3006. Notes on using the Help System
  3007. To choose a help topic:
  3008.  
  3009. Mouse    Point to the underlined topic you want to view and click the mouse 
  3010.           button.  When the pointer is over an item you can choose, the 
  3011.           pointer changes to a hand icon.
  3012.  
  3013. Keyboard    Press Tab to move the highlight to the underlined topic you want 
  3014.           to view, and then press Enter.
  3015.  
  3016. Keyboard  Lists the keys used in MicroLink and describes their actions.  
  3017.           For more information on the keys used by MicroLink please see 
  3018.           appendix 2.
  3019.  
  3020. Commands  Lists every command and provides detailed information that is 
  3021.           available when using the online help system.
  3022.  
  3023. Using Help
  3024.  
  3025. This command provides detailed information on learning about Windows.  
  3026. Information is provided to learn how to use Help, gain basic Windows skills 
  3027. and a Windows glossary.
  3028.  
  3029. About MicroLink Command
  3030. Displays copyright notice and the release number of MicroLink.  To view this 
  3031. information choose Help, then choose About.  Select OK to remove the dialog 
  3032. box.
  3033.  
  3034. Errors and Troubleshooting
  3035.  
  3036. If you encounter a problem in communications you have many things to consider.
  3037.  
  3038.     Operating procedures
  3039.     The computer, its display and disk Drives
  3040.     Modem setups
  3041.     The modem itself
  3042.     Cables to and from the modem
  3043.     Power supplies
  3044.     The phone line and connection quality
  3045.     The computer at the other end
  3046.     Operating procedures the other computer expects
  3047.  
  3048. Looking through the following topics may help.
  3049.  
  3050. Modem Is Not Working
  3051. One of the most common problems with modems is having more than one device on 
  3052. the same COM port (even if the other device is not in use.)  This may causes 
  3053. "hanging up" the phone as soon as a call is dialed or answered, or other 
  3054. erratic behavior.
  3055. For an external modem, disconnect it.  The Dial command should show 
  3056. "Modem Initialization Failed" error dialog box.
  3057.  
  3058. Modem Is Dialing Too Fast
  3059. Sometimes modem won't be able to get a CONNECT because it is dialing too fast.
  3060. Make sure MicroLink is not using Touch Tone dialing on a Pulse System.  
  3061. (This is corrected by going to the Setting Menu and changing the Tone Pulse 
  3062. option via the Modem dialog box.)
  3063. Make sure MicroLink is not dialing before it should.  Pauses can be inserted 
  3064. between different parts of a phone number by inserting commas.  Use the "," to 
  3065. insert a pause on a phone number.  For example the phone number "9,123-4567" 
  3066. causes MicroLink to dial a 9, followed by a pause, then the rest of the phone 
  3067. number.
  3068. The time-spacing between touch tones can be a problem on some systems.  Use 
  3069. the Modem command and consider adding S11=150 to the Initialization String. 
  3070. (Replace 150 with whatever value you choose.)
  3071.  
  3072. Modem Needs Resetting
  3073. It is possible to get the modem into a state where it doesn't seem to want to 
  3074. accept your commands.
  3075. The first thing to try is the Dial command.  This may bring an incorrect Port 
  3076. setting to your attention.  It also makes multiple attempts to reset the 
  3077. modem, and usually succeeds.
  3078. If your modem has a reset button, try it.
  3079. Next, try powering down your entire system, then turning it back on.
  3080. In other cases, you may get the modem to respond by issuing one of the 
  3081. reset commands.  First perform the Direct Connect command then try entering 
  3082. one or both of these commands at the session window:
  3083.  
  3084.     "ATZ [Enter]"    Reset modem and revert to switch settings
  3085.     "AT&F [Enter]"    Reset modem and revert to factory defaults (*)
  3086.     * Not valid on some modems.
  3087.  
  3088. Modem Is Not Connected to a Phone
  3089. This is a problem more often than you might think.
  3090. Check your connections.  Make sure the cable that goes to the wall outlet is 
  3091. plugged into the correct jack at the back of the modem.
  3092. Hearing touch tone sounds doesn't necessarily mean the modem is connected. 
  3093. (You need to hear a dial tone first!)
  3094. Try a regular phone on the line and listen for the dial tone.  Then, try 
  3095. listening to the dial tone through the modem's speaker.  This can be done by 
  3096. issuing a Dial command.  You need be check you modem settings and ensure that 
  3097. you have Modem Volume on.  (This option is set via the Modem command.)
  3098.  
  3099. Modem Is Not Waiting Long Enough
  3100. You may have set MicroLink to "give up" before the remote system has answered.
  3101. You can determine the delay needed by calling the remote system (on a voice 
  3102. line) and timing how long it takes between the last digit dialed and the 
  3103. moment you first hear a whistling sound.
  3104. When MicroLink dials, you'll notice a countdown indicator on the dialing 
  3105. dialog box.  If MicroLink hangs up (due to a "NO CONNECT" message) before the 
  3106. remote system has answered, you may need to extend the time MicroLink will 
  3107. wait for a CONNECT message.  You can set this value via the Preferences dialog 
  3108. box.
  3109.  
  3110. Wrong Number
  3111. Make sure the phone number is correct.  Make sure the dialing prefix is 
  3112. correct.  Consider whether or not a 1 and/or area code is required before the 
  3113. number.  Try dialing the number on a voice line.  You should hear a 
  3114. "whistle tone" when the remote computer answers.
  3115.