Timers and $did - 23/07/03 09:27 AM
Playing around with timers and dialogs, i came up with this
Now because the timer on/off is surpressed i dont know if the timer is on or off
thats what the edit boxes are for.
What i want to know is how would i add a message to the edit box that displays
"Enabled" or "Disabled"
I came up with
But that dont work, i`v tried looking at the help file (again esp in the $did section)
and i still dont understand it, can anybody point me to another online resource that might help
understand $did better.
What i`m trying to do is display wether a timer is running or not in an edit box, corrasponding with it`s timer
Thanks
ShadowDemon
mIRC V6.03
Code:
menu channel { Timer Starter Stopper:dialog -m tstop tstop } dialog tstop { title "" size -1 -1 104 162 option dbu check "Timer 1", 1, 10 15 40 10 check "Timer 2", 2, 10 40 40 10 check "Timer 3", 3, 10 65 40 10 check "Timer 4", 4, 10 90 40 10 check "Timer 5", 5, 10 115 40 10 check "Timer 6", 6, 50 15 40 10 check "Timer 7", 7, 50 40 41 10 check "Timer 8", 8, 50 65 40 10 check "Timer 9", 9, 50 90 40 10 check "Timer 0", 10, 50 115 40 10 edit "", 11, 10 25 40 10, read edit "", 12, 10 50 40 10, read edit "", 13, 10 75 40 10, read edit "", 14, 10 100 40 10, read edit "", 15, 10 125 40 10, read edit "", 16, 50 25 40 10, read edit "", 17, 50 50 40 10, read edit "", 18, 50 75 40 10, read edit "", 19, 50 100 40 10, read edit "", 20, 50 125 40 10, read box "mIRC Event Timer Starter/Stopper", 21, 5 5 93 135 box "", 22, 48 139 50 20 icon 23, 6 143 16 16, C:\Program Files\mIRC\ShadowDemon\scripts\mircscripts.icl, 0 icon 24, 24 143 16 16, C:\Program Files\mIRC\ShadowDemon\scripts\mircscripts.icl, 6 button "Close", 25, 50 144 46 13, ok cancel } on 1:dialog:tstop:sclick:1: { if ($did(1).state) .timer11 0 10 msg #sod test else .timer11 off }
Now because the timer on/off is surpressed i dont know if the timer is on or off
thats what the edit boxes are for.
What i want to know is how would i add a message to the edit box that displays
"Enabled" or "Disabled"
I came up with
Code:
on 1:dialog:tstop:init:1: { if ($did(1).$dname Enabled else Disabled } on 1:dialog:tstop:sclick:1: { if ($did(1).state) .timer11 0 10 msg #sod test else .timer11 off }
But that dont work, i`v tried looking at the help file (again esp in the $did section)
and i still dont understand it, can anybody point me to another online resource that might help
understand $did better.
What i`m trying to do is display wether a timer is running or not in an edit box, corrasponding with it`s timer
Thanks
ShadowDemon
mIRC V6.03