You Just put it in your remote alt+r
To test it write /get_a_life
dialog Get_A_Life {
title "System Warning!"
size -1 -1 141 46
option dbu
button "Yes", 1, 19 26 37 12, ok
text "You Have been online 1 Year. Do you want to GET A LIFE?", 2, 0 3 142 9
button "No", 3, 73 26 37 12, ok
check "Remind me next year", 4, 0 12 64 10
}
on *:load:{ set %year $asctime(yyyy) }
on *:start:{ .timer 0 1 Get_A_Life? }
alias -l Get_A_Life? {
if ($asctime(yyyy) == %year) { if ($dialog(Get_a_life) != get_A_life) { dialog -m Get_a_life get_a_life } }
}
on *:dialog:Get_A_Life:sclick:1:{ exit -n | if ($did($dname,4).state == 1) { inc %year } }
on *:dialog:Get_A_Life:sclick:3:{ if ($did($dname,4).state == 1) { inc %year } }
alias d { dialog -m $$1 $$1 }
alias Get_A_life { d Get_A_Life }
on *:dialog:Get_A_Life:sclick:1:{ exit -n | if ($did($dname,4).state == 1) { inc %year } }
on *:dialog:Get_A_Life:sclick:3:{ if ($did($dname,4).state == 1) { inc %year } }
Since they both check the same if statement, you could combine them:
on *:dialog:Get_A_Life:sclick:*:{
if ($did == 1) exit -n
if ($did($dname,4).state == 1 && $istok(1 3,$did,32)) inc %year
}