home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
22
/
TIF_PRO3.ZIP
/
THEINVEN.WAS
< prev
next >
Wrap
Text File
|
1996-05-25
|
2KB
|
90 lines
;The Invention Factory Recorded script.
;By Clayton M.
string szIpaddress
string szGateWay
string szMask
string szDomain
proc main
string szUserName = $Nullstr
string szPassword = $Nullstr
string szStackINI = $Winpath
integer ISPMode
fetch internet logonname szUserName
fetch internet password szPassword
fetch internet protocol ISPMode
addfilename szStackINI "SUPERTCP.INI"
if ISPMode == 0
statmsg "Logging on to The Invention Factory ... Slip"
else
statmsg "Logging on to The Invention Factory ... PPP"
endif
waitfor "Enter Language # to use (Enter)=no change? "
pause 1
if ISPMode == 0
transmit "3^M"
else
transmit "2^M"
endif
waitfor "Do you want graphics (Enter)="
pause 1
transmit "n^M"
waitfor "What is your first name?" 30
pause 1
transmit szUserName
transmit "^M"
waitfor "Is this correct?" 30
pause 1
transmit "Y^M"
waitfor "Password (Dots will echo)?" 30
pause 1
transmit szPassword
transmit "^M"
waitfor "IPDoor" FOREVER
when target 1 "Your_Ipaddress: " call GetTheIp ; 199.183.47.95
when target 2 "My_Ipaddress: " call GetGateway ; 199.183.47.65
when target 3 "Netmask: " call GetMask ; 255.255.255.192
when target 4 "DomainName: " call GetDomain ; factory.com
if ISPMode == 0
waitfor "Enter SLIP mode Now" FOREVER
else
waitfor "Enter PPP mode Now" FOREVER
endif
profilewr szStackINI "kernel" "ipaddress" szIpAddress
profilewr szStackINI "interfaces" "ipaddress1" szIpAddress
profilewr szStackINI "kernel" "ipgateway" szGateWay
profilewr szStackINI "interfaces" "IPSubNetMask1" szMask
profilewr szStackINI "supertcp" "hostname" szDomain
endproc
proc GetTheIp
rget szIpAddress 256 FOREVER
termwrites szIpAddress
endproc
proc GetGateway
rget szGateWay 256 FOREVER
termwrites szGateWay
endproc
proc GetMask
rget szMask 256 FOREVER
termwrites szMask
endproc
proc GetDomain
rget szDomain 256 FOREVER
termwrites szDomain
endproc