[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]  Miniwindows
. . -> [Subject]  Mini-window for public chatter
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Mini-window for public chatter

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Pages: 1  2  3  4 5  6  7  8  9  

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #45 on Sat 19 Mar 2011 06:24 AM (UTC)
Message
The link Fiendish gave should probably do it for you. Although I would have thought the scroll bar (hardly clutter, really) is handy if an important message scrolls off the top of the window.

- Nick Gammon

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

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #46 on Thu 28 Apr 2011 09:23 PM (UTC)
Message
Is there a way for the mini-window to scroll up/down when using the mouse wheel when it's focused?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #47 on Thu 28 Apr 2011 11:35 PM (UTC)

Amended on Thu 28 Apr 2011 11:36 PM (UTC) by Fiendish

Message
Yes there is. Take a look at the Aardwolf GMCP channel capture plugin I posted not long ago:
https://aardwolfclientpackage.googlecode.com/svn/trunk/MUSHclient/worlds/plugins/aard_channels_fiendish.xml

search for lines containing "wheel_move" to see how it can be done.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #48 on Wed 25 May 2011 07:59 AM (UTC)
Message
is there any way to reset the miniwindow position?

it starts out stuck to the top right corner. As you resize the world window, the miniwindow moves with... But if you move the miniwindow, it remembers where you left it despite resizing the world window. Cool feature... But also a pain when you want the miniwindow back in the corner moving with the world window when you resize it again.

i tried disabling/enabling the plugin, as well as reinstalling the plugin. neither worked.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #49 on Wed 25 May 2011 08:08 AM (UTC)

Amended on Wed 25 May 2011 08:11 AM (UTC) by Nick Gammon

Message
It's clever the way it does that, eh? Even if you reinstall?

There is a "state" file - in your "state" directory under the plugins directory. Inside that will be files which have long names like this:


a7046428ba477ebb729250df-b0a9cef2629fae2eacf97603-state.xml


One part is the "world ID" and the other part (the second part) is the "plugin ID".

If you open up your plugin and find the plugin ID, near the start, like this:


id="b0a9cef2629fae2eacf97603"


Then look for a state file with that ID in it. Delete it. Then it will revert to the default behaviour.

Do that with the plugin not running (installed) or it will overwrite the state file.

- Nick Gammon

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

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #50 on Wed 25 May 2011 09:46 AM (UTC)
Message
yeah, i knew plugins could save info like the window position... i was really just hoping for something easier than hunting the saved info down in some obscure folder and deleting it manually :P

Oh well at least i know where to look now :P
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #51 on Wed 25 May 2011 04:31 PM (UTC)
Message
I'm sure you could modify OnPluginSaveState to optionally call DeleteVariable or something.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Chyort   USA  (57 posts)  [Biography] bio
Date Reply #52 on Sun 05 Jun 2011 03:51 AM (UTC)

Amended on Sun 05 Jun 2011 04:01 AM (UTC) by Chyort

Message
I changed


function OnPluginSaveState ()
    -- save window current location for next time  
    SetVariable ("enabled", tostring (GetPluginInfo (GetPluginID(), 17)))
    movewindow.save_state (Win)
    -- save echo/timestamp status
    SetVariable ("echo", tostring (echo))
    SetVariable ("timestamp", tostring (timestamp))
    SetVariable("date_format", date_format)
    SetVariable("WINDOW_WIDTH", WINDOW_WIDTH)
    SetVariable("WINDOW_HEIGHT", WINDOW_HEIGHT)
end -- function OnPluginSaveState


to this


function OnPluginSaveState ()
    -- save window current location for next time  
    -- SetVariable ("enabled", tostring (GetPluginInfo (GetPluginID(), 17)))
    -- movewindow.save_state (Win)
    -- save echo/timestamp status
    SetVariable ("echo", tostring (echo))
    SetVariable ("timestamp", tostring (timestamp))
    SetVariable("date_format", date_format)
    SetVariable("WINDOW_WIDTH", WINDOW_WIDTH)
    SetVariable("WINDOW_HEIGHT", WINDOW_HEIGHT)
end -- function OnPluginSaveState


Basically I just commented the save state and set variable... In very limited testing it seems that when ever i move the window now, it resets back into the corner after closing/opening the window again... It still saves everything else (echo, window height/width, so on... I think so at least :P) but this simple modification is at the limits of my non-existent scripting skills :P

So I guess I'm just asking for a more experienced person to tell me if I'm right, and that it wont mess something else up...

I think it's safe enough to comment this line out of the script. " -- movewindow.save_state (Win)"

But I'm not entirely sure if i should be commenting this line out. " -- SetVariable ("enabled", tostring (GetPluginInfo (GetPluginID(), 17)))"

As I said, in very limited testing it seems to be working.. but I would like to know for sure.
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #53 on Sun 05 Jun 2011 04:56 AM (UTC)
Message
Yes commenting out the save_state means it will never remember where you moved it to.

The "enabled" stuff is just to remember for next time if you happened to disable the window. If you comment it out it will always come back enabled, which you might prefer.

- Nick Gammon

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

Posted by Renox Dashin   (17 posts)  [Biography] bio
Date Reply #54 on Mon 06 Jun 2011 05:54 PM (UTC)
Message
Okay my MUD doesn't have linebreaks imbedded into it so some chats are multiple lines. how would i capture multiple lines for the chat box? Heres my trigger

^(.*?) chats\: \'(.*?)\\n(.*?)\'\\Z$"


What would i do differently?
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #55 on Mon 06 Jun 2011 08:40 PM (UTC)

Amended on Mon 06 Jun 2011 08:41 PM (UTC) by Twisol

Message
Renox Dashin said:
Okay my MUD doesn't have linebreaks imbedded into it so some chats are multiple lines.

No, they're not. If there are no newlines, MUSHclient wraps the line but it's still treated as one single line for triggers. If there were newlines, then you'd have to deal with a multi-line trigger.

Renox Dashin said:
^(.*?) chats\: \'(.*?)\n(.*?)\'\Z$"
What would i do differently?


^(.+?) chats\: '([^']*)'$

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Renox Dashin   (17 posts)  [Biography] bio
Date Reply #56 on Mon 06 Jun 2011 10:34 PM (UTC)
Message
I' ve got it picking up the one liners, its the multi-liners that aren't getting picked up, so i guess it does have linebreaks embedded into the MUD. Whichever. I need to pick up multi lines, how would i do that
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #57 on Mon 06 Jun 2011 10:42 PM (UTC)
Message
If possible, the best solution is to disable server-side wrapping and let MUSHclient wrap the lines, so you can treat it as a single line in your trigger. Some MUDs let you do this (in Achaea, you'd use CONFIG SCREENWIDTH 0), but others don't. In those cases you'll need a multiline trigger, but I'm no good at those. Hopefully someone else will stop by and lend a hand here.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Renox Dashin   (17 posts)  [Biography] bio
Date Reply #58 on Tue 07 Jun 2011 06:19 AM (UTC)
Message
Anyone know how to do multiline triggers?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #59 on Tue 07 Jun 2011 06:41 AM (UTC)
Message
Template:faq=23 Please read the MUSHclient FAQ - point 23.


Also:

Template:post=7991 Please see the forum thread: http://gammon.com.au/forum/?id=7991.


There are pages of discussion about it there.

- 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.


105,306 views.

This is page 4, subject is 9 pages long:  [Previous page]  1  2  3  4 5  6  7  8  9  [Next page]

It is now over 60 days since the last post. This thread is closed.     [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]