mIRC Home    About    Download    Register    News    Help

Print Thread
#166167 07/12/06 11:31 AM
Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
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))
  ...
}

Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
$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))
}




Sais
Joined: May 2006
Posts: 93
Babel fish
OP Offline
Babel fish
Joined: May 2006
Posts: 93
thanks, is exactly what i need wink


Link Copied to Clipboard