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
➜ Plugins
➜ Looking for two specific plugins, can't find them.
Looking for two specific plugins, can't find them.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Carpe_Mofo
(2 posts) Bio
|
Date
| Tue 03 Jul 2007 11:05 AM (UTC) |
Message
| I'm looking for a plugin that will play a noise or something similar if a window in mushclient that I have minimized gets output. Also, something that would automatically save all logs to a folder with each time I open a specific world to have it's own log that is named with the world name, a date and time. If these already exist, I haven't been able to find them. And if they don't how hard would it be to learn to code them, as I have no previous knowledge of XML or mushclient plugins. | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #1 on Tue 03 Jul 2007 06:19 PM (UTC) |
Message
| For the logging, you don't need a plugin at all. Just go to the General->logging section in the world configuration window (alt-3) and take a look at the help window. You can set the log file to be something like this:
c:\foo\%N_%Y-%m-%d
That will have the log saved so that if you sort all of the files, they will be grouped by world name, and be in chronological order. |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #2 on Tue 03 Jul 2007 06:35 PM (UTC) |
Message
| I think I figured out the sound one. Have a trigger match everything just match="*", then have the following sent to script:
If GetInfo(238) == 6 then
Sound("ding.wav")
end
This example used Lua, so if you have a different language set for scripting, you will have to change things around a bit to work. http://www.gammon.com.au/scripts/function.php?name=GetInfo for more help with the GetInfo function... there's a LOT in there. |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Carpe_Mofo
(2 posts) Bio
|
Date
| Reply #3 on Thu 05 Jul 2007 09:35 AM (UTC) |
Message
| Thank You! But will the sound one only work on a window in Mushclient I'm not looking at? I don't want it to beep every time something new happens in a window I'm looking at. | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #4 on Thu 05 Jul 2007 05:24 PM (UTC) Amended on Thu 05 Jul 2007 05:27 PM (UTC) by Shaun Biggs
|
Message
| hrm... I ran into an odd problem. I tried making that trigger to test it out, and I can't get it to play a sound. if GetInfo(238) == 3 then Sound("C:\windows\media\ding.wav") end
The above will cause a ding to be played if I run it in the command line, but it will not work if I put it in a trigger. If anyone could explain this, I'd appreciate it.
Figure I might as well post the trigger too.
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="*"
name="testsound"
send_to="12"
sequence="1"
>
<send>if GetInfo(238) == 3 then Sound("C:\\windows\\media\\ding.wav") end</send>
</trigger>
</triggers>
|
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Date
| Reply #5 on Thu 05 Jul 2007 09:19 PM (UTC) |
Message
| A quick test of what GetInfo was actually returning shows that you need to test against 2 (Showminimized).
This works:
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="*"
name="testsound"
send_to="12"
sequence="1"
>
<send>
if GetInfo (238) == 2 then
Sound ("ding.wav")
end
</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #6 on Thu 05 Jul 2007 10:24 PM (UTC) |
Message
| When I was testing it though, I was using a maximized window. I just wanted to make sure that the trigger would work before trying it minimized where I couldn't see errors popping up. GetInfo(238) returned a 3 for maximized, so I tried if GetInfo(238) == 3 then Sound("C:\\\\windows\\\\media\\\\ding.wav") end out in the command window, and it worked. However, the trigger I showed did not work, even though if I put a "Note(GetInfo(238))" in there, it returned 3, which is what I was testing for. |
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.
22,452 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top