Hi.
You put this code wherever you want.
This is an event, it's practical to put it under your dialog table.
on 1:DIALOG:login:close:*:{
if ($did(14).state == 1) { set %login.check 1 }
else { unset %login.check }
}
When you close this dialog, it'll set %login.check 1 if the checkboxs is checked. Else it'll unset %login.check.
on 1:DIALOG:login:init:*:{
if (%login.check) { did -c $dname 14 }
} This code will check the checkbox if it has been checked last time.
I hope that I've understood you right.