07.01.2013 Views

The Online World resources handbook

The Online World resources handbook

The Online World resources handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Automatic communication http://home.eunet.no/~presno/bok/16.html<br />

Procomm is a general communications programs. Many other programs, like Qmodem<br />

and Telix, have equivalent capabilities.<br />

When writing a script for auto logon to a new service, your first step is to list the<br />

commands that you believe required. Enter them in a text file (as DOS or ASCII text).<br />

Procomm, Qmodem and Telix let you list your favorite online services in a dialing<br />

directory, and tie these entries to your scripts. Press a key to start the appropriate script<br />

file for automatic access to a service.<br />

This simple PROCOMM script used to work for to access my now defunct bulletin<br />

board in Norway. It assumes that your name is Jens Mikkelsen, and that the secret<br />

password is FOXCROOK4. You'll have to change this before testing.<br />

;<br />

;Script file for auto logon to SHS<br />

;<br />

WAITFOR "our FIRST Name? "<br />

PAUSE 1<br />

TRANSMIT "Jens^M"<br />

WAITFOR "our LAST Name? "<br />

PAUSE 1<br />

TRANSMIT "Mikkelsen^M"<br />

WAITFOR "ots will echo)? "<br />

PAUSE 1<br />

TRANSMIT "foxcrook4^M"<br />

WAITFOR "^JMore (Y),N,NS? "<br />

PAUSE 1<br />

TRANSMIT "n^M"<br />

WAITFOR "^JMore (Y),N,NS? "<br />

PAUSE 1<br />

TRANSMIT "n^M"<br />

WAITFOR "R] to Continue? "<br />

PAUSE 1<br />

TRANSMIT "^M"<br />

<strong>The</strong> commands are different from Trumpet, but easy to understand. Here is an<br />

explanation:<br />

the ";" character at the beginning of a line identifies it as a comment line.<br />

Procomm is to ignore it. We use such lines for notes.<br />

WAITFOR "our FIRST Name? " has Procomm wait for the text string "our FIRST<br />

NAME?." It is a part of the question "What is your first name?"<br />

PAUSE 1 halts the execution of the script file for one second.<br />

TRANSMIT "Jens^M" sends the name "Jens" followed by a RETURN (the code ^M<br />

in Procomm).<br />

WAITFOR "our LAST Name? " makes Procomm wait for the question "What is<br />

your LAST Name?"<br />

<strong>The</strong> script continues like this. In WAITFOR commands, we use part of the text that is<br />

displayed on our screen once the scrolling stops.<br />

Make sure that the search term is unique. It must not appear elsewhere in the text<br />

coming from the host computer. If it does, your name and password may be sent too<br />

early.<br />

You can call the script HORROR.CMD, and attach it to the entry for my board in<br />

your Procomm phone directory. When you call it the next time, Procomm will execute<br />

the commands in the file and "turn the keyboard over to you" when done.<br />

Macros<br />

$ERYH ZH XVHG D VFULSW WR ORJ RQ DXWRPDWLFDOO\ WR D VHUYLFH :KHQ 3URFRPP JLYHV XV<br />

access to the keyboard again, we must continue manually.<br />

What we want to do online varies. Sometimes, we want to read new messages in<br />

conferences. In other cases, the purpose is to check new programs in the file library. If<br />

we find programs of interest, we may want to download them.<br />

Shorthand macros can help you do this faster and safer. For example, one macro<br />

can take you quickly to a conference for new messages. You can make Procomm start<br />

4 of 9 23.11.2009 15:49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!