mIRC Homepage
Posted By: sigbin help on command code? - 24/05/10 07:48 AM
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
Posted By: chacha Re: help on command code? - 24/05/10 06:23 PM
on *:connect:#:

$server
Posted By: Horstl Re: help on command code? - 24/05/10 07:55 PM
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.
Posted By: chacha Re: help on command code? - 25/05/10 08:28 PM
yeah i see smile
Posted By: sigbin Re: help on command code? - 26/05/10 03:25 AM
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?
Posted By: Riamus2 Re: help on command code? - 26/05/10 11:30 AM
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.
Posted By: sigbin Re: help on command code? - 21/06/10 02:38 PM
thankz i get it now... very much appreciated...
© mIRC Discussion Forums