mIRC Home    About    Download    Register    News    Help

Print Thread
#221548 24/05/10 07:48 AM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
ill looked into the mirc help and i cant find the code used like when i open a new server window it does a command like this
Code:
on *:New Server Window:command to perform



thankz for the help

Last edited by sigbin; 24/05/10 07:48 AM.
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
on *:connect:#:

$server


WorldDMT
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
There is no distinct event to cover this. What in detail are you trying to do?
You could try "on open" as, if I remember correctly, "on close" works for status windows, like in
on *:CLOSE:status window: { echo -a just closed $target of connection id $cid }
I cannot test myself atm - sorry.

@chacha: You can open a new status window without connecting and vice versa.

Last edited by Horstl; 24/05/10 07:56 PM.
Joined: Feb 2009
Posts: 133
C
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2009
Posts: 133
yeah i see smile


WorldDMT
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
what i mean is when even i open a new server window it will perform a command like /nick newnick on that new server window. can that be posibble?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Set that up in on CONNECT or else use -i with /server...

/server -m irc.network.com -i nick

If you want, you can even set your own alias that will do that for you...

Code:
myserver {
  var %nick = defaultnick
  if (irc.network.net isin $1-) { var %nick = nick }
  elseif (irc.network2.net isin $1-) { var %nick = nick2 }
  elseif (irc.network3.net isin $1-) { var %nick = nick3 }
  server $1- -i %nick
}


That's just a quick example of one way you can do that. There are a variety of ways to handle the situation and they'll depend on exactly what you want to have happen, such as whether or not you are using different nicks on many different servers or just a couple.


Invision Support
#Invision on irc.irchighway.net
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
thankz i get it now... very much appreciated...


Link Copied to Clipboard