Quote:
The command is called by clicking in a DCX treeview list. The list initiates as a list of network connections, then when a network is selected, the list of channels that you're on is generated under that network name, generating a tree style listing. To that point, it works correctly, however, when a channel is clicked in the treeview, then it's generating a second (third, fourth, fifth, etc.) list of channels as branches off of the channel that was selected. I was hesitant about posting the script, as the dialog is DCX based and this isn't the DCX forum, but if it would help, and I won't get into trouble for posting it, then I will do so.


Don't delete your old code just incase but try this...

Code:
alias slap_manager_cb {
  if $2 == sclick {
    if $3 == 6 {
      xdid -t $1 6 Slap $iif($xdid($1,6).state,Checked,All)
    }
    elseif $3 == 1 {
      .scon $4
      echo -a $1-
      if ($5) {
        var %path = $xdid($1,1).selpath
        var %chan = $xdid($1,1,%path)
        echo 4 -a %path %chan
      }
      elseif (!$5) {
        var %a = 1, %b = $chan(0)
        while %a <= %b {
          xdid -a $1 1 $+($4 %a,$chr(9),+e 0 0 0 1 0 $rgb(0,0,255) $chan(%a),$chr(9),)
          inc %a
        }
      } 
    }
  }
  elseif !$istok(close changing sizing focus focusout,$2,32) && (mouse* !iswm $2) && (*activate !iswm $2) && (*mov* !iswm $2) {
    echo $color(info) -s */ slap_manager_cb: $1-
  }
} 


reversing the $null eval

im not sure if it will work or not just try it please let me know