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
➜ Plugins
➜ World Events in Plugins
Posting of new messages is disabled at present.
Refresh page
Posted by
| Winter
(1 post) Bio
|
Date
| Mon 24 Nov 2003 07:55 PM (UTC) |
Message
| Hey Folks;
I'm currently building a complex plugin for my MUD, maily for the purpose of a statusline. I could simply use 'SetStatus', but there are problems at some users with the width of that line. So I decided to use the InfoBar. The Problem is, that it does not change between different worlds. Now i tried to solve this problem using OnWorld(Get|Lose)Focus. Goes well. But I don't see a possibility to built this within a plugin, cause the Events of a world can't be save in.
What do you suggest? | Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 10 Feb 2004 10:29 PM (UTC) |
Message
| Version 3.44 of MUSHclient now supports plugin callbacks: OnPluginGetFocus and OnPluginLoseFocus. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Norbert
USA (61 posts) Bio
|
Date
| Reply #2 on Mon 23 Feb 2004 04:29 AM (UTC) |
Message
| Could someone show me an example of how to use OnPluginGetFocus and OnPluginLoseFocus? I haven't been able to get it to work and there is no example in the help files. |
Norbert
-Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens
It's a dumb question... skip it.
| Top |
|
Posted by
| Nick Gammon
Australia (23,122 posts) Bio
Forum Administrator |
Date
| Reply #3 on Mon 23 Feb 2004 08:52 PM (UTC) |
Message
| Well, you would put something like this in your plugin script:
sub OnPluginGetFocus
' do something here
end sub
sub OnPluginLoseFocus
' do something here
end sub
|
- 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.
14,768 views.
Posting of new messages is disabled at present.
Refresh page
top