home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
1st Canadian Shareware Disc
/
1st_Canadian_Shareware_Disc_1991.ISO
/
comms
/
bbsname
/
bbs.doc
next >
Wrap
Text File
|
1988-12-15
|
4KB
|
125 lines
*********************************
* *
* BBS : A script to write the *
* name of the BBS system into *
* the bottom-line status bar *
* of TELIX 3.10 and later *
* ----------------- *
* W. H. Fisher: Dec 1988 *
* *
*********************************
This is a simple-minded script that may either be directly
executed while in TELIX (you may assign the script to one
of the "Hot Keys" via the Alt-K procedure in TELIX), or it
may be called by one of the "Logon scripts" such as "OPUS.SLT"
or "PCBOARD.SLT".
To assign BBS to a hot-key:
---------------------------
1: Enter the Macro editor in Telix using the Alt-K sequence.
2: Select "E"dit Macro keys, and strike the key you wish to
use to transmit the bbs name.
3: Edit this key's macro to read: @BBS
4: Select "S"ave from the Macro editor menu.
5: Exit the Macro editor ("X").
6: Place the file BBS.SLC in the path indicated as the script
directory under Alt-O, Telix configuration. Unless you
have changed this under the "Filenames and paths" option,
this will be your root directory.
To insert in an "auto-logon" script: (WILDCAT used as an example)
-----------------------------------------------------------------
///////////////////// WILDCAT.SLT ////////////////////////////
// This is a sample script for logging on to a WILDCAT based system.
// The logon questions are handled in any order, and optional prompts are ok.
str user_name[] = "John Smith"; //replace John Smith with your name
//leave the quotes around your name
// Put your name in the above line. The script will get the proper password
// from the dialing directory (Telix puts that password in the script system
// variable called _entry_pass).
// Before using this script for the first time, or when you make a change,
// type 'cs WILDCAT' at the DOS prompt to compile the script for use by Telix.
//////////////////////////////////////////////////////////////////////////////
main()
{
int stat;
int t1,
t2,
t3,
t4;
int tmark;
alarm (1);
if (not _entry_pass) // no pass, so didn't recog. board
{
prints ("Sorry, I don't know the password for this BBS!");
return;
}
t1 = track (" graphics", 1);
t2 = track ("first name?", 1);
t3 = track ("Password", 1);
t4 = track ("Language # to use", 1);
tmark = timer_start (1800); // wait up to 3 minutes for login
// answer any logon questions
while (not time_up (tmark))
{
terminal(); // let Telix process any chars and keys
stat = track_hit (0); // see which (if any) track was hit
if (stat == t1) // say whether we want graphics
{
delay (5);
cputs ("y q^M");
}
else if (stat == t2) // send name
{
cputs (user_name);
cputs ("^M");
}
else if (stat == t3) // send password
{
cputs (_entry_pass);
cputs ("^M");
break; // done with logon
}
else if (stat == t4) // specific to CRS
{
delay (5);
cputs ("^M");
}
}
if (time_up (tmark))
prints ("Logon failed!");
timer_free (tmark); // free timer channel
track_free (0); // and all track channels
calld("bbs"); // put bbs name on status bar
}
The only real change to this script is the very last statement!
That's all there is to it. Please note that use of script "BBS"
will erase both the "ALT-Z for help" and the Terminal Emulation
portions of the TELIX bottom-line status bar; it was felt that
knowing the name of the current BBS is more valuable than this
information, which rarely changes.
TELIX is a copyrighted mark of Exis, Inc., West Hill, Ontario, Canada