|Release Date:||July 31,2014|
Run it and close your 3DS or DSi system. It should then say "Close detected" when you open it back up.
It works by checking the TIME$ variable. When the device closes, the program pauses, but the TIME$ continues to count. When the program notices the TIME$ skip two or more seconds, it knows that the system was closed.
@a tmread(time$),h,m,s t=(h*60*60)+(m*60)+s lt=nt nt=t if lt+1<nt then ?"Close Detected" goto @a
It will say it detected a close when it starts.
It needs to be closed for 1-2 seconds before it detects that it's been closed.
If it's closed over midnight, it won't detect that it was closed.
This could use some improvement.
- ColeslawProd - Contribution(s)