Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ optional pause in autoconnect

optional pause in autoconnect

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Benc   (3 posts)  Bio
Date Tue 22 May 2001 08:44 PM (UTC)
Message
I'm stuck behind a firewall on a nice fast connection, and use an SSH tunnel to get out to the 'talker' I regularly use. For some reason when I use autoconnect mush seems to fire off the data at the ssh connection (on localhost, so it's fast), before the socket is established the other end, so the server doesn't seem to recieve it.

On this plus side, it's a tribute to mush's stunning speed, but it's mildly annoying, as it means I have to log in manually.

Any chance of a %pause% to stick in the box before %name%?Just 1/10th of a second or so should be enough, but it would certainly make my life easier.

Cheers,
Ben
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 22 May 2001 09:55 PM (UTC)
Message
Will this work for you?

1. Set up scripting if you haven't already. Basically this means enabling it on the scripting configuration screen.

2. Set up a function for "World Connect" called "OnConnect" (ie. type that word into that box).

3. This function will add a timer, eg.


sub OnConnect
World.addtimer "Connect_Timer", 0, 0, 1, "yourname" + vbcrlf + "yourpassword", 5, ""
end sub


You could add this to the exampscript.vbs file, or just make another text file (with the built-in editor, or Notepad) that just contains those 3 lines. This would be your script file.

What it does, is when you connect, adds a timer called "Connect_Timer", which fires in 1 second, and then sends "yourname" <newline> "yourpassword".

The flags are "5" which means enabled, and one-shot - ie. it only does it once then deletes itself.

If it turns out that 1 second it too quick, change the 1 to a 4 or whatever.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Benc   (3 posts)  Bio
Date Reply #2 on Wed 23 May 2001 11:04 AM (UTC)
Message
That works a treat :)

Cheers
Ben
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


15,732 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.