[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  How to auto-connect world without interactive prompt
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

How to auto-connect world without interactive prompt

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page


Posted by Zhenzh   China  (44 posts)  [Biography] bio
Date Tue 12 Jun 2018 01:48 PM (UTC)
Message
Each time I start a MCL script, mush always prompt a dilog asking yes/no before doing connecting.

Is it possible to get rid of such interactive prompt?

What I want is the mush can auto connect to the mud server so that I can type my game id.
[Go to top] top

Posted by Nick Gammon   Australia  (21,677 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 12 Jun 2018 10:04 PM (UTC)
Message
Under the Connect menu you can check "Auto Connect" which will automatically connect whenever you open the world file.

If you are disconnected (but the file is open) you can press Ctrl+K to connect (with no dialog).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zhenzh   China  (44 posts)  [Biography] bio
Date Reply #2 on Wed 13 Jun 2018 08:21 AM (UTC)

Amended on Wed 13 Jun 2018 08:22 AM (UTC) by Zhenzh

Message
The connecting menu lists some options for auto-connect with name/passwd. While what I want is just connecting to the mud server without login user id as I'd like to decide which id to be login at the time staring MCL.

The ctrl+k solution is also an interactive operation which depends on manual behavior. It can not be used by automation robot.

Suppose I'm running automation script to do some job in mud game. The mush suddenly disconnected for network issue. How can I get the mush reconnect to the mud server once the network is recovered without manual operation?
[Go to top] top

Posted by Zhenzh   China  (44 posts)  [Biography] bio
Date Reply #3 on Wed 13 Jun 2018 11:56 PM (UTC)
Message
I check the auto-connect and it do works if not plugin used.

But the yes/no dialog will prompt when status bar plugin is enabled.
[Go to top] top

Posted by Nick Gammon   Australia  (21,677 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Thu 14 Jun 2018 05:10 AM (UTC)
Message
There is a reconnector plugin on the plugins page:

http://www.gammon.com.au/plugins/

Basically a plugin can check for a disconnect in the OnPluginDisconnect function, and then do a reconnect. That plugin enables a timer which keeps attempting to reconnect.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zhenzh   China  (44 posts)  [Biography] bio
Date Reply #5 on Thu 14 Jun 2018 04:42 PM (UTC)
Message
Seems the link http://www.mushclient.com/plugins/Reconnecter.xml doesn't work.
I get a blank page after clicking the reconnecter plugin
[Go to top] top

Posted by Nick Gammon   Australia  (21,677 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Sat 16 Jun 2018 06:48 AM (UTC)
Message
It's a plugin file. RH-click and download the XML file to your disk - that is the plugin.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


188 views.

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]