dialog su {
title "script use: [/su]"
size -2 320 40 25
option dbu
check "NickList", 1, 1 1 42 10
check "Control Panel", 2, 1 9 43 10
check "Short Cuts", 3, 1 17 37 10
}
on *:dialog:su:init:*: {
if (%su.nl == 1) { did -c su 1 }
elseif (%su.nl == 0) { did -u su 1 }
elseif (%su.cp == 1) { did -c su 2 }
elseif (%su.cp == 0) { did -u su 2 }
elseif (%su.sc == 1) { did -c su 3 }
elseif (%su.sc == 0) { did -u su 3 }
}
on *:dialog:su:sclick:*: {
if ($did == 1) { set %su.nl $did(su,1).state }
if ($did == 2) { set %su.cp $did(su,2).state }
if ($did == 3) { set %su.sc $did(su,3).state }
}
it dont seem to work right and i cant figure out why.
Last edited by MTech; 06/04/03 09:27 PM.