|
||||
|
|
||||
|
Creating a Login ScriptHow to create a script to let PC Access for Windows log in to your MLS automatically. You should read this if the standard version of MAESTRO.SCR or
MASTER.SCR does not work with your MLS. This document
is also a good introduction to PC Access script language
programming.
What is a script file?A script file is a text file containing commands in the PC Access for Windows script language. Script files usually have the extension: .SCR. PC Access can run script files when you have the Terminal window open. You can run a script file manually by clicking the Play button at the top of the Terminal window.What is a login script file?You can also tell PC Access for Windows to run a script file automatically when the Terminal window opens. Generally you would do this to have the script file log you in to a remote computer service (such as your MLS). Such a script file is a login script file.How do I tell PC Access for Windows to play a login script file?The advanced version of the MLS Setup window has a Login Script File field. To reach this field:
How do I tell PC Access for Windows to let me log in to my MLS manuallyIf you want to log in to your MLS manually (for example, if your current login script file does not work correctly), you need to delete the contents of the Login Script File field. (See above.)How do I tell if PC Access for Windows is playing a login script file when I call my MLS?When PC Access for Windows is playing a script file, the Play button at the top of the Terminal window is grey and not selectable, and the Stop button is selectable. When PC Access for Windows is not playing a script file, the Stop button is grey and not selectable.How do I learn to write script files?Double-click the PC Access Help icon in your PC Access for Windows group (Windows 3.1x) or folder (Windows 95). This opens a help window displaying the PC Access for Windows Reference Guide. Scroll down in the Contents topic until you see the Script Language heading. Read all the topics under this heading.And, of course, read this document. Does PC Access for Windows have any special script commands that it uses only in login script files?Yes. See the topic Script File Pre-defined Macros in the PC Access for Windows Reference Guide for complete details. The macros of interest to us here are:
How do I create a login script file to use with my MLS?Before you can create a login script, you must write down the steps you perform to log in to your MLS manually. After you dial into your MLS, you wait for the MLS computer to display a prompt, and then you send back a response by typing something and pressing the Enter key. (You only need to write down the last word or two the MLS sends you when it prompts you to send something. However, you must write down everything that you type to the MLS.)Once you write this list of send-wait pairs, you can write a script file that will enable PC Access to play your role as though you were typing in responses to the MLS computer. Consider an example: here is a version of MASTER.SCR, a login script file that works with many (but not all) BORIS Master Systems: // PC-Access Master System Login Script File 05-MAY-95 // // This script performs the login function for Master Systems // // ************************************************************* label START; send "^M"; delay 500; send "^M"; delay 200; send "^M"; delay 200; send "login boris^M"; wait 20000 for "Name:" timeout goto TIMEOUT; send "^!MLS_LOGIN^M"; wait 20000 for "assword" timeout goto TIMEOUT; send "^!MLS_PASSWORD^M"; wait 20000 for "PHOTOCOM/MAC" timeout goto TIMEOUT; send "2^M"; wait 20000 for "Color" timeout goto TIMEOUT; send "2^M"; wait 20000 for "Okidata" timeout goto TIMEOUT; send "1^M"; exit; label TIMEOUT; // Timeout occurred, notify program and end messagebox title "Login Failed" text "You will have to log in manually."; exit;Here is a line-by-line description of MASTER.SCR. As you read the description, you should look up each script command in the PC Access for Windows Reference Guide.
and pressing the Enter key. When you do this manually, the MLS prompts you for your login name. The next script command waits for a portion of the prompt string that the MLS sends you. If the string doesn't arrive within 20 seconds, wait 20000 for "Name:" timeout goto TIMEOUT;
label TIMEOUT; The statement after this label contains a messagebox command. It displays an error. send "^!MLS_LOGIN^M";
Procedure SummaryTo create your own login script file:
C: CD \PCAWIN COPY MASTER.SCR MYSCRIPT.SCR EXITYou may name your login script file anything you like, but use the .SCR extension. That way you will be able to select it with the Pick button on the MLS Setup window. Tell me more about this site. Can't find what you need? See: How to Find It. Contact us Report a problem with this page or suggest an improvement for this page. Last modification date: Friday, March 21, 2003 11:47:29 |
|||
Copyright © 2005 - MFM Software, Inc.
11988 Tramway Drive
Cincinnati, OH 45241
Phone: 513.733.9229
Fax: 513.733.8775
Send comments to webmaster@mfm.com