Aaaah I answered too quickly it finally doesn't work :(
I'm about to give up, I don't understand what I'm doing wrong...
Here is my actual code :
for the hour as you suggested
on change val do end on view do p:"%p" parse "%e" format sys.now utc_offset:1 p.hour:24%utc_offset+p.hour b:(p.hour) me.text:"%f:" format b end
and for the button :
p:"%p" parse "%e" format sys.now o:() o.tfont:"f10x20" o.border.image:windoid.copy[] o.fcolor:colors.white o.bcolor:colors.transparent o.size:500,0 dd.open[deck o] dd.style[o] dd.say["+ + + + + INCOMING + + + + +"] if (p.hour=12)&(p.minute=13) dd.say["EASTEREGG"] dd.close[] go["card1" "Dissolve"] elseif (7=10%p.second) dd.say["HACK#7SECONDS#DONTGETCAUGHT#"] dd.close[] go["card1" "Dissolve"] elseif ((p.hour) <10) & ((p.hour) >20) dd.say["###ACCES AUTORISE ENTRE 20H ET 10H###"] dd.close[] go["card1" "Dissolve"] else dd.say["###ACCES INTERDIT ENTRE 10H ET 20H###"] dd.close[] end