mIRC Home    About    Download    Register    News    Help

Print Thread
#102807 13/11/04 06:09 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
when the command " /server -m " is used and you get a new status Window in mIRC; Would it be possible to run Scripts that are just suppossed to respond to a specific "Status Window" ?

I know that is possible to do that by Editing the script but that is way too much trouble.

Anyone With a better solution ?

Thank you.

#102808 13/11/04 08:18 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
I use a small custom alias to lookup a connection number based on $cid to check which connection is being dealt with:

Code:
alias con {
  var %x 
  scid -a $(%x = %x $cid,) 
  return $findtok(%x,$cid,32) 
}


Simply use $con to return the number. As an example, let's suppose you only want your text event to respond to text occuring in the 2nd open connection:

Code:
on *:text:*:*:if ($con = 2) { commands }

#102809 14/11/04 06:33 AM
Joined: Nov 2003
Posts: 82
F
Felpipe Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Nov 2003
Posts: 82
Thank you


Link Copied to Clipboard