Home » Archimedes archive » Archimedes World » AW-1991-12.adf » December91 » !AWDec91/Goodies/Hotkeys/!HotKeys/Special

!AWDec91/Goodies/Hotkeys/!HotKeys/Special

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 » Archimedes World » AW-1991-12.adf » December91
Filename: !AWDec91/Goodies/Hotkeys/!HotKeys/Special
Read OK:
File size: 0466 bytes
Load address: 0000
Exec address: 0000
File contents
"Special star commands"
-----------------------


|HotKeys:desktop(wait for nnn) -  Halts desktop tasks until CHR$ nnn
                                  is pressed; the default for 'nnn'
                                  is 127 :- DELETE


|HotKeys:desktop(blackout) -      Makes the screen go black (256 colour
                                  does not work) until the hot key is
                                  pressed that recolours the screen.


|HotKeys:desktop(default) -       Recolours the screen after a blackout.




The program decodes the hotkeys and any hotkey that contains the prefix
"|HotKeys:" runs an internal operation in the program - any other prefix
is passed to the command line interpretor via *WimpTask

Later versions of HotKeys may be able to incorporate the special LIBRARY
facility of BASIC V to allow keys to be pressed that will call basic
procedures in any program :- note however; tasks can still be initiated
via a 'hotkey' by simply *RUNnig it - eg, define key "E" to '!Edit' - this
will install edit when the user presses "E"  (provided it is in the currently
selected directory / CSD)

