awesome script!
You're still missing the exit button though :P
elseif $devent == sclick && $did == 5 { .dialog -x $dname }
Also you need to unset the variables and timer on $devent == init as well because sometimes it's just not doing it when the dialog closes
if $devent == init { unset %azspd.* | .timerazspd* off | did -f $dname 4 }
I'm really enjoying this xD
Look at the snippets like http://www.hawkee.com/snippet/3490/
they could make good use of $hawkee.color