optional pause in autoconnect

Posted by Benc on Tue 22 May 2001 08:44 PM — 3 posts, 16,435 views.

#0
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
Australia Forum Administrator #1
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.

#2
That works a treat :)

Cheers
Ben