Home » Archimedes archive » Acorn User » AU 1998-10.adf » Regulars » RTR/Rambles/ClickLoad

RTR/Rambles/ClickLoad

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 1998-10.adf » Regulars
Filename: RTR/Rambles/ClickLoad
Read OK:
File size: 0195 bytes
Load address: 0000
Exec address: 0000
File contents
   10REM Example Procedure for seeing what was double clicked
   20DEF PROC_ClickLoad
   40Lf$=""
   50SYS "OS_GetEnv" TO EnvStr$
   60I%=LEN(EnvStr$)+1
   70REPEAT I%-=1:UNTIL MID$(EnvStr$,I%,1)<>" "
   80IF MID$(EnvStr$,I%,1)<>"""" THEN
   90   I%=LEN(EnvStr$)
  100   REPEAT I%-=1:UNTIL MID$(EnvStr$,I%,1)=" "
  110   Lf$=RIGHT$(EnvStr$,LEN(EnvStr$)-I%+1)
  120   REM Put in your procedure for opening up the window
  130   REM Lf$ is the file name open that file here
  140ENDIF
  150ENDPROC
  160

:� Example Procedure for seeing what was double clicked
� �_ClickLoad
(
Lf$=""
2ș "OS_GetEnv" � EnvStr$
<I%=�(EnvStr$)+1
F!� I%-=1:� �EnvStr$,I%,1)<>" "
P� �EnvStr$,I%,1)<>"""" �
Z   I%=�(EnvStr$)
d#   � I%-=1:� �EnvStr$,I%,1)=" "
n$   Lf$=�EnvStr$,�(EnvStr$)-I%+1)
x8   � Put in your procedure for opening up the window
�1   � Lf$ is the file name open that file here
��
��
�
�
00000000  0d 00 0a 3a f4 20 45 78  61 6d 70 6c 65 20 50 72  |...:. Example Pr|
00000010  6f 63 65 64 75 72 65 20  66 6f 72 20 73 65 65 69  |ocedure for seei|
00000020  6e 67 20 77 68 61 74 20  77 61 73 20 64 6f 75 62  |ng what was doub|
00000030  6c 65 20 63 6c 69 63 6b  65 64 0d 00 14 11 dd 20  |le clicked..... |
00000040  f2 5f 43 6c 69 63 6b 4c  6f 61 64 0d 00 28 0a 4c  |._ClickLoad..(.L|
00000050  66 24 3d 22 22 0d 00 32  1c c8 99 20 22 4f 53 5f  |f$=""..2... "OS_|
00000060  47 65 74 45 6e 76 22 20  b8 20 45 6e 76 53 74 72  |GetEnv" . EnvStr|
00000070  24 0d 00 3c 13 49 25 3d  a9 28 45 6e 76 53 74 72  |$..<.I%=.(EnvStr|
00000080  24 29 2b 31 0d 00 46 21  f5 20 49 25 2d 3d 31 3a  |$)+1..F!. I%-=1:|
00000090  fd 20 c1 45 6e 76 53 74  72 24 2c 49 25 2c 31 29  |. .EnvStr$,I%,1)|
000000a0  3c 3e 22 20 22 0d 00 50  1c e7 20 c1 45 6e 76 53  |<>" "..P.. .EnvS|
000000b0  74 72 24 2c 49 25 2c 31  29 3c 3e 22 22 22 22 20  |tr$,I%,1)<>"""" |
000000c0  8c 0d 00 5a 14 20 20 20  49 25 3d a9 28 45 6e 76  |...Z.   I%=.(Env|
000000d0  53 74 72 24 29 0d 00 64  23 20 20 20 f5 20 49 25  |Str$)..d#   . I%|
000000e0  2d 3d 31 3a fd 20 c1 45  6e 76 53 74 72 24 2c 49  |-=1:. .EnvStr$,I|
000000f0  25 2c 31 29 3d 22 20 22  0d 00 6e 24 20 20 20 4c  |%,1)=" "..n$   L|
00000100  66 24 3d c2 45 6e 76 53  74 72 24 2c a9 28 45 6e  |f$=.EnvStr$,.(En|
00000110  76 53 74 72 24 29 2d 49  25 2b 31 29 0d 00 78 38  |vStr$)-I%+1)..x8|
00000120  20 20 20 f4 20 50 75 74  20 69 6e 20 79 6f 75 72  |   . Put in your|
00000130  20 70 72 6f 63 65 64 75  72 65 20 66 6f 72 20 6f  | procedure for o|
00000140  70 65 6e 69 6e 67 20 75  70 20 74 68 65 20 77 69  |pening up the wi|
00000150  6e 64 6f 77 0d 00 82 31  20 20 20 f4 20 4c 66 24  |ndow...1   . Lf$|
00000160  20 69 73 20 74 68 65 20  66 69 6c 65 20 6e 61 6d  | is the file nam|
00000170  65 20 6f 70 65 6e 20 74  68 61 74 20 66 69 6c 65  |e open that file|
00000180  20 68 65 72 65 0d 00 8c  05 cd 0d 00 96 05 e1 0d  | here...........|
00000190  00 a0 04 0d ff                                    |.....|
00000195