TIP: Click on subject to list as thread! ANSI
echo: telemate
to: RICK HODGENS
from: MARK BAINTER
date: 1996-01-05 19:48:00
subject: Mail Script

@1:116/30
RH> MB> I use a script.  Actually, I use a script to do my entire mail
RH> MB> transfer  usually. 
RH>Mark, This is something I'd like in my TM directory.  Did you have
RH>to write the script manually, with a text editor,... or can TM
RH>"learn" and compile it?
Well, actually I use learn then a text editor.  When you make learn 
scripts you have to go through the script and remove any references
to the date, time or other variables that might not always be the same.
For example, let's say a bbs's prompt is :
Main Menu - [01/05/96:00:31] 21 MIN Left >>>>>
A little extravagant I'll admit but it suits my purpose.
When you finish the learn script you have to look for the lines that
contain the prompt in the filename.scr file.
Waitfor "enu - [01/05/96:00:31] 21 MIN Left >>>>> "
put "T";
Well, it isn't always going to be 1/5/96 or shortly after midnight
when you call.  and you aren't always going to have 21 min left 
when it reaches this point.  So, you edit out everything to the right
of the last static item.  in this case, the left bracket. 
waitfor "enu - ["
alternately you could take everything to the right of the last variable
item as well.
waitfor " MIN Left >>>>> " 
here is a script I use for a local wildcat system.
;
;Telemate Learn Script generated on  7-25-95
;
; Send Replies, delete old replies, get mail, disconnect, Exit Telemate.
;
Waitfor 0          ; wait until string matched
Set AutoStop,On
Dial "1 2"
Waitfor "What is your first name? "
Put "!Mark Bainter^M",            ; The ! jumps to qwk menu in WildCat! 
Waitfor "ssword? [              ]"
Put "^&^M",                        ;Send password from directory field
FILENAME="C:\cmpqwk\OUT\Betacon.REP"  ;filename to send.
REPLY=0
FILEEXIST FILENAME, REPLY
IF REPLY 
  Waitfor "wcMAIL command? [ ]"   ; if the file is there then send it
  Put "u",
  Delay 50
  Send "Z", FileName
  IF SUCCESS
    DELETE FileName               ; if it completes then delete it.
  ENDIF
ENDIF
Waitfor "wcMAIL command? [ ]"     ; Download new mail.
Put "d",
Waitfor "[Y]"                         ; goodbye when done. 
put "G",
Waitfor "wcMAIL command? [ ]"         ; Hmm.  Don't recall
Put "g",
Waitfor "onds until disconnect: 10"   ; when finished trans.hangup imm.
Put "h",
ExitTelemate                           ; exit telemate.  (duh.  )
I use exit telemate so I can put the whole thing in a nightly run.
(i.e. 
cd\tm
tm betacon
cd\
ndd /c ...
speedisk ...
tbscan ...
etc....
)
Mark Bainter
===
serendipity isn't just when you're overrewarded for reasonable effort,
like when you dig for worms and strike gold.  It's also when you're
cleaning your gun, which you've stupidly forgotten to unload, and it 
goes off unexpectedly, hitting the burgular you didn't see right between 
the eyes
---
. CMPQwk #1.42-R2. UNREGISTERED EVALUATION COPY
---------------
* Origin: The Computer Nut BBS, Elkhart,IN (1:2285/80)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.