mIRC Homepage
Posted By: JohnS Hide Status Tabs in Switchbar - 07/02/08 01:27 AM
it would be awesome if ther was a way to hide the buttons in the switchbar for the server status. they take up a bit of room when connected to more than one server.
Posted By: argv0 Re: Hide Status Tabs in Switchbar - 07/02/08 02:27 AM
/scid -a /window -h "Status Window"

The question "is there a way to ...?" should come before the conclusion "there is no way to ..."
Posted By: JohnS Re: Hide Status Tabs in Switchbar - 07/02/08 02:50 AM
is there a way to set it to do that as default without putting that in the Perform list?
Posted By: argv0 Re: Hide Status Tabs in Switchbar - 07/02/08 03:49 AM
just put it in the perform list, then it will do it "by default"

...or in an on start event

ON *:START:server irc.server1.com | server -m irc.server2.com | server -m irc.server3.com | scid -a window -h "Status Window"

Shouldn't really matter how you set it, as long as it works-- a checkbox or a line of code in the end doesn't make much of a difference. If every functionality in mIRC was mapped to some UI control, well, there would be a lot of UI controls.

Also, from a sensical standpoint, you probably only want to hide your status windows once you establish a connection with a server-- otherwise you'd never know if the connection failed, or whatever have you. In that sense, it's best to just script it with ON CONNECT

Code:
ON *:CONNECT:window -h "Status Window"
ON *:DISCONNECT:window -w3 "Status Window"


That way it also pops back up when you disconnect, since you might need it. You could also add logic to only hide it if you have more than N connections open

Code:
ON *:CONNECT:if ($scon(0) > 3) scid -a window -h "Status Window"


So as you see, from a logical standpoint, its much more configurable to deal with functionality like this in script, not with checkboxes/dropdowns
© mIRC Discussion Forums