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.
 Entire forum ➜ MUSHclient ➜ General ➜ Timer to log on and off at specific times

Timer to log on and off at specific times

Posting of new messages is disabled at present.

Refresh page


Posted by Curious   (1 post)  Bio
Date Fri 27 Jul 2007 10:51 PM (UTC)
Message
I'm trying to create a timer that will log me into the world at a specific time, keep me on for a certain period, then disconnect me again.

Every timer I've tried so far just sends to the screen without actually connecting me.

I'm not great with scripting, so any help would be very gratefully received.

Thanks
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #1 on Fri 27 Jul 2007 10:58 PM (UTC)
Message
Check out these two script functions:
http://www.gammon.com.au/scripts/function.php?name=Connect
http://www.gammon.com.au/scripts/function.php?name=Disconnect

Just set up two timers set to go off at a specific time of day. One for connecting, and another for disconnecting.

It is much easier to fight for one's ideals than to live up to them.
Top

Posted by Nick Gammon   Australia  (23,122 posts)  Bio   Forum Administrator
Date Reply #2 on Fri 27 Jul 2007 11:21 PM (UTC)
Message
For the one that connects, make sure you check the box "active when disconnected", or it won't go off.

- Nick Gammon

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

Posted by Cage_fire_2000   USA  (119 posts)  Bio
Date Reply #3 on Fri 27 Jul 2007 11:40 PM (UTC)
Message
The one to disconnect should be ultra easy, I have one myself to disconnect me in the morning by sending QUIT, the only problem might be if you have the Reconnecter Plugin running.
Top

Posted by Shaun Biggs   USA  (644 posts)  Bio
Date Reply #4 on Sat 28 Jul 2007 05:31 AM (UTC)
Message
The version of Reconnecter.xml on the plugin page matches the word "QUIT" in capital letters to actually quit without reconnection. Since this is version 1.0, I think it should work like that for anyone who has downloaded it before. You might have to use Execute( "QUIT" ) instead of Disconnect(), but it will work.

It is much easier to fight for one's ideals than to live up to them.
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.


18,237 views.

Posting of new messages is disabled at present.

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.