mIRC Home    About    Download    Register    News    Help

Print Thread
#161087 03/10/06 02:03 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
again...

i have 2 list controls on dialog
ID's are 1 and 2
i want that when i click on VALID line inside list 1 (id 1)
that it automaticaly checks (marks) same line in order
in list 2 (id 2)

so i have this:

Code:
 
on *:dialog:dialog_name:sclick:*:{
  if ($did == 1) {
    if ($did($did).sel == $null) { return }
    [color:green]else { did -c $dname 2 $did($dname,2).sel }[/color]
  }
} 
 


thing in green doesnt work :P
may i ask why?

Last edited by raZOR; 03/10/06 02:04 AM.

IceCapped
#161088 03/10/06 02:07 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Because you're refencing the same ID that you're wanting to set

Change the green line to
Code:
 else { did -c $dname 2 $did($dname,1).sel } 
and it should work.

#161089 03/10/06 02:23 AM
Joined: Apr 2005
Posts: 1,009
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
ahh lol
thanks =)


IceCapped

Link Copied to Clipboard