00000000  22 53 70 65 63 69 61 6c  20 73 74 61 72 20 63 6f  |"Special star co|
00000010  6d 6d 61 6e 64 73 22 0a  2d 2d 2d 2d 2d 2d 2d 2d  |mmands".--------|
00000020  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 0a  |---------------.|
00000030  0a 0a 7c 48 6f 74 4b 65  79 73 3a 64 65 73 6b 74  |..|HotKeys:deskt|
00000040  6f 70 28 77 61 69 74 20  66 6f 72 20 6e 6e 6e 29  |op(wait for nnn)|
00000050  20 2d 20 20 48 61 6c 74  73 20 64 65 73 6b 74 6f  | -  Halts deskto|
00000060  70 20 74 61 73 6b 73 20  75 6e 74 69 6c 20 43 48  |p tasks until CH|
00000070  52 24 20 6e 6e 6e 0a 20  20 20 20 20 20 20 20 20  |R$ nnn.         |
00000080  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000090  20 20 20 20 20 20 20 20  20 69 73 20 70 72 65 73  |         is pres|
000000a0  73 65 64 3b 20 74 68 65  20 64 65 66 61 75 6c 74  |sed; the default|
000000b0  20 66 6f 72 20 27 6e 6e  6e 27 0a 20 20 20 20 20  | for 'nnn'.     |
000000c0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000000d0  20 20 20 20 20 20 20 20  20 20 20 20 20 69 73 20  |             is |
000000e0  31 32 37 20 3a 2d 20 44  45 4c 45 54 45 0a 0a 0a  |127 :- DELETE...|
000000f0  7c 48 6f 74 4b 65 79 73  3a 64 65 73 6b 74 6f 70  ||HotKeys:desktop|
00000100  28 62 6c 61 63 6b 6f 75  74 29 20 2d 20 20 20 20  |(blackout) -    |
00000110  20 20 4d 61 6b 65 73 20  74 68 65 20 73 63 72 65  |  Makes the scre|
00000120  65 6e 20 67 6f 20 62 6c  61 63 6b 20 28 32 35 36  |en go black (256|
00000130  20 63 6f 6c 6f 75 72 0a  20 20 20 20 20 20 20 20  | colour.        |
00000140  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000150  20 20 20 20 20 20 20 20  20 20 64 6f 65 73 20 6e  |          does n|
00000160  6f 74 20 77 6f 72 6b 29  20 75 6e 74 69 6c 20 74  |ot work) until t|
00000170  68 65 20 68 6f 74 20 6b  65 79 20 69 73 0a 20 20  |he hot key is.  |
00000180  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
000001a0  70 72 65 73 73 65 64 20  74 68 61 74 20 72 65 63  |pressed that rec|
000001b0  6f 6c 6f 75 72 73 20 74  68 65 20 73 63 72 65 65  |olours the scree|
000001c0  6e 2e 0a 0a 0a 7c 48 6f  74 4b 65 79 73 3a 64 65  |n....|HotKeys:de|
000001d0  73 6b 74 6f 70 28 64 65  66 61 75 6c 74 29 20 2d  |sktop(default) -|
000001e0  20 20 20 20 20 20 20 52  65 63 6f 6c 6f 75 72 73  |       Recolours|
000001f0  20 74 68 65 20 73 63 72  65 65 6e 20 61 66 74 65  | the screen afte|
00000200  72 20 61 20 62 6c 61 63  6b 6f 75 74 2e 0a 0a 0a  |r a blackout....|
00000210  0a 0a 54 68 65 20 70 72  6f 67 72 61 6d 20 64 65  |..The program de|
00000220  63 6f 64 65 73 20 74 68  65 20 68 6f 74 6b 65 79  |codes the hotkey|
00000230  73 20 61 6e 64 20 61 6e  79 20 68 6f 74 6b 65 79  |s and any hotkey|
00000240  20 74 68 61 74 20 63 6f  6e 74 61 69 6e 73 20 74  | that contains t|
00000250  68 65 20 70 72 65 66 69  78 0a 22 7c 48 6f 74 4b  |he prefix."|HotK|
00000260  65 79 73 3a 22 20 72 75  6e 73 20 61 6e 20 69 6e  |eys:" runs an in|
00000270  74 65 72 6e 61 6c 20 6f  70 65 72 61 74 69 6f 6e  |ternal operation|
00000280  20 69 6e 20 74 68 65 20  70 72 6f 67 72 61 6d 20  | in the program |
00000290  2d 20 61 6e 79 20 6f 74  68 65 72 20 70 72 65 66  |- any other pref|
000002a0  69 78 0a 69 73 20 70 61  73 73 65 64 20 74 6f 20  |ix.is passed to |
000002b0  74 68 65 20 63 6f 6d 6d  61 6e 64 20 6c 69 6e 65  |the command line|
000002c0  20 69 6e 74 65 72 70 72  65 74 6f 72 20 76 69 61  | interpretor via|
000002d0  20 2a 57 69 6d 70 54 61  73 6b 0a 0a 4c 61 74 65  | *WimpTask..Late|
000002e0  72 20 76 65 72 73 69 6f  6e 73 20 6f 66 20 48 6f  |r versions of Ho|
000002f0  74 4b 65 79 73 20 6d 61  79 20 62 65 20 61 62 6c  |tKeys may be abl|
00000300  65 20 74 6f 20 69 6e 63  6f 72 70 6f 72 61 74 65  |e to incorporate|
00000310  20 74 68 65 20 73 70 65  63 69 61 6c 20 4c 49 42  | the special LIB|
00000320  52 41 52 59 0a 66 61 63  69 6c 69 74 79 20 6f 66  |RARY.facility of|
00000330  20 42 41 53 49 43 20 56  20 74 6f 20 61 6c 6c 6f  | BASIC V to allo|
00000340  77 20 6b 65 79 73 20 74  6f 20 62 65 20 70 72 65  |w keys to be pre|
00000350  73 73 65 64 20 74 68 61  74 20 77 69 6c 6c 20 63  |ssed that will c|
00000360  61 6c 6c 20 62 61 73 69  63 0a 70 72 6f 63 65 64  |all basic.proced|
00000370  75 72 65 73 20 69 6e 20  61 6e 79 20 70 72 6f 67  |ures in any prog|
00000380  72 61 6d 20 3a 2d 20 6e  6f 74 65 20 68 6f 77 65  |ram :- note howe|
00000390  76 65 72 3b 20 74 61 73  6b 73 20 63 61 6e 20 73  |ver; tasks can s|
000003a0  74 69 6c 6c 20 62 65 20  69 6e 69 74 69 61 74 65  |till be initiate|
000003b0  64 0a 76 69 61 20 61 20  27 68 6f 74 6b 65 79 27  |d.via a 'hotkey'|
000003c0  20 62 79 20 73 69 6d 70  6c 79 20 2a 52 55 4e 6e  | by simply *RUNn|
000003d0  69 67 20 69 74 20 2d 20  65 67 2c 20 64 65 66 69  |ig it - eg, defi|
000003e0  6e 65 20 6b 65 79 20 22  45 22 20 74 6f 20 27 21  |ne key "E" to '!|
000003f0  45 64 69 74 27 20 2d 20  74 68 69 73 0a 77 69 6c  |Edit' - this.wil|
00000400  6c 20 69 6e 73 74 61 6c  6c 20 65 64 69 74 20 77  |l install edit w|
00000410  68 65 6e 20 74 68 65 20  75 73 65 72 20 70 72 65  |hen the user pre|
00000420  73 73 65 73 20 22 45 22  20 20 28 70 72 6f 76 69  |sses "E"  (provi|
00000430  64 65 64 20 69 74 20 69  73 20 69 6e 20 74 68 65  |ded it is in the|
00000440  20 63 75 72 72 65 6e 74  6c 79 0a 73 65 6c 65 63  | currently.selec|
00000450  74 65 64 20 64 69 72 65  63 74 6f 72 79 20 2f 20  |ted directory / |
00000460  43 53 44 29 0a 0a                                 |CSD)..|
00000466