Hey...gues what?...It me again...
on *:dialog:Prot:sclick:2:{
if ($did(2).state == 0) { /anti.off | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® | /closemsg $me /time 0 2 }
elseif ($did(2).state == 1) { /anti.on | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
The above is what i am using now, now it works perfectly, but when is select the check box, then close it the dialog, then reopen it, then Check box is no longer selected.
on *:dialog:Prot:sclick:2:{
if ($did(2).state == 0) { /disable #anti | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle OFF. 1,3 4,1V1,3TEC 4,1§1,3cript® | /closemsg $me /time 0 2 }
elseif ($did(2).state == 1) { /enable #anti | echo -a 1,3 4,1V1,3TEC 4,1§1,3cript® 8,4 Anti-Idle ON. 1,3 4,1V1,3TEC 4,1§1,3cript® }
}
This will also work but with the error /anti unknown command, but the check box will stay ticked.