Close Detection | |||
---|---|---|---|
[[|center|256px]] | |||
General Info | |||
Genre(s): | |||
Contributor(s): | ColeslawProd | ||
Release Date: | July 31,2014 | ||
Size: | 120B (0KB) | ||
Mode(s): | Single-Player | ||
Language(s): | English |
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.
Download[]
@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
Notes[]
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.
Credits[]
- ColeslawProd - Contribution(s)