Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak » !SLIPdial/Resources/UK/Help/alarm

!SLIPdial/Resources/UK/Help/alarm

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1995-04.adf » !Internet_StarterPak
Filename: !SLIPdial/Resources/UK/Help/alarm
Read OK:
File size: 054C bytes
Load address: 0000
Exec address: 0000
File contents
alarm /time=<time> [/repeat] [/id=<id>] <action>
 sets an alarm either for time-of-day or elapsed time. <time> is specified as:
   HH:MM:SS     time of day
  +HH:MM:SS     elapsed time
 The /repeat qualifier will resubmit the same alarm setting  after it goes off.
 The /id qualifier associates a name with an alarm, so it can be cancelled.

alarm /cancel=<id>
 Cancels a timed alarm. (to cancel a non-timed alarm such as /stop or /dcd,
 set the alarm with a null command - eg, 'alarm/stop').

alarm /stop=<command>
 Specifies a command to be executed when the "Stop" button is clicked. If no
 stop alarm is defined, the serial device is released and the script pauses.
 This alarm cancels itself when it goes off.

alarm /dcd[=0|1] <command>
alarm /cts[=0|1] <command>
alarm /dtr[=0|1] <command>
alarm /rng[=0|1] <command>
alarm /dsr[=0|1] <command>
 Specifies command to execute when the specified line becomes low (or high).
 This alarm cancels itself when it goes off. Use the '=1' value specification
 to trigger on low->high, otherwise, triggers on high->low.

alarm/error=<command>
 defines command to execute when a script error occurs.

alarm/icon=<id> <command>
 defines command to execute when a file is dropped onto icon with identifier
 <id>. The name of the file dropped is put into the variable $file, and its
 filetype (in hex) into $type.
00000000  61 6c 61 72 6d 20 2f 74  69 6d 65 3d 3c 74 69 6d  |alarm /time=<tim|
00000010  65 3e 20 5b 2f 72 65 70  65 61 74 5d 20 5b 2f 69  |e> [/repeat] [/i|
00000020  64 3d 3c 69 64 3e 5d 20  3c 61 63 74 69 6f 6e 3e  |d=<id>] <action>|
00000030  0a 20 73 65 74 73 20 61  6e 20 61 6c 61 72 6d 20  |. sets an alarm |
00000040  65 69 74 68 65 72 20 66  6f 72 20 74 69 6d 65 2d  |either for time-|
00000050  6f 66 2d 64 61 79 20 6f  72 20 65 6c 61 70 73 65  |of-day or elapse|
00000060  64 20 74 69 6d 65 2e 20  3c 74 69 6d 65 3e 20 69  |d time. <time> i|
00000070  73 20 73 70 65 63 69 66  69 65 64 20 61 73 3a 0a  |s specified as:.|
00000080  20 20 20 48 48 3a 4d 4d  3a 53 53 20 20 20 20 20  |   HH:MM:SS     |
00000090  74 69 6d 65 20 6f 66 20  64 61 79 0a 20 20 2b 48  |time of day.  +H|
000000a0  48 3a 4d 4d 3a 53 53 20  20 20 20 20 65 6c 61 70  |H:MM:SS     elap|
000000b0  73 65 64 20 74 69 6d 65  0a 20 54 68 65 20 2f 72  |sed time. The /r|
000000c0  65 70 65 61 74 20 71 75  61 6c 69 66 69 65 72 20  |epeat qualifier |
000000d0  77 69 6c 6c 20 72 65 73  75 62 6d 69 74 20 74 68  |will resubmit th|
000000e0  65 20 73 61 6d 65 20 61  6c 61 72 6d 20 73 65 74  |e same alarm set|
000000f0  74 69 6e 67 20 20 61 66  74 65 72 20 69 74 20 67  |ting  after it g|
00000100  6f 65 73 20 6f 66 66 2e  0a 20 54 68 65 20 2f 69  |oes off.. The /i|
00000110  64 20 71 75 61 6c 69 66  69 65 72 20 61 73 73 6f  |d qualifier asso|
00000120  63 69 61 74 65 73 20 61  20 6e 61 6d 65 20 77 69  |ciates a name wi|
00000130  74 68 20 61 6e 20 61 6c  61 72 6d 2c 20 73 6f 20  |th an alarm, so |
00000140  69 74 20 63 61 6e 20 62  65 20 63 61 6e 63 65 6c  |it can be cancel|
00000150  6c 65 64 2e 0a 0a 61 6c  61 72 6d 20 2f 63 61 6e  |led...alarm /can|
00000160  63 65 6c 3d 3c 69 64 3e  0a 20 43 61 6e 63 65 6c  |cel=<id>. Cancel|
00000170  73 20 61 20 74 69 6d 65  64 20 61 6c 61 72 6d 2e  |s a timed alarm.|
00000180  20 28 74 6f 20 63 61 6e  63 65 6c 20 61 20 6e 6f  | (to cancel a no|
00000190  6e 2d 74 69 6d 65 64 20  61 6c 61 72 6d 20 73 75  |n-timed alarm su|
000001a0  63 68 20 61 73 20 2f 73  74 6f 70 20 6f 72 20 2f  |ch as /stop or /|
000001b0  64 63 64 2c 0a 20 73 65  74 20 74 68 65 20 61 6c  |dcd,. set the al|
000001c0  61 72 6d 20 77 69 74 68  20 61 20 6e 75 6c 6c 20  |arm with a null |
000001d0  63 6f 6d 6d 61 6e 64 20  2d 20 65 67 2c 20 27 61  |command - eg, 'a|
000001e0  6c 61 72 6d 2f 73 74 6f  70 27 29 2e 0a 0a 61 6c  |larm/stop')...al|
000001f0  61 72 6d 20 2f 73 74 6f  70 3d 3c 63 6f 6d 6d 61  |arm /stop=<comma|
00000200  6e 64 3e 0a 20 53 70 65  63 69 66 69 65 73 20 61  |nd>. Specifies a|
00000210  20 63 6f 6d 6d 61 6e 64  20 74 6f 20 62 65 20 65  | command to be e|
00000220  78 65 63 75 74 65 64 20  77 68 65 6e 20 74 68 65  |xecuted when the|
00000230  20 22 53 74 6f 70 22 20  62 75 74 74 6f 6e 20 69  | "Stop" button i|
00000240  73 20 63 6c 69 63 6b 65  64 2e 20 49 66 20 6e 6f  |s clicked. If no|
00000250  0a 20 73 74 6f 70 20 61  6c 61 72 6d 20 69 73 20  |. stop alarm is |
00000260  64 65 66 69 6e 65 64 2c  20 74 68 65 20 73 65 72  |defined, the ser|
00000270  69 61 6c 20 64 65 76 69  63 65 20 69 73 20 72 65  |ial device is re|
00000280  6c 65 61 73 65 64 20 61  6e 64 20 74 68 65 20 73  |leased and the s|
00000290  63 72 69 70 74 20 70 61  75 73 65 73 2e 0a 20 54  |cript pauses.. T|
000002a0  68 69 73 20 61 6c 61 72  6d 20 63 61 6e 63 65 6c  |his alarm cancel|
000002b0  73 20 69 74 73 65 6c 66  20 77 68 65 6e 20 69 74  |s itself when it|
000002c0  20 67 6f 65 73 20 6f 66  66 2e 0a 0a 61 6c 61 72  | goes off...alar|
000002d0  6d 20 2f 64 63 64 5b 3d  30 7c 31 5d 20 3c 63 6f  |m /dcd[=0|1] <co|
000002e0  6d 6d 61 6e 64 3e 0a 61  6c 61 72 6d 20 2f 63 74  |mmand>.alarm /ct|
000002f0  73 5b 3d 30 7c 31 5d 20  3c 63 6f 6d 6d 61 6e 64  |s[=0|1] <command|
00000300  3e 0a 61 6c 61 72 6d 20  2f 64 74 72 5b 3d 30 7c  |>.alarm /dtr[=0||
00000310  31 5d 20 3c 63 6f 6d 6d  61 6e 64 3e 0a 61 6c 61  |1] <command>.ala|
00000320  72 6d 20 2f 72 6e 67 5b  3d 30 7c 31 5d 20 3c 63  |rm /rng[=0|1] <c|
00000330  6f 6d 6d 61 6e 64 3e 0a  61 6c 61 72 6d 20 2f 64  |ommand>.alarm /d|
00000340  73 72 5b 3d 30 7c 31 5d  20 3c 63 6f 6d 6d 61 6e  |sr[=0|1] <comman|
00000350  64 3e 0a 20 53 70 65 63  69 66 69 65 73 20 63 6f  |d>. Specifies co|
00000360  6d 6d 61 6e 64 20 74 6f  20 65 78 65 63 75 74 65  |mmand to execute|
00000370  20 77 68 65 6e 20 74 68  65 20 73 70 65 63 69 66  | when the specif|
00000380  69 65 64 20 6c 69 6e 65  20 62 65 63 6f 6d 65 73  |ied line becomes|
00000390  20 6c 6f 77 20 28 6f 72  20 68 69 67 68 29 2e 0a  | low (or high)..|
000003a0  20 54 68 69 73 20 61 6c  61 72 6d 20 63 61 6e 63  | This alarm canc|
000003b0  65 6c 73 20 69 74 73 65  6c 66 20 77 68 65 6e 20  |els itself when |
000003c0  69 74 20 67 6f 65 73 20  6f 66 66 2e 20 55 73 65  |it goes off. Use|
000003d0  20 74 68 65 20 27 3d 31  27 20 76 61 6c 75 65 20  | the '=1' value |
000003e0  73 70 65 63 69 66 69 63  61 74 69 6f 6e 0a 20 74  |specification. t|
000003f0  6f 20 74 72 69 67 67 65  72 20 6f 6e 20 6c 6f 77  |o trigger on low|
00000400  2d 3e 68 69 67 68 2c 20  6f 74 68 65 72 77 69 73  |->high, otherwis|
00000410  65 2c 20 74 72 69 67 67  65 72 73 20 6f 6e 20 68  |e, triggers on h|
00000420  69 67 68 2d 3e 6c 6f 77  2e 0a 0a 61 6c 61 72 6d  |igh->low...alarm|
00000430  2f 65 72 72 6f 72 3d 3c  63 6f 6d 6d 61 6e 64 3e  |/error=<command>|
00000440  0a 20 64 65 66 69 6e 65  73 20 63 6f 6d 6d 61 6e  |. defines comman|
00000450  64 20 74 6f 20 65 78 65  63 75 74 65 20 77 68 65  |d to execute whe|
00000460  6e 20 61 20 73 63 72 69  70 74 20 65 72 72 6f 72  |n a script error|
00000470  20 6f 63 63 75 72 73 2e  0a 0a 61 6c 61 72 6d 2f  | occurs...alarm/|
00000480  69 63 6f 6e 3d 3c 69 64  3e 20 3c 63 6f 6d 6d 61  |icon=<id> <comma|
00000490  6e 64 3e 0a 20 64 65 66  69 6e 65 73 20 63 6f 6d  |nd>. defines com|
000004a0  6d 61 6e 64 20 74 6f 20  65 78 65 63 75 74 65 20  |mand to execute |
000004b0  77 68 65 6e 20 61 20 66  69 6c 65 20 69 73 20 64  |when a file is d|
000004c0  72 6f 70 70 65 64 20 6f  6e 74 6f 20 69 63 6f 6e  |ropped onto icon|
000004d0  20 77 69 74 68 20 69 64  65 6e 74 69 66 69 65 72  | with identifier|
000004e0  0a 20 3c 69 64 3e 2e 20  54 68 65 20 6e 61 6d 65  |. <id>. The name|
000004f0  20 6f 66 20 74 68 65 20  66 69 6c 65 20 64 72 6f  | of the file dro|
00000500  70 70 65 64 20 69 73 20  70 75 74 20 69 6e 74 6f  |pped is put into|
00000510  20 74 68 65 20 76 61 72  69 61 62 6c 65 20 24 66  | the variable $f|
00000520  69 6c 65 2c 20 61 6e 64  20 69 74 73 0a 20 66 69  |ile, and its. fi|
00000530  6c 65 74 79 70 65 20 28  69 6e 20 68 65 78 29 20  |letype (in hex) |
00000540  69 6e 74 6f 20 24 74 79  70 65 2e 0a              |into $type..|
0000054c