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
➜ Window Close Action
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Eos
USA (52 posts) Bio
|
| Date
| Fri 29 Mar 2002 02:48 PM (UTC) Amended on Fri 29 Mar 2002 02:50 PM (UTC) by Eos
|
| Message
| It would be nice to have the client send a quit message to the server automatically, if a person closes the window while still connected.
Making this 'quit' string user definable with 'quit' or 'logout' as the default text, in the same manner as the terminal-type is settable, would make it perfect.
(Reasons for this being:
to properly close yourself out of things if you've accidentally clicked the stupid X somehow, or if you do it without thinking to quit, or for the amazing number of people who are too stupid to understand closing the little box doesn't necessarily make you no longer there, not to mention makes it easy to truly quit every mud with a single click, heh) | | Top |
|
| Posted by
| Shadowfyr
USA (1,792 posts) Bio
|
| Date
| Reply #1 on Fri 29 Mar 2002 10:16 PM (UTC) Amended on Fri 29 Mar 2002 10:17 PM (UTC) by Shadowfyr
|
| Message
| Hmm... Assuming that MUSHclient closes the world -*after*- processing a world.close event you could easielly do this by using a script. However considering the number of thing that I have run into that don't work the way I expected... lol
Basically you would need a script like this (assuming you use vbscript):
sub Closing
world.send "quit"
end sub
And then adding 'Closing' to world.close under the script settings. If however it breaks the connection, then processes the event you are out of luck. In any case this is a better way than providing a setting that may inadvertantly get cloned in a new world, where quiting by accident could prove costly. ;) Like the mud I play, where you lose all equipment, including weapons and armor if you log off instead of storing it or going linkdead. Very bad news. :p | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Fri 29 Mar 2002 10:42 PM (UTC) |
| Message
| Surprisingly, perhaps, your suggestion worked. :)
I added a script to the script file
sub onclose
world.send "say Nick is leaving now"
end sub
I then added "onclose" to the script dialog box, to the event "world close".
Then I clicked on the close box (the X) and (watching with another character), saw this:
Nick says, "Nick is leaving now"
Nick has disconnected.
So, just change the world.send to:
world.send "quit"
... and your job is done! |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | 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,080 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top