; Format of script file
;
; the script file's path must be given in the "Scripts" field of the
; "Config" section of twinsock.ini
;
; lines with ; in column 1 are ignored; otherwise, input is free format
; white space, end-of-line and commas between tokens are ignored
; strings must be enclosed in "" if they contain spaces or commas
; a string consisting of just - or "" is ignored
; " in a string must be preceded by a \
; cr, lf, bs, tab, ff, bel & esc can be had by \r, \n, \b, \t, \f & \a & \e
; null characters are not allowed in strings
;
; strings are limited to 80 characters
; scripts are limited to 40 lines
; lines in the script file are limited to 120 characters
;
; file		= { <record> ... } EOF
; record	= script <params> <script lines>
; params	= <menu string> <accelerator> <accel-shifts> <flags>
; flags		= <system-menu-flag> <disconnect-flag> <quit-flag>
; script-lines	= { <a-script-line> ... }
; a-script-line	= <out-string> <in-string> <time-out>
;
; menu-string is a string used to name the script in the menu(s).
;	a '&' before a character causes it to be underlined and
;	to function as a hot key.
; accelerator is a small integer - the corresponding function key
;	acts as a keyboard accelerator.  0 means no accelerator.
; accel-shifts is the sum of 4 (if control must be pressed),
;	2 (if shift must be pressed) and 1 (if alt must be pressed).
; system-menu-flag is 1 if the script name should appear on the system
;	menu (available when twinsock is minimised).
; disconnect-flag is 1 if tshost should quit before the script begins.
; quit-flag is 1 if twinsock should quit after the script successfully
;	completes.
;
; A script must contain at least one script line.
; The string "script" is reserved and may not be used in a script file.
; after the out-string is sent to the host, twinsock waits until in-string
;	is received, or until time-out seconds have elapsed.
; The maximum time-out allowed is 64 seconds.


Script "FSA Log&in", 9, 0, 0, 0, 0,
	"AT&F2L3&C1&D2\r",	"OK\r\n",		10
	"ATDT555-1212\r",	"ogin: ",		40
	"danny\r",		"assword:",		10
	"mypasswd\r",		"cham danny 1 ]> ",	20
	"tshost\r",		-,			 0

Script "FSA Log&out", 10, 0, 1, 1, 1,
	"",			" ]> ",			10
	"logout\r",		"NO CARRIER\r\n",	30

Script "&Hangup", 6, 0, 0, 0, 0,
	"\r+++",		"OK\r\n",		10
	"ATH0\r",		"OK\r\n",		40

