The Login Script

In Trumpet Winsock, the login script is what tells Trumpet who to dial, how to set up the modem and how to log in for you. You can customize this script for several reasons, and it is very easy.
In all cases, a line with a '#' character at the beginning of it means it is a 'comment' line; whatever else is on the line will be ignored by trumpet when it reads the script. These may be handy if you wish to leave a note to yourself on some changes you have made.

Select what you want to do:
  1. Disable Call Waiting
  2. Add an initialisation string
  3. Automate your login
 

Disable Call Waiting
If you are talking on the phone and you hear a 'beep' in your ear when someone else is calling, then you have Call Waiting. This will usually cause your modem to drop its connection, and thus is beneficial to turn off. This will only disable call waiting for the duration of the call, and will return to normal once you disconnect.

To turn this off, do the following:

  • Open up Trumpet Winsock.

  • Under the Dialler menu, select Edit Scripts.

  • Click on the script marked login.cmd and click Open. Notepad should open up with the login script in it.
Look for these lines part way down:
	#
	# send phone number
	#
-->	%PNumber = 7444248
	$Name = "Coastnet"
	
	%attempts = 0
	%exit = 0
	repeat
	  %attempts = %attempts + 1
-->	  output atdt%PNumber\r
	until [input 30 CONNECT#] | %attempts = 10
There are two things you need to change, both marked with the '-->'.
First, change the line

   %PNumber = 7444248

to be:

   $PNumber = "70#,7444248"

changing the '%' to a '$' and adding the '"70,' and the end quote.

Second, change the line

   output atdt%PNumber\r

to be:

   output atdt$PNumber\r

Changing the '%' to a '$'.

Close Notepad and save the changes to the script and you're done.

Add an initialization string
Sometimes modems may have difficulty connecting to our servers or simply keeping a reliable connection going. This is not a sign that your modem is dying, but sometimes becomes necessary to keep your modem talking to our modems. To see a list of initialization strings for some modems, have a look here.

To add an initialization string, follow these steps:

  • Open up Trumpet Winsock.

  • Under the Dialler menu, select Edit Scripts.

  • Click on the script marked login.cmd and click Open. Notepad should open up with the login script in it.
Look for these lines near the top:
	#
	# set modem to indicate DCD
	#
	output at&c1\13
	input 10 OK\n
You want to modify the line that reads:

   output at&c1\13

replacing (or modifying) the at&c1 part to contain the init string that you are using. Note: It should always start with an 'at'.
For instance, if you were to use at&f&c1&d2&k3 for an init string (a good common one), the the line would look like this:

   output at&f&c1&d2&k3\13

Automate Your Login
By automating your login, it means that you don't have to type in your username and password each time you connect to the internet. This may be handy if you hate remembering passwords, have switched to logging in via PPP instead of SLIP, or simply want an easier connection. This is easy to do. Just remember that if you change your password, you have to come back here and modify it in the script as well.

To automate your login, do this:

  • Open up Trumpet Winsock.

  • Under the Dialler menu, select Edit Scripts.

  • Click on the script marked login.cmd and click Open. Notepad should open up with the login script in it.
Look for these lines down a ways:
	#
	#  wait for the login prompt
	#
	input 30 login:
	username Enter your $Name user name
	output \u\13
	
	#
	# and the password
	#
	input 30 Password:
	password Enter your password
	output \p\13
Make these changes:
  1. Put a '#' in front of the line that starts with 'username'.
  2. Change the '\u' to be your username.
  3. Put a '#' in front of the line that starts with 'password'
  4. Change the '\p' to be your password.
Basically, if your username was snoopy and your password was redbaron, then your new script would look like this:
	#
	#  wait for the login prompt
	#
	
	input 30 login:
	#username Enter your $Name user name
	output snoopy\13
	
	#
	# and the password
	#
	input 30 Password:
	#password Enter your password
	output redbaron\13

Close Notepad and save the changes, and now you won't have to enter your username and password anymore.

 
Home   |   The Scoop   |   Accounts   |   About Us!    |   Support   |   Coast Watch