mIRC Home    About    Download    Register    News    Help

Topic Options
#221548 - 24/05/10 08:48 AM help on command code?
sigbin Offline
Vogon poet

Registered: 30/06/04
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


Edited by sigbin (24/05/10 08:48 AM)

Top
#221577 - 24/05/10 07:23 PM Re: help on command code? [Re: sigbin]
chacha Offline
Vogon poet

Registered: 20/02/09
Posts: 133
Loc: Belgique
on *:connect:#:

$server
_________________________
WorldDMT

Top
#221585 - 24/05/10 08:55 PM Re: help on command code? [Re: sigbin]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
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.


Edited by Horstl (24/05/10 08:56 PM)

Top
#221620 - 25/05/10 09:28 PM Re: help on command code? [Re: Horstl]
chacha Offline
Vogon poet

Registered: 20/02/09
Posts: 133
Loc: Belgique
yeah i see smile
_________________________
WorldDMT

Top
#221634 - 26/05/10 04:25 AM Re: help on command code? [Re: sigbin]
sigbin Offline
Vogon poet

Registered: 30/06/04
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?

Top
#221643 - 26/05/10 12:30 PM Re: help on command code? [Re: sigbin]
Riamus2 Offline
Planetary brain

Registered: 13/10/04
Posts: 8327
Loc: NC, USA
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

Top
#222518 - 21/06/10 03:38 PM Re: help on command code? [Re: Riamus2]
sigbin Offline
Vogon poet

Registered: 30/06/04
Posts: 124
thankz i get it now... very much appreciated...

Top