Home » Archimedes archive » Micro User » MU 1990-05.adf » Modules/HotKey

Modules/HotKey

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 » Micro User » MU 1990-05.adf
Filename: Modules/HotKey
Read OK:
File size: 05EC bytes
Load address: FFFFFA43
Exec address: 6D3B55C7
File contents
@��$4HotKeyHot Keys	1.00 (27 Oct 1989)@-���P����� ��<��0���@�h��b�c ���������������n��������������P��@� ����@-������P��� � ���@-����'Q��
���@-�Q�����Q�����P������������T������_-�������L�����@-����Q�"
)�jP��`��@��0��S�S��S�0���O � ��S�0���O �V���V�����+��!� �������@����c�����P�j�g����� ��� �OR�� ��� �NR�0��FR��0����Set Alias$PressKey GrabScreen|M
Set Alias$GrabScreen SetEval GrabScreen%Number GrabScreen%Number+1|MScreenSave :0.$.Screen|<GrabScreen%Number>
SetEval GrabScreen%Number 0
rHotKey system unable to claim required workspaceKey�HotKey\h�rSyntax: *HotKey [<ON|OFF> [<key>]]The Hot Key system is currently on.

off.

PressKey
The Hot Key system activates the user-defined command 'PressKey' upon the depression of a configurable key.

The system may be switched on or off using a star command and optionally, the hot key may be changed to suit the application.*HotKey switches the Hot Key system on or off.

*HotKey can take an ASCII keycode to allow a key to be programmed from the default to activate the utility. The default is the 'print' key.

*HotKey without a parameter reflects the current state.

Syntax: *HotKey [<ON|OFF> [<key>]]HotKey by Gareth S. Long.
00000000  00 00 00 00 40 00 00 00  c8 00 00 00 ec 00 00 00  |....@...........|
00000010  1c 00 00 00 24 00 00 00  34 03 00 00 48 6f 74 4b  |....$...4...HotK|
00000020  65 79 00 00 48 6f 74 20  4b 65 79 73 09 31 2e 30  |ey..Hot Keys.1.0|
00000030  30 20 28 32 37 20 4f 63  74 20 31 39 38 39 29 00  |0 (27 Oct 1989).|
00000040  7f 40 2d e9 00 00 9c e5  00 00 50 e3 00 c0 9c 15  |.@-.......P.....|
00000050  15 00 00 1a 06 00 a0 e3  20 10 a0 e3 01 3c a0 e3  |........ ....<..|
00000060  0c 30 83 e2 1e 00 02 ef  7f 40 bd 68 a2 0f 8f 62  |.0.......@.h...b|
00000070  01 f2 9e 63 00 20 8c e5  00 c0 9c e5 00 00 a0 e3  |...c. ..........|
00000080  00 00 8c e5 04 00 8c e5  80 00 a0 e3 08 00 8c e5  |................|
00000090  6e 0f 8f e2 05 00 02 ef  1d 0e 8f e2 05 00 02 ef  |n...............|
000000a0  8e 0f 8f e2 05 00 02 ef  7f 80 bd e8 00 00 9c e5  |................|
000000b0  00 00 50 e3 14 00 a0 13  40 10 8f 12 0c 20 a0 11  |..P.....@.... ..|
000000c0  1f 00 00 1f 7f 80 bd e8  7f 40 2d e9 00 c0 9c e5  |.........@-.....|
000000d0  00 00 9c e5 00 00 50 e3  14 00 a0 13 1c 10 8f 12  |......P.........|
000000e0  0c 20 a0 11 20 00 00 1f  7f 80 bd e8 7f 40 2d e9  |. .. ........@-.|
000000f0  00 c0 9c e5 27 00 51 e3  eb ff ff 0a 7f 80 bd e8  |....'.Q.........|
00000100  7f 40 2d e9 00 00 51 e3  7f 80 bd 18 04 10 9c e5  |.@-...Q.........|
00000110  00 00 51 e3 7f 80 bd 18  08 10 9c e5 01 00 50 e1  |..Q...........P.|
00000120  7f 80 bd 18 ff 00 a0 e3  04 00 8c e5 0c 00 8f e2  |................|
00000130  0c 10 8c e2 54 00 02 ef  7f 10 bd e8 00 80 bd e8  |....T...........|
00000140  ff 5f 2d e9 9d 0f 8f e2  05 00 02 ef 00 00 a0 e3  |._-.............|
00000150  0c c0 4c e2 04 00 8c e5  ff 9f bd e8 00 40 2d e9  |..L..........@-.|
00000160  00 c0 9c e5 00 00 51 e3  22 00 00 0a 29 00 00 eb  |......Q."...)...|
00000170  1d 00 00 6a 00 50 a0 e1  01 60 a0 e1 00 40 9c e5  |...j.P...`...@..|
00000180  00 30 8c e5 00 00 53 e3  04 00 53 01 00 80 bd 08  |.0....S...S.....|
00000190  00 00 53 e3 00 30 8c 05  14 00 a0 03 a4 10 4f 02  |..S..0........O.|
000001a0  0c 20 a0 01 20 00 00 0f  00 80 bd 08 04 00 53 e1  |. .. .........S.|
000001b0  00 30 8c 15 14 00 a0 13  c0 10 4f 12 0c 20 a0 11  |.0........O.. ..|
000001c0  1f 00 00 1f 01 00 56 e3  00 80 bd 08 02 00 56 e3  |......V.......V.|
000001d0  05 00 00 1a 05 10 a0 e1  01 10 81 e2 2b 01 a0 e3  |............+...|
000001e0  21 00 00 ef 08 20 8c e5  00 80 bd e8 17 0e 8f e2  |!.... ..........|
000001f0  00 40 bd e8 01 f2 9e e3  63 0f 8f e2 02 00 00 ef  |.@......c.......|
00000200  00 00 9c e5 00 00 50 e3  6a 0f 8f 02 67 0f 8f 12  |......P.j...g...|
00000210  02 00 00 ef 00 80 bd e8  01 20 d0 e4 df 20 02 e2  |......... ... ..|
00000220  4f 00 52 e3 01 f2 9e 13  01 20 d0 e4 df 20 02 e2  |O.R...... ... ..|
00000230  4e 00 52 e3 01 30 a0 03  0e f0 a0 01 46 00 52 e3  |N.R..0......F.R.|
00000240  01 00 80 02 00 30 a0 03  0e f0 a0 01 01 f2 9e e3  |.....0..........|
00000250  53 65 74 20 41 6c 69 61  73 24 50 72 65 73 73 4b  |Set Alias$PressK|
00000260  65 79 20 47 72 61 62 53  63 72 65 65 6e 7c 4d 0d  |ey GrabScreen|M.|
00000270  53 65 74 20 41 6c 69 61  73 24 47 72 61 62 53 63  |Set Alias$GrabSc|
00000280  72 65 65 6e 20 53 65 74  45 76 61 6c 20 47 72 61  |reen SetEval Gra|
00000290  62 53 63 72 65 65 6e 25  4e 75 6d 62 65 72 20 47  |bScreen%Number G|
000002a0  72 61 62 53 63 72 65 65  6e 25 4e 75 6d 62 65 72  |rabScreen%Number|
000002b0  2b 31 7c 4d 53 63 72 65  65 6e 53 61 76 65 20 3a  |+1|MScreenSave :|
000002c0  30 2e 24 2e 53 63 72 65  65 6e 7c 3c 47 72 61 62  |0.$.Screen|<Grab|
000002d0  53 63 72 65 65 6e 25 4e  75 6d 62 65 72 3e 0d 00  |Screen%Number>..|
000002e0  53 65 74 45 76 61 6c 20  47 72 61 62 53 63 72 65  |SetEval GrabScre|
000002f0  65 6e 25 4e 75 6d 62 65  72 20 30 0d 00 72 02 00  |en%Number 0..r..|
00000300  48 6f 74 4b 65 79 20 73  79 73 74 65 6d 20 75 6e  |HotKey system un|
00000310  61 62 6c 65 20 74 6f 20  63 6c 61 69 6d 20 72 65  |able to claim re|
00000320  71 75 69 72 65 64 20 77  6f 72 6b 73 70 61 63 65  |quired workspace|
00000330  00 00 00 00 4b 65 79 00  00 00 00 00 00 00 00 00  |....Key.........|
00000340  00 00 00 00 c9 03 00 00  48 6f 74 4b 65 79 00 00  |........HotKey..|
00000350  5c 01 00 00 00 00 02 00  68 03 00 00 b4 04 00 00  |\.......h.......|
00000360  00 00 00 00 01 72 02 00  53 79 6e 74 61 78 3a 20  |.....r..Syntax: |
00000370  2a 48 6f 74 4b 65 79 20  5b 3c 4f 4e 7c 4f 46 46  |*HotKey [<ON|OFF|
00000380  3e 20 5b 3c 6b 65 79 3e  5d 5d 00 00 54 68 65 20  |> [<key>]]..The |
00000390  48 6f 74 20 4b 65 79 20  73 79 73 74 65 6d 20 69  |Hot Key system i|
000003a0  73 20 63 75 72 72 65 6e  74 6c 79 20 00 00 00 00  |s currently ....|
000003b0  6f 6e 2e 0a 0d 00 00 00  6f 66 66 2e 0a 0d 00 00  |on......off.....|
000003c0  50 72 65 73 73 4b 65 79  0d 54 68 65 20 48 6f 74  |PressKey.The Hot|
000003d0  20 4b 65 79 20 73 79 73  74 65 6d 20 61 63 74 69  | Key system acti|
000003e0  76 61 74 65 73 20 74 68  65 20 75 73 65 72 2d 64  |vates the user-d|
000003f0  65 66 69 6e 65 64 20 63  6f 6d 6d 61 6e 64 20 27  |efined command '|
00000400  50 72 65 73 73 4b 65 79  27 20 75 70 6f 6e 20 74  |PressKey' upon t|
00000410  68 65 20 64 65 70 72 65  73 73 69 6f 6e 20 6f 66  |he depression of|
00000420  20 61 20 63 6f 6e 66 69  67 75 72 61 62 6c 65 20  | a configurable |
00000430  6b 65 79 2e 0a 0d 54 68  65 20 73 79 73 74 65 6d  |key...The system|
00000440  20 6d 61 79 20 62 65 20  73 77 69 74 63 68 65 64  | may be switched|
00000450  20 6f 6e 20 6f 72 20 6f  66 66 20 75 73 69 6e 67  | on or off using|
00000460  20 61 20 73 74 61 72 20  63 6f 6d 6d 61 6e 64 20  | a star command |
00000470  61 6e 64 20 6f 70 74 69  6f 6e 61 6c 6c 79 2c 20  |and optionally, |
00000480  74 68 65 20 68 6f 74 20  6b 65 79 20 6d 61 79 20  |the hot key may |
00000490  62 65 20 63 68 61 6e 67  65 64 20 74 6f 20 73 75  |be changed to su|
000004a0  69 74 20 74 68 65 20 61  70 70 6c 69 63 61 74 69  |it the applicati|
000004b0  6f 6e 2e 00 2a 48 6f 74  4b 65 79 20 73 77 69 74  |on..*HotKey swit|
000004c0  63 68 65 73 20 74 68 65  20 48 6f 74 20 4b 65 79  |ches the Hot Key|
000004d0  20 73 79 73 74 65 6d 20  6f 6e 20 6f 72 20 6f 66  | system on or of|
000004e0  66 2e 0a 0d 2a 48 6f 74  4b 65 79 20 63 61 6e 20  |f...*HotKey can |
000004f0  74 61 6b 65 20 61 6e 20  41 53 43 49 49 20 6b 65  |take an ASCII ke|
00000500  79 63 6f 64 65 20 74 6f  20 61 6c 6c 6f 77 20 61  |ycode to allow a|
00000510  20 6b 65 79 20 74 6f 20  62 65 20 70 72 6f 67 72  | key to be progr|
00000520  61 6d 6d 65 64 20 66 72  6f 6d 20 74 68 65 20 64  |ammed from the d|
00000530  65 66 61 75 6c 74 20 74  6f 20 61 63 74 69 76 61  |efault to activa|
00000540  74 65 20 74 68 65 20 75  74 69 6c 69 74 79 2e 20  |te the utility. |
00000550  54 68 65 20 64 65 66 61  75 6c 74 20 69 73 20 74  |The default is t|
00000560  68 65 20 27 70 72 69 6e  74 27 20 6b 65 79 2e 0a  |he 'print' key..|
00000570  0d 2a 48 6f 74 4b 65 79  20 77 69 74 68 6f 75 74  |.*HotKey without|
00000580  20 61 20 70 61 72 61 6d  65 74 65 72 20 72 65 66  | a parameter ref|
00000590  6c 65 63 74 73 20 74 68  65 20 63 75 72 72 65 6e  |lects the curren|
000005a0  74 20 73 74 61 74 65 2e  0a 0d 53 79 6e 74 61 78  |t state...Syntax|
000005b0  3a 20 2a 48 6f 74 4b 65  79 20 5b 3c 4f 4e 7c 4f  |: *HotKey [<ON|O|
000005c0  46 46 3e 20 5b 3c 6b 65  79 3e 5d 5d 00 00 00 00  |FF> [<key>]]....|
000005d0  48 6f 74 4b 65 79 20 62  79 20 47 61 72 65 74 68  |HotKey by Gareth|
000005e0  20 53 2e 20 4c 6f 6e 67  2e 0d 00 00              | S. Long....|
000005ec