Home » Archimedes archive » Acorn User » AU 1998-10.adf » Features » DesktopPD/PinPatch/!BdrpSlide/!RunImage
DesktopPD/PinPatch/!BdrpSlide/!RunImage
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 » Features |
Filename: | DesktopPD/PinPatch/!BdrpSlide/!RunImage |
Read OK: | ✔ |
File size: | 0665 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
10REM Backdrop Slideshow version 1.00 (28th June 1997) LEN Matthew Bullock 20: 30ON ERROR ERROR 0,REPORT$+" at line "+STR$(ERL) 40: 50REM change the next line to point to the directory containing the two directories of 60REM slideshow images 70image_path$ = "<JPEGImages$Dir>." 80: 90REM change the following line to the number of centiseconds between a change of backdrop 100change_delay% = 60 * 100 110: 120REM change the following line to the command to set the backdrop 121set_backdrop_command$ = "Backdrop -Scale" 130: 140PROCRandomize 150DIM poll_block% 256 160DIM messages% 4 170messages%!0=0 180PROCchange_backdrop 190SYS "Wimp_Initialise",310,&4B534154,"Backdrop slideshow",messages% TO ,task_handle% 200REPEAT 210 SYS "OS_ReadMonotonicTime" TO next_null% 220 next_null% += change_delay% 230 SYS "Wimp_PollIdle",&83830,poll_block%,next_null% TO event_code% 240 CASE event_code% OF 250 WHEN 0 : PROCchange_backdrop 260 WHEN 17,18 : IF poll_block%!16 = 0 THEN 270 SYS "Wimp_CloseDown",task_handle%,&4B534154 280 END 290 ENDIF 300 ENDCASE 310UNTIL FALSE 320END 330: 340DEF PROCchange_backdrop 350 LOCAL image_number%,new_image_path$ 360 image_number% = INT(RND(100))-1 370 new_image_path$ = image_path$ 380 IF image_number% < 50 THEN new_image_path$ += "00-49.sa" ELSE new_image_path$ += "50-99.sa" 390 IF image_number% < 10 THEN new_image_path$ += "0" 400 new_image_path$ += STR$(image_number%) 410 OSCLI set_backdrop_command$+" "+new_image_path$ 420ENDPROC 430: 440DEF PROCRandomize 450 REM sets the random seed based on the real time clock 460 LOCAL st%,t% 470 DIM st% 20 480 st%?0=3 490 SYS "OS_Word",14,st% 500 t% = st%?0 OR (st%?1 << 8) OR (st%?2 << 16) 510 t% = RND(-t%) 520ENDPROC
H� Backdrop Slideshow version 1.00 (28th June 1997) � Matthew Bullock : � � � 0,�$+" at line "+�(�) (: 2V� change the next line to point to the directory containing the two directories of <� slideshow images F%image_path$ = "<JPEGImages$Dir>." P: ZZ� change the following line to the number of centiseconds between a change of backdrop dchange_delay% = 60 * 100 n: xB� change the following line to the command to set the backdrop y-set_backdrop_command$ = "Backdrop -Scale" �: ��Randomize �� poll_block% 256 �� messages% 4 �messages%!0=0 ��change_backdrop �Uș "Wimp_Initialise",310,&4B534154,"Backdrop slideshow",messages% � ,task_handle% �� �, ș "OS_ReadMonotonicTime" � next_null% �! next_null% += change_delay% �D ș "Wimp_PollIdle",&83830,poll_block%,next_null% � event_code% � Ȏ event_code% � � � 0 : �change_backdrop ( � 17,18 : � poll_block%!16 = 0 � B ș "Wimp_CloseDown",task_handle%,&4B534154 � " � , � 6� � @� J: T� �change_backdrop ^% � image_number%,new_image_path$ h! image_number% = �(�(100))-1 r# new_image_path$ = image_path$ |\ � image_number% < 50 � new_image_path$ += "00-49.sa" � new_image_path$ += "50-99.sa" �3 � image_number% < 10 � new_image_path$ += "0" �) new_image_path$ += �(image_number%) �1 � set_backdrop_command$+" "+new_image_path$ �� �: �� �Randomize �9 � sets the random seed based on the real time clock � � st%,t% � � st% 20 � st%?0=3 � ș "OS_Word",14,st% �/ t% = st%?0 � (st%?1 << 8) � (st%?2 << 16) � t% = �(-t%) � �
00000000 0d 00 0a 48 f4 20 42 61 63 6b 64 72 6f 70 20 53 |...H. Backdrop S| 00000010 6c 69 64 65 73 68 6f 77 20 76 65 72 73 69 6f 6e |lideshow version| 00000020 20 31 2e 30 30 20 28 32 38 74 68 20 4a 75 6e 65 | 1.00 (28th June| 00000030 20 31 39 39 37 29 20 a9 20 4d 61 74 74 68 65 77 | 1997) . Matthew| 00000040 20 42 75 6c 6c 6f 63 6b 0d 00 14 05 3a 0d 00 1e | Bullock....:...| 00000050 1f ee 20 85 20 85 20 30 2c f6 24 2b 22 20 61 74 |.. . . 0,.$+" at| 00000060 20 6c 69 6e 65 20 22 2b c3 28 9e 29 0d 00 28 05 | line "+.(.)..(.| 00000070 3a 0d 00 32 56 f4 20 63 68 61 6e 67 65 20 74 68 |:..2V. change th| 00000080 65 20 6e 65 78 74 20 6c 69 6e 65 20 74 6f 20 70 |e next line to p| 00000090 6f 69 6e 74 20 74 6f 20 74 68 65 20 64 69 72 65 |oint to the dire| 000000a0 63 74 6f 72 79 20 63 6f 6e 74 61 69 6e 69 6e 67 |ctory containing| 000000b0 20 74 68 65 20 74 77 6f 20 64 69 72 65 63 74 6f | the two directo| 000000c0 72 69 65 73 20 6f 66 0d 00 3c 16 f4 20 73 6c 69 |ries of..<.. sli| 000000d0 64 65 73 68 6f 77 20 69 6d 61 67 65 73 0d 00 46 |deshow images..F| 000000e0 25 69 6d 61 67 65 5f 70 61 74 68 24 20 3d 20 22 |%image_path$ = "| 000000f0 3c 4a 50 45 47 49 6d 61 67 65 73 24 44 69 72 3e |<JPEGImages$Dir>| 00000100 2e 22 0d 00 50 05 3a 0d 00 5a 5a f4 20 63 68 61 |."..P.:..ZZ. cha| 00000110 6e 67 65 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e |nge the followin| 00000120 67 20 6c 69 6e 65 20 74 6f 20 74 68 65 20 6e 75 |g line to the nu| 00000130 6d 62 65 72 20 6f 66 20 63 65 6e 74 69 73 65 63 |mber of centisec| 00000140 6f 6e 64 73 20 62 65 74 77 65 65 6e 20 61 20 63 |onds between a c| 00000150 68 61 6e 67 65 20 6f 66 20 62 61 63 6b 64 72 6f |hange of backdro| 00000160 70 0d 00 64 1c 63 68 61 6e 67 65 5f 64 65 6c 61 |p..d.change_dela| 00000170 79 25 20 3d 20 36 30 20 2a 20 31 30 30 0d 00 6e |y% = 60 * 100..n| 00000180 05 3a 0d 00 78 42 f4 20 63 68 61 6e 67 65 20 74 |.:..xB. change t| 00000190 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6c 69 6e |he following lin| 000001a0 65 20 74 6f 20 74 68 65 20 63 6f 6d 6d 61 6e 64 |e to the command| 000001b0 20 74 6f 20 73 65 74 20 74 68 65 20 62 61 63 6b | to set the back| 000001c0 64 72 6f 70 0d 00 79 2d 73 65 74 5f 62 61 63 6b |drop..y-set_back| 000001d0 64 72 6f 70 5f 63 6f 6d 6d 61 6e 64 24 20 3d 20 |drop_command$ = | 000001e0 22 42 61 63 6b 64 72 6f 70 20 2d 53 63 61 6c 65 |"Backdrop -Scale| 000001f0 22 0d 00 82 05 3a 0d 00 8c 0e f2 52 61 6e 64 6f |"....:.....Rando| 00000200 6d 69 7a 65 0d 00 96 15 de 20 70 6f 6c 6c 5f 62 |mize..... poll_b| 00000210 6c 6f 63 6b 25 20 32 35 36 0d 00 a0 11 de 20 6d |lock% 256..... m| 00000220 65 73 73 61 67 65 73 25 20 34 0d 00 aa 11 6d 65 |essages% 4....me| 00000230 73 73 61 67 65 73 25 21 30 3d 30 0d 00 b4 14 f2 |ssages%!0=0.....| 00000240 63 68 61 6e 67 65 5f 62 61 63 6b 64 72 6f 70 0d |change_backdrop.| 00000250 00 be 55 c8 99 20 22 57 69 6d 70 5f 49 6e 69 74 |..U.. "Wimp_Init| 00000260 69 61 6c 69 73 65 22 2c 33 31 30 2c 26 34 42 35 |ialise",310,&4B5| 00000270 33 34 31 35 34 2c 22 42 61 63 6b 64 72 6f 70 20 |34154,"Backdrop | 00000280 73 6c 69 64 65 73 68 6f 77 22 2c 6d 65 73 73 61 |slideshow",messa| 00000290 67 65 73 25 20 b8 20 2c 74 61 73 6b 5f 68 61 6e |ges% . ,task_han| 000002a0 64 6c 65 25 0d 00 c8 05 f5 0d 00 d2 2c 20 20 c8 |dle%........, .| 000002b0 99 20 22 4f 53 5f 52 65 61 64 4d 6f 6e 6f 74 6f |. "OS_ReadMonoto| 000002c0 6e 69 63 54 69 6d 65 22 20 b8 20 6e 65 78 74 5f |nicTime" . next_| 000002d0 6e 75 6c 6c 25 0d 00 dc 21 20 20 6e 65 78 74 5f |null%...! next_| 000002e0 6e 75 6c 6c 25 20 2b 3d 20 63 68 61 6e 67 65 5f |null% += change_| 000002f0 64 65 6c 61 79 25 0d 00 e6 44 20 20 c8 99 20 22 |delay%...D .. "| 00000300 57 69 6d 70 5f 50 6f 6c 6c 49 64 6c 65 22 2c 26 |Wimp_PollIdle",&| 00000310 38 33 38 33 30 2c 70 6f 6c 6c 5f 62 6c 6f 63 6b |83830,poll_block| 00000320 25 2c 6e 65 78 74 5f 6e 75 6c 6c 25 20 b8 20 65 |%,next_null% . e| 00000330 76 65 6e 74 5f 63 6f 64 65 25 0d 00 f0 16 20 20 |vent_code%.... | 00000340 c8 8e 20 65 76 65 6e 74 5f 63 6f 64 65 25 20 ca |.. event_code% .| 00000350 0d 00 fa 1e 20 20 20 20 c9 20 30 20 3a 20 f2 63 |.... . 0 : .c| 00000360 68 61 6e 67 65 5f 62 61 63 6b 64 72 6f 70 0d 01 |hange_backdrop..| 00000370 04 28 20 20 20 20 c9 20 31 37 2c 31 38 20 3a 20 |.( . 17,18 : | 00000380 e7 20 70 6f 6c 6c 5f 62 6c 6f 63 6b 25 21 31 36 |. poll_block%!16| 00000390 20 3d 20 30 20 8c 0d 01 0e 42 20 20 20 20 20 20 | = 0 ....B | 000003a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 c8 99 | ..| 000003b0 20 22 57 69 6d 70 5f 43 6c 6f 73 65 44 6f 77 6e | "Wimp_CloseDown| 000003c0 22 2c 74 61 73 6b 5f 68 61 6e 64 6c 65 25 2c 26 |",task_handle%,&| 000003d0 34 42 35 33 34 31 35 34 0d 01 18 19 20 20 20 20 |4B534154.... | 000003e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000003f0 e0 0d 01 22 16 20 20 20 20 20 20 20 20 20 20 20 |...". | 00000400 20 20 20 20 20 20 cd 0d 01 2c 07 20 20 cb 0d 01 | ...,. ...| 00000410 36 07 fd 20 a3 0d 01 40 05 e0 0d 01 4a 05 3a 0d |6.. ...@....J.:.| 00000420 01 54 16 dd 20 f2 63 68 61 6e 67 65 5f 62 61 63 |.T.. .change_bac| 00000430 6b 64 72 6f 70 0d 01 5e 25 20 20 ea 20 69 6d 61 |kdrop..^% . ima| 00000440 67 65 5f 6e 75 6d 62 65 72 25 2c 6e 65 77 5f 69 |ge_number%,new_i| 00000450 6d 61 67 65 5f 70 61 74 68 24 0d 01 68 21 20 20 |mage_path$..h! | 00000460 69 6d 61 67 65 5f 6e 75 6d 62 65 72 25 20 3d 20 |image_number% = | 00000470 a8 28 b3 28 31 30 30 29 29 2d 31 0d 01 72 23 20 |.(.(100))-1..r# | 00000480 20 6e 65 77 5f 69 6d 61 67 65 5f 70 61 74 68 24 | new_image_path$| 00000490 20 3d 20 69 6d 61 67 65 5f 70 61 74 68 24 0d 01 | = image_path$..| 000004a0 7c 5c 20 20 20 20 e7 20 69 6d 61 67 65 5f 6e 75 ||\ . image_nu| 000004b0 6d 62 65 72 25 20 3c 20 35 30 20 8c 20 6e 65 77 |mber% < 50 . new| 000004c0 5f 69 6d 61 67 65 5f 70 61 74 68 24 20 2b 3d 20 |_image_path$ += | 000004d0 22 30 30 2d 34 39 2e 73 61 22 20 8b 20 6e 65 77 |"00-49.sa" . new| 000004e0 5f 69 6d 61 67 65 5f 70 61 74 68 24 20 2b 3d 20 |_image_path$ += | 000004f0 22 35 30 2d 39 39 2e 73 61 22 0d 01 86 33 20 20 |"50-99.sa"...3 | 00000500 e7 20 69 6d 61 67 65 5f 6e 75 6d 62 65 72 25 20 |. image_number% | 00000510 3c 20 31 30 20 8c 20 6e 65 77 5f 69 6d 61 67 65 |< 10 . new_image| 00000520 5f 70 61 74 68 24 20 2b 3d 20 22 30 22 0d 01 90 |_path$ += "0"...| 00000530 29 20 20 6e 65 77 5f 69 6d 61 67 65 5f 70 61 74 |) new_image_pat| 00000540 68 24 20 2b 3d 20 c3 28 69 6d 61 67 65 5f 6e 75 |h$ += .(image_nu| 00000550 6d 62 65 72 25 29 0d 01 9a 31 20 20 ff 20 73 65 |mber%)...1 . se| 00000560 74 5f 62 61 63 6b 64 72 6f 70 5f 63 6f 6d 6d 61 |t_backdrop_comma| 00000570 6e 64 24 2b 22 20 22 2b 6e 65 77 5f 69 6d 61 67 |nd$+" "+new_imag| 00000580 65 5f 70 61 74 68 24 0d 01 a4 05 e1 0d 01 ae 07 |e_path$.........| 00000590 3a 20 20 0d 01 b8 10 dd 20 f2 52 61 6e 64 6f 6d |: ..... .Random| 000005a0 69 7a 65 0d 01 c2 39 20 20 f4 20 73 65 74 73 20 |ize...9 . sets | 000005b0 74 68 65 20 72 61 6e 64 6f 6d 20 73 65 65 64 20 |the random seed | 000005c0 62 61 73 65 64 20 6f 6e 20 74 68 65 20 72 65 61 |based on the rea| 000005d0 6c 20 74 69 6d 65 20 63 6c 6f 63 6b 0d 01 cc 0e |l time clock....| 000005e0 20 20 ea 20 73 74 25 2c 74 25 0d 01 d6 0e 20 20 | . st%,t%.... | 000005f0 de 20 73 74 25 20 32 30 0d 01 e0 0d 20 20 73 74 |. st% 20.... st| 00000600 25 3f 30 3d 33 0d 01 ea 19 20 20 c8 99 20 22 4f |%?0=3.... .. "O| 00000610 53 5f 57 6f 72 64 22 2c 31 34 2c 73 74 25 0d 01 |S_Word",14,st%..| 00000620 f4 2f 20 20 74 25 20 3d 20 73 74 25 3f 30 20 84 |./ t% = st%?0 .| 00000630 20 28 73 74 25 3f 31 20 3c 3c 20 38 29 20 84 20 | (st%?1 << 8) . | 00000640 28 73 74 25 3f 32 20 3c 3c 20 31 36 29 0d 01 fe |(st%?2 << 16)...| 00000650 11 20 20 74 25 20 3d 20 b3 28 2d 74 25 29 0d 02 |. t% = .(-t%)..| 00000660 08 05 e1 0d ff |.....| 00000665