mIRC Homepage
Posted By: Taggnostr $active with multi server - 07/12/06 11:31 AM
i'm doing a script with a dialog that reads the last line of the active window, but if i use $active, it works just on a server. I read the Help but i can't understand how to use $activecid, so, how can i know what is the active windows on multi server?

This is the code i'm using that works just on a server:
Code:
on 1:dialog:spl:sclick:2: {
  var %spl.tmp $line($active,$line($active,0))
  ...
}
Posted By: Sais Re: $active with multi server - 07/12/06 12:00 PM
$activecid gives the cid of the currently active window.

You could use
Code:
scid $activecid
before executing the commands to that active connection

e.g.
Code:
 
on 1:dialog:test:sclick:11: {
  echo -s $($active,0) : $active
  echo -s $($activecid,0) : $activecid
  echo -s $($cid,0) : $cid


  scid $activecid 
  echo -a $line($active,$line($active,0))
}


Posted By: Taggnostr Re: $active with multi server - 07/12/06 12:09 PM
thanks, is exactly what i need wink
© mIRC Discussion Forums