home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
MODEM
/
ACE186B.ZIP
/
CISFORUM.SCR
< prev
next >
Wrap
Text File
|
1994-04-07
|
5KB
|
146 lines
; We can place comments into our scripts. ";" is used as a comment
; character. Text following ";" is a comment.
<DispStr>[AttrOff] <ClrWin>
<DispStr>[BWhi][Blu] <DispText>Intro <DispStr>[AttrOff]
<DispStr>^M^JQ)uit
<DispStr>^M^JAny key continues, or wait 10 seconds^M
<GetKey>10 <if>Q <Goto>@@EndScript
<INITFONREC>CIS (local phoenix 9600)
<FON_NUM>468-0285
<FON_LINECTRL>7E1
<FON_BAUD>19200
<FON_TERM>Av/An
<FON_FLAGS>Macro,DTag,Text,IEMSI, ; I deleted "Cap," from the flags
<ReDials>100 ; This macro gives control over how many
; times to re-dial before giving up.
<FON_REDIAL>
<LocalKeys>On
<OPENCAPTURE>cserve.CAP
; Note: when stacking macros, a space character MUST precede the macro.
<SendStr>^M
<WaitTime>15 ; 15 seconds to timeout (<WaitStr> only)
<WaitStr>Host Name: <SendStr>cis^M
<WaitStr>User ID: <SendStr>75120,3306^M
<WaitStr>Password: <SendStr>password^M
; The following checks for personal messages, "Compuserve Mail".
; waiting for me. I won't have messages waiting every time I log on to
; Compuserve. We need a way for the script to make decisions. If there are
; messages, we can stop and read them, recording them into the already open
; capture file, if no messages, we want to continue to capture the forum, and
; log off.
<Timer0>30 ; Set a timer to 30 seconds
:@@CheckMail ; Label we loop to while checking
<CheckMdm>CompuServe Mail <if>1 <goto>@@PersonalMail
<CheckMdm>messages pending <if>1 <goto>@@PersonalMail
<CheckMdm>SCAn, REAd, <if>1 <goto>@@PersonalMail
<CheckMdm>Enter choice ! <if>1 <goto>@@CompuserveTop
<Timer0> <if>1 <Goto>@@CheckMail ; <if>1 while not timed out
;
; Fall through to the forum on timeout
;
<SendStr>^M
<Goto>@@IBMPRO
;
; Here if we got a hit with <CheckMdm>. <CheckMdm> is not case sensitive.
;
:@@PersonalMail
<WaitTime>10 ; New, faster timeout for <WaitStr>
<OPENCAPTURE>cismail.CAP ; <WaitStr> falls through on timeout
<SendStr>Read^M
<WaitStr># (or ALL)?! <SendStr>all^M
<Timer0>300 ; 5 minutes till timeout, up this if you are popular
:@@ReadMail
<CheckMdm>CR> for more ! <if>1 <SendStr>^M
<CheckMdm>REPly or NEXt! <if>1 <SendStr>Next^M
<CheckMdm>SCAn, REAd, <if>1 <SendStr>^M
<CheckMdm>CR> for more ! <if>1 <SendStr>^M
<CheckMdm>Delete these messages? (Y or N)! <if>1 <goto>@@AfterMail
<Timer0> <if>1 <goto>@@ReadMail
;
; Fall through to here on timeout
;
:@@AfterMail
<SendStr>N^M
<Timer0>60 ; Here we use 2 timers in 2 loops
:@@CompuserveTop
:@@ResetTimer1
<Timer1>10
:@@TenSecondLoop
<CheckMdm>Enter choice ! <if>1 <goto>@@IBMPRO
<CheckMdm>Last page ! <if>1 <SendStr>^M
<Timer1> <if>1 <goto>@@TenSecondLoop
<SendStr>^M
<Timer0> <if>1 <goto>@@ResetTimer1
:@@LogOff
<SendStr>off^M <Delay>5 <SendStr>off^M <Delay>2 <MdmHangup>
:@@IBMPRO
<CLOSECAPTURE>
<SendStr>go IbmPro^M <OPENCAPTURE>ibmpro.CAP
<Delay>7
<SendStr>Read New^M
<MdmStill>10
<CheckMdm>CR> ! <if>1 <SendStr>^M
<CLOSECAPTURE>
; If you want more forums
; you can un-comment the following line
<Goto>@@IBMCOM
<WaitTime>15
<WaitStr>Enter choice ! <SendStr>off^M
<WaitStr>Host Name: <SendStr>off^M
<MdmHangup>
<Goto>@@EndScript
:@@IBMCOM
<SendStr>go IBMCOM^M <OPENCAPTURE>ibmCOM.CAP
<Delay>7
<SendStr>Read New^M
<MdmStill>10
<CheckMdm>CR> ! <if>1 <SendStr>^M
<CLOSECAPTURE>
<WaitTime>15
<WaitStr>Enter choice ! <SendStr>off^M
<WaitStr>Host Name: <SendStr>off^M
<MdmHangup>
:@@EndScript
<ENDS>
{-DATA_AREA-}
{-TEXT_START-}Intro
┌────── Compuserve Forums ───────────────────────────────────────────────────┐
│ │
│ This script calls Compuserve, and captures forums to their respectively │
│ named capture files. The script demonstrates some basic decision making │
│ using <CheckMdm> and <Timer0> macros. The script is capable of capturing │
│ personal mail, if any, and continue on to get the forums. │
│ The script will pause for 10 seconds after it has logged onto Compuserve. │
│ This pause is where we detect for any "Compuserve Mail" that may be │
│ waiting for us. │
│ │
│ You will need to edit the script where the login process sends your │
│ CIS ID and CIS password. │
└────────────────────────────────────────────────────────────────────────────┘
{-TEXT_END-}