on *:DIALOG:dname:sclick:id1,id2:{ if ( $did(id1).state ) { did -e $dname id3,id4 } else { did -b $dname id3,id4 } }