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))
  ...
}