Register forum user name 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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Hotspots only in plugins?

Hotspots only in plugins?

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


Pages: 1  2 

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #15 on Fri 25 Dec 2009 01:41 AM (UTC)
Message
It doesn't appear to be added by now either. Any reason in particular this was scrapped?

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,166 posts)  Bio   Forum Administrator
Date Reply #16 on Sun 27 Dec 2009 02:41 AM (UTC)

Amended on Sun 27 Dec 2009 04:42 AM (UTC) by Nick Gammon

Message
In the interests of keeping this thread to only two pages, this feature has been added to version 4.46.

Please note that a restriction has been added in this version (not directly related to this problem, but found when testing it). The restriction is that miniwindows may not have an empty string as a name any more. This is because in various places in the code an empty miniwindow name is take to mean "no active miniwindow".

In particular, this will affect you if you are testing miniwindows outside plugins, and do this:


win = GetPluginID ()  -- get a unique name
WindowCreate (win, 0, 0, 200, 200, 4, 0, ColourNameToRGB("white"))  -- create window


In this case GetPluginID will return an empty string, which will now not be acceptable as a window name. Thus this code would fail outside a plugin, but work inside one.

To work around that, make sure that miniwindow names are not just the plugin ID, if you are testing outside plugins. eg.


win = GetPluginID () .. ":1" -- get a unique name


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


65,095 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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