mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2006
Posts: 31
J
JohnS Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2006
Posts: 31
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.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
/scid -a /window -h "Status Window"

The question "is there a way to ...?" should come before the conclusion "there is no way to ..."


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Dec 2006
Posts: 31
J
JohnS Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Dec 2006
Posts: 31
is there a way to set it to do that as default without putting that in the Perform list?

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Link Copied to Clipboard