mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
hello

when a user is kicked from a channel, mirc activates the tab that this channel is and it gains focus

how do I disable that?

thanks!

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
i might be wrong, but that sounds more like you have some script doing that to you, than a mirc setting.

Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
nope I dont

have you checked it by yourself?

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Well Duh! If it was happening to me, would i have said that.

try typing //!debug off | !remote off | !timer* off

And then wait for a kick in a different channel, does it still occur?

Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
it still occurs...

I bet it occurs in every one...

Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
ohh sorry

maybe it occurs because I have auto rejoin when kicked

but anyway I want to prevent it...

also, now that I am thinking it would be good to be able to prevent to gain focus when I join a channel

any ideas?

thanks

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
I can't get my mIRC to give focus to the window where someone was kicked. You can try each of these choices separately to see if any work:

Option 1:
on *:KICK:#:if ($active != $chan) window -n $chan

Option 2:
on *:KICK:#:window -x $active

Since I can't reproduce your problem, I can't test these codes properly.


To prevent a channel from getting focus when you join, you can use this command:

/join -n #channel

or this bit of code:

on me:*:JOIN:#:window -n $chan

-genius_at_work

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
it still occurs...
I bet it occurs in every one...

Quote:
ohh sorry
maybe it occurs because I have auto rejoin when kicked
but anyway I want to prevent it...
also, now that I am thinking it would be good to be able to prevent to gain focus when I join a channel
any ideas?
thanks


yeah i do, maybe you should actually say what ya talking about to begin with.
You said "when a user is kicked from a channel, mirc activates the tab that this channel is and it gains focus"
Which to me reads like your talking about when someone else gets kicked, your mirc changes focus.

If you want to fix it just turn the auto rejoin on kick off, and add this remote

on *:KICK:#:{ join $iif(($active != $chan),-n) $chan }

Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
To prevent a channel from getting focus when you join, you can use this command:
on me:*:JOIN:#:window -n $chan

-genius_at_work [/quote]

this doesnt work frown

Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
It works for me. Make sure there aren't any other on JOIN events in the same script file. Try making a new script: alt+r, new>file. Then paste that line of code in the new file.

-genius_at_work


Link Copied to Clipboard