mIRC Home    About    Download    Register    News    Help

Print Thread
#266054 13/09/19 11:01 AM
Joined: Sep 2019
Posts: 12
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Sep 2019
Posts: 12
Custom windows opened on desktop and hidden cannot be restored.

Code
/window -d @win
/window -h @win
/window -r @win


Window will not restore back in to view on mIRC 7.55


“Life is a miracle, and being aware of simply this can already make us very happy.”
ashburry #266120 27/09/19 04:44 PM
Joined: Dec 2002
Posts: 5,412
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,412
Thanks for your bug report. This issue has been fixed for the next version.

ashburry #266121 28/09/19 10:28 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Use /window -w @win to counter /window -h @win

w[N] = where 0 = hide from switchbar/treebar, 1 = show in switchbar, 2 = show in treebar, 3 = show in both ... for more flexibility in exact behavior.

/window -w @win (show window aka unhide window) --- then you can use /window -r @win to restore the window
/window -w0 @win (hide from switchbar & treebar)
/window -w1 @win (show in switchbar & hide in treebar)
/window -w2 @win (hide in switchbar & show in treebar)
/window -w3 @win (show in treebar & show in switchbar)

(I am uncertain if Khaled should change this behavior.)

Last edited by Raccoon; 28/09/19 10:33 PM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Raccoon #266122 29/09/19 06:16 AM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
Quote
122.Added /window -w switch which turns a @windows switchbar button on
if it was previously turned off.
This is what -w should be doing, I'm not sure if that's the same as show window aka unhide window but it's not in the help file, so scripts are not using it, most likely.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Raccoon #266123 29/09/19 12:49 PM
Joined: Dec 2002
Posts: 5,412
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,412
Previously, /window -r (restore window size) was only being applied to windows in a min/max state. This makes sense because it would have no effect on the size of a non-min/max state window.

However, as /window -r also affects window visiblity, it should be applied to windows in a non-min/max state as well, so that a scripter will know that /window -r will make a window visible regardless of what state it is in.

So I think the change makes sense.

Khaled #266125 30/09/19 01:49 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
They just always seemed like different unrelated attributes to me. min/max/restore versus visible = true/false. I imagine people manage the x y coordinates and min/max/restore (restore = regular) states of their windows, while independently managing the window's visibility based on channel activity or other criteria. The change you propose would force a hidden window to become visible if it's merely repositioned.

I use channel visibility based on channel activity, but since my channels are always max/min, and never regular, I don't have a bone in the fight. Other people who use tiled or cascaded windows might.

Edit:

Quote
31./window -a now shows a window that was hidden with /window -h.


If you use /window -a, it will behave as if you used both -w and -r

Last edited by Raccoon; 30/09/19 01:55 AM.

Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard