mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
#154326 29/07/06 09:31 AM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
Sorry if this sounds more like a feature (un-)suggestion...

"/window -h" seems obsolete to "/window -wN" (retain for backwards compatibility, but remove from /help?). Same for the $window().icon prop... Which brings me to, there is no window prop to query the window's switchbar/treebar state...

Maybe a $window().sbshow... returning "off", "switchbar", "treebar", or "both"?


NaquadaBomb
www.mirc-dll.com
#154327 29/07/06 12:50 PM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
And to add to that:

in 6.17 i could do /window -h "Status Window" to hide Status window from switchbar. In this version doing that only minimises status window. /window -w[0-3] "Status Window" doesnt do anything at all..

#154328 30/07/06 01:52 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Ummmmm WHAT?

Have i missed something here? What are you talking about?

/window -h hides the switchbar of a window
/window -w shows the switchbar of a window

whats /window -wN the help file doesnt mention any N or value of N connected to -w ?

I even checked incase this is some unlisted feature, I got nothing besides the window appearing (if -h used prior) , when using -wN -w0 -w1 -w2 -w3 -w[0] -w[1] -w[2] -w[3] -w[0-3] so what is it that your talking about please? Maybe an example.

#154329 30/07/06 01:57 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
From /help /window
Quote:
w[N] = where 0 = hide from switchbar/treebar, 1 = show in switchbar, 2 = show in treebar, 3 = show in both


Per the observance of mrQQ, the -h option for the /window command does not hide the window from the switchbar, like it did in 6.17

#154330 30/07/06 02:05 AM
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
No, I have a line in a script:
Code:
var %cid = $scon($scon(0)).cid | hadd SC_H $+(Server,$c44,%cid) %net | var %rec = $puttok(%rec,%cid,11,%a) | scid %cid window -h "Status Window"

to make the status window immediately hidden, since I have a scripted navigator, and since 6.20 (dunno about 6.17) all the status window buttons appear in the switchbar.

#154331 30/07/06 02:12 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
That's exactly what I'm saying. In 6.17 your code would've hidden the switchbar buttons for the status windows, but in 6.2 it won't, because something has happened with the -h switch so that it doesn't hide the buttons any longer.

I was using the following to hide the status windows
Code:
 /hide .scon -at1 window -h "status window" 

This is in my Aliases section

#154332 30/07/06 03:18 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
like it did in 6.17


Doh! never mind me!, My browser never seems to update the main mirc page, still had it saying latest release was 6.17, untell i forced a refresh frown

#154333 30/07/06 10:25 AM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
so to sum up:

1. /window -h doesn't work as it used to.
2. /window -wN doesn't work on Status windows at all.

#154334 30/07/06 12:46 PM
Joined: Dec 2002
Posts: 580
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
I can't speak to functionality as I have not played around with /window in 6.2 yet... All I'm saying is, if the arguments worked as documented in the help file, than "/window -w0" or "/window -w2" should HIDE a window from the switchbar, thus doing what -h is suppose to be doing... And if -w is going to work like that in future versions, than -h is not needed anymore. I'm suggesting '-h' should still exist and work as before, just not be documented in /help anymore, so people start getting used to the new way. Further more I think the -h should do a -w0 (hide from both) and -w with no number after it (old syntax) should default to -w3, since older scripts will not know what a treebar is. wink

Quote:

h = hide switchbar window button (window only appears in Window list)
w[N] = where 0 = hide from switchbar/treebar, 1 = show in switchbar, 2 = show in treebar, 3 = show in both

Last edited by NaquadaServ; 30/07/06 12:56 PM.

NaquadaBomb
www.mirc-dll.com
#154335 30/07/06 08:14 PM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
agreed smile

i just wanted to add that currently there are problems with both switches smile

#154336 30/07/06 09:02 PM
Joined: Jul 2006
Posts: 5
R
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2006
Posts: 5
anyone have solution for a new commande for hide all window?

#154337 31/07/06 09:51 AM
Joined: Dec 2002
Posts: 5,424
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,424
This was a purposeful change, /window -h was able to hide status windows in v6.17 which should not have been possible, this was fixed in v6.2.

#154338 31/07/06 09:55 AM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
hmm, why would it behave different on status windows than it does on normal ones? and even if it should, then is there a way to hide them? because, as it stands now, for me for example, status windows are useless, i almost never need them, and yet they take up precious space..

#154339 31/07/06 10:01 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Quote:
This was a purposeful change, /window -h was able to hide status windows in v6.17 which should not have been possible, this was fixed in v6.2.


I wouldn't call this a fix because it doesn't fix anything... :-/
you were also to do this in 6.16 for sure and I think even older versions (can't remember when I wrote this script to hide switchbar buttons)

I hide the status windows for networks where nothing interesting happends... I have notices/whois etc showing in active window anyways so I don't really need the status window and hide it to conserve space.

please bring the feature back so we can hide the status windows again.



PS: the -h isn't useless, it should just hides a window from the switchbar but leave it in the treeview.
unfortunately it doesn't :-[
the manual clearly states: h = hide switchbar window button (window only appears in Window list)
this would imply that it would still be visible in the treeview. the new -w doesn't support hiding it from just the switchbar alone unless you do the command twice which is really redundant...



--edit--

been playing around with the treeview a bit now. really missing an identifier to check window states (hidden/shown) like mentioned in the first post. turning off folders removed the problem with the collapsing treeview items... the show count only seems to apply when turning show folders on (grey it out when not available?)

all in all it's a nice feature, just missing a few tiny details

Last edited by Doqnach; 31/07/06 11:34 AM.

If it ain't broken, don't fix it!
#154340 31/07/06 02:45 PM
Joined: Dec 2002
Posts: 5,424
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,424
Yes, I've looked through my code, this change fixes a bug that a user reported, one that existed in previous versions of mIRC as well.

/window -h actually performs two functions, it both hides/minimizes a window, and hides it from the switchbar. This is an old legacy behaviour, so I can't change it. That is why /window -wN has been added.

The switchbar and treebar use similar options. I've tried to make the treebar work reasonably closely to how the switchbar works however some switchbar features don't really make sense with the treebar, so it's not clear-cut.

/window -h is meant to hide a window from the switchbar and the treebar. There are probably other help file switchbar descriptions that may or may not apply to the treebar. If you spot them, please email me.

-- edit --

It may be possible to allow the hiding of the status window again with /window -h however since the status window acts as the root window for all windows on its server connection, it might reintroduce bugs if it's not visible in the switchbar. I'll see what I can do.

Last edited by Khaled; 31/07/06 02:59 PM.
#154341 31/07/06 08:10 PM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
well can you at least make /window -wN work on status windows? (if /window -h is not possible that is)

#154342 31/07/06 09:28 PM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
the best would be to devide the hiding and showing of windows into a switchbar and treebar section

-w0: hides from both switchbar and treebar (doesn't work for status window in the treeview, just the switchbar)
-w1: show in switchbar
-w2: show in treeview
-w3: show in both
-w4: hide in switchbar
-w5: hide in treeview

or allowing 2x -w in one command so you can do -w0w1 for hiding just in the treeview...

also like stated in the other thread there is no way to tell what state a window has in the treeview, so an identifier equal to .icon is really needed.


you could also totally sync (this includes .icon) the switchbar and treeview behaviour (except for the hiding of a status window @ switchbar) and only allow one of the two to be used...

I myself don't see any use in using both bars at the same time...


If it ain't broken, don't fix it!
#154343 01/08/06 02:09 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
What's the purpose of -w4 and -w5? "Hide in switchbar" is actually equivalent to "Show in treebar" (-w2). Did you mean something else perhaps?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#154344 02/08/06 07:22 AM
Joined: Jul 2004
Posts: 26
M
Ameglian cow
Offline
Ameglian cow
M
Joined: Jul 2004
Posts: 26
well I can see reasoning behind all his options - his options make sure you don't need to know about the status of the treebar if you just want to change it in switchbar. for example, currently, if you want to just hide a window in switchbar, but make it stay same in treebar, you have to first figure out its visibility in treebar, and then use one of two parameters. but if you have parameters which only affect one but not another, you dont need to do that.

#154345 02/08/06 08:57 PM
Joined: Aug 2006
Posts: 4
A
Self-satisified door
Offline
Self-satisified door
A
Joined: Aug 2006
Posts: 4
I also have notices and all that I need in the active channels and would like to hide the status window which doesn't contain anything usefull for me. It just hinders using switchbar.

Or I would like to group the status windows separately, so they wouldn't bother my searching for some channel from the switchbar (or the treebar)

Page 1 of 2 1 2

Link Copied to Clipboard