Alarm Clock — File Browser

AlarmClockv1.0 / AlarmClockv1.0 / scriptinfo.txt

scriptinfo.txt — 1.65 KB — Download this file

I did the script in two days so the script may be a bit sloppy.
Hopefully there are no bugs/errors.
Well, I also used a timer for the updating the time...   :(




to run the clock you must type:
/clock on

to turn it off just either press the power button or type:
/clock off





Script information:

aliases -

ifstate:
i wrote this because it saved me time and syntax for rewriting if
statements of drawing sprites onto the picture window

drawhour1/drawhour2:
this just looks for the current hour and writes the correct sprite
onto the picture window

drawmin1/drawmin2:
same as above with minutes

drawsec1/drawsec2:
same as above with seconds

drawtime:
calls on the functions to draw the hours, minutes, and seconds

active echo:
just echos a parameter on a the currently active window

clocktimer:
calls the timer for updating the clock

ctcommands:
the commands the clocktimer calls

clock:
using parameters on|off, this turns the clock on and off

draw12:
draws the correct sprites when using the time format of only 12 hours

draw24:
same as above but with the time format of 24 hours


remotes -

on *:input:
if the inputted text causes the timer that updates the clock to turn
off, this will re-run the timer

on *:close:
when the picture window is manually closed, this will calls the clock
off function

on *:dialog:Alarm:
mainly calls the procedures when using the alarm dialog


others -

menu @Clock:
i used this to read the mousedowns, mouseups, and mousemovements

dialog Clocktable:
holds the table information for the alarm dialog


				ok, i think thats about it, bye
						- minute