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
➜ Trouble with WindowInfo(win,6)
|
Trouble with WindowInfo(win,6)
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Oligo
(26 posts) Bio
|
| Date
| Sun 31 Mar 2013 07:55 PM (UTC) |
| Message
| WindowInfo(win,6) seems to always return false.
Once I create a window, regardless if the window is visible or hidden, it always seems to return false.
Could be programmer error or misuse, but if I debug and do like
print(tostring(WindowInfo(win,6)))
it always seems to evaluate to false and in logical if/then constructs.
I'm using MUSH 4.84. |
mud.arctic.org : 2700 | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #1 on Sun 31 Mar 2013 08:32 PM (UTC) Amended on Sun 31 Mar 2013 08:33 PM (UTC) by Fiendish
|
| Message
| |
| Posted by
| Oligo
(26 posts) Bio
|
| Date
| Reply #2 on Sun 31 Mar 2013 09:08 PM (UTC) |
| Message
| Ok thnx. I will play around with this.
I just wanted to programmatically determine of the miniwindow was displayed or not.
So it seems I would do a logical test like the following?
if (WindowInfo(win,5)) then
print("window is displayed")
else
print("window is not displayed")
end
|
mud.arctic.org : 2700 | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sun 31 Mar 2013 11:01 PM (UTC) |
| Message
| | As Fiendish said, WindowInfo(win,5) gives you whether or not you want it shown. Under certain circumstances (especially using automatic positioning) it might not be shown even if you wanted it shown. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Oligo
(26 posts) Bio
|
| Date
| Reply #4 on Sun 31 Mar 2013 11:40 PM (UTC) |
| Message
| Thanks for the help, WindowInfo(win,5) was what I needed.
|
mud.arctic.org : 2700 | | 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.
21,909 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top