mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2011
Posts: 2
F
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Jun 2011
Posts: 2
Ok, so I know I can GET the currently active window with $Active, but is there any way of setting a channel window as active using scripting?

I play on a game server that is linked to our IRC network, and when I enter one of the 4 servers, I'd like the relevant server IRC channel window to be selected as active automatically. Is there any way of doing this?

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
/window -a #channel

Some other switches of the /window command (c,n,x,r,R,h) could be of use to you as well - though meant for custom windows in the first place, a lot of the options of /window and $window() do also work for channels, queries, "status window" and other "non-custom" windows. You can even use identifiers like $wid, then manipulate /window @<wid> .

Joined: Jun 2011
Posts: 2
F
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Jun 2011
Posts: 2
Thank you so much Horstl! That works perfectly smile

Joined: Jul 2011
Posts: 1
S
Mostly harmless
Offline
Mostly harmless
S
Joined: Jul 2011
Posts: 1
nice, this is what i have been looking for too, and i cant do this with your help, thx


Link Copied to Clipboard