Home » Archimedes archive » Acorn User » AU 1997-04 B.adf » PD » PDScheme/Newshound/NewsHound/!NewsHound/!Run

PDScheme/Newshound/NewsHound/!NewsHound/!Run

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 1997-04 B.adf » PD
Filename: PDScheme/Newshound/NewsHound/!NewsHound/!Run
Read OK:
File size: 08C2 bytes
Load address: 0000
Exec address: 0000
File contents
| These 2 lines will set the paths to us if we've been run from a diff. place before
If "<NewsHound$Dir>" <> "<Obey$Dir>" Then Set NewsHound$NewsDir <Obey$Dir>.News
If "<NewsHound$Dir>" <> "<Obey$Dir>" Then Set NewsHound$ConfigDir <Obey$Dir>.Config

Set NewsHound$Dir <Obey$Dir>
IconSprites <NewsHound$Dir>.!Sprites

If "<NewsHound$NewsDir>" = "" Then Set NewsHound$NewsDir <Obey$Dir>.News
If "<NewsHound$ConfigDir>" = "" Then Set NewsHound$ConfigDir <Obey$Dir>.Config
| Note - both news & config dir must always be writeable.

RMEnsure UtilityModule 3.10 Error This application is only suitable for use with RISC OS 3.10 or later versions

RMENSURE FilterManager 0.09 RMLoad System:modules.FilterMgr
RMENSURE FilterManager 0.09 Error You Need filter manager 0.09 or later

RMEnsure BorderUtils 0.02 RMEnsure WindowManager 3.17  RMLoad System:modules.BorderUtil

RMENSURE Toolbox    0.00  RMLOAD System:modules.toolbox.toolbox
RMENSURE Toolbox    1.23  ERROR You need toolbox 1.23 or later to run !MinApp
RMENSURE Window     0.00  RMLOAD System:modules.toolbox.window
RMENSURE Window     1.15  ERROR You need window 1.15 or later to run !MinApp
RMENSURE Menu       0.00  RMLOAD System:modules.toolbox.menu
RMENSURE Menu       0.15  ERROR You need menu 0.15 or later to run !MinApp
RMENSURE Iconbar    0.00  RMLOAD System:modules.toolbox.iconbar
RMENSURE Iconbar    1.08  ERROR You need iconbar 1.08 or later to run !MinApp
RMENSURE ProgInfo   0.00  RMLOAD System:modules.toolbox.proginfo
RMENSURE ProgInfo   0.05  ERROR You need proginfo 0.05 or later to run !MinApp
| RMENSURE DrawFile  0.00  RMLOAD System:modules.DrawFile
| RMENSURE DrawFile  0.00  ERROR You need DrawFile to run !Hyper


Wimpslot -min 220k -max 220k

If "<SysLog$Dir>"="" then Error !SysLog application not seen by filer
RMEnsure SysLog 0.14 Run <SysLog$Dir>.!Run
RMEnsure SysLog 0.14 Error NewsHound needs SysLog 0.14 or later

| Enable this to stop syslog messages been memory cached
| SysLog_Flush ON

| Enable this to set full debugging level
| syslog NewsHound 255

If "<NewsHound$Running>" = "Yes" Then Error Only one copy of NewsHound May run at a time

Wimpslot -min 220k -max 220k

Set NewsHound$Running Yes
Run <NewsHound$Dir>.!Runimage
Unset NewsHound$Running
00000000  0a 7c 20 54 68 65 73 65  20 32 20 6c 69 6e 65 73  |.| These 2 lines|
00000010  20 77 69 6c 6c 20 73 65  74 20 74 68 65 20 70 61  | will set the pa|
00000020  74 68 73 20 74 6f 20 75  73 20 69 66 20 77 65 27  |ths to us if we'|
00000030  76 65 20 62 65 65 6e 20  72 75 6e 20 66 72 6f 6d  |ve been run from|
00000040  20 61 20 64 69 66 66 2e  20 70 6c 61 63 65 20 62  | a diff. place b|
00000050  65 66 6f 72 65 0a 49 66  20 22 3c 4e 65 77 73 48  |efore.If "<NewsH|
00000060  6f 75 6e 64 24 44 69 72  3e 22 20 3c 3e 20 22 3c  |ound$Dir>" <> "<|
00000070  4f 62 65 79 24 44 69 72  3e 22 20 54 68 65 6e 20  |Obey$Dir>" Then |
00000080  53 65 74 20 4e 65 77 73  48 6f 75 6e 64 24 4e 65  |Set NewsHound$Ne|
00000090  77 73 44 69 72 20 3c 4f  62 65 79 24 44 69 72 3e  |wsDir <Obey$Dir>|
000000a0  2e 4e 65 77 73 0a 49 66  20 22 3c 4e 65 77 73 48  |.News.If "<NewsH|
000000b0  6f 75 6e 64 24 44 69 72  3e 22 20 3c 3e 20 22 3c  |ound$Dir>" <> "<|
000000c0  4f 62 65 79 24 44 69 72  3e 22 20 54 68 65 6e 20  |Obey$Dir>" Then |
000000d0  53 65 74 20 4e 65 77 73  48 6f 75 6e 64 24 43 6f  |Set NewsHound$Co|
000000e0  6e 66 69 67 44 69 72 20  3c 4f 62 65 79 24 44 69  |nfigDir <Obey$Di|
000000f0  72 3e 2e 43 6f 6e 66 69  67 0a 0a 53 65 74 20 4e  |r>.Config..Set N|
00000100  65 77 73 48 6f 75 6e 64  24 44 69 72 20 3c 4f 62  |ewsHound$Dir <Ob|
00000110  65 79 24 44 69 72 3e 0a  49 63 6f 6e 53 70 72 69  |ey$Dir>.IconSpri|
00000120  74 65 73 20 3c 4e 65 77  73 48 6f 75 6e 64 24 44  |tes <NewsHound$D|
00000130  69 72 3e 2e 21 53 70 72  69 74 65 73 0a 0a 49 66  |ir>.!Sprites..If|
00000140  20 22 3c 4e 65 77 73 48  6f 75 6e 64 24 4e 65 77  | "<NewsHound$New|
00000150  73 44 69 72 3e 22 20 3d  20 22 22 20 54 68 65 6e  |sDir>" = "" Then|
00000160  20 53 65 74 20 4e 65 77  73 48 6f 75 6e 64 24 4e  | Set NewsHound$N|
00000170  65 77 73 44 69 72 20 3c  4f 62 65 79 24 44 69 72  |ewsDir <Obey$Dir|
00000180  3e 2e 4e 65 77 73 0a 49  66 20 22 3c 4e 65 77 73  |>.News.If "<News|
00000190  48 6f 75 6e 64 24 43 6f  6e 66 69 67 44 69 72 3e  |Hound$ConfigDir>|
000001a0  22 20 3d 20 22 22 20 54  68 65 6e 20 53 65 74 20  |" = "" Then Set |
000001b0  4e 65 77 73 48 6f 75 6e  64 24 43 6f 6e 66 69 67  |NewsHound$Config|
000001c0  44 69 72 20 3c 4f 62 65  79 24 44 69 72 3e 2e 43  |Dir <Obey$Dir>.C|
000001d0  6f 6e 66 69 67 0a 7c 20  4e 6f 74 65 20 2d 20 62  |onfig.| Note - b|
000001e0  6f 74 68 20 6e 65 77 73  20 26 20 63 6f 6e 66 69  |oth news & confi|
000001f0  67 20 64 69 72 20 6d 75  73 74 20 61 6c 77 61 79  |g dir must alway|
00000200  73 20 62 65 20 77 72 69  74 65 61 62 6c 65 2e 0a  |s be writeable..|
00000210  0a 52 4d 45 6e 73 75 72  65 20 55 74 69 6c 69 74  |.RMEnsure Utilit|
00000220  79 4d 6f 64 75 6c 65 20  33 2e 31 30 20 45 72 72  |yModule 3.10 Err|
00000230  6f 72 20 54 68 69 73 20  61 70 70 6c 69 63 61 74  |or This applicat|
00000240  69 6f 6e 20 69 73 20 6f  6e 6c 79 20 73 75 69 74  |ion is only suit|
00000250  61 62 6c 65 20 66 6f 72  20 75 73 65 20 77 69 74  |able for use wit|
00000260  68 20 52 49 53 43 20 4f  53 20 33 2e 31 30 20 6f  |h RISC OS 3.10 o|
00000270  72 20 6c 61 74 65 72 20  76 65 72 73 69 6f 6e 73  |r later versions|
00000280  0a 0a 52 4d 45 4e 53 55  52 45 20 46 69 6c 74 65  |..RMENSURE Filte|
00000290  72 4d 61 6e 61 67 65 72  20 30 2e 30 39 20 52 4d  |rManager 0.09 RM|
000002a0  4c 6f 61 64 20 53 79 73  74 65 6d 3a 6d 6f 64 75  |Load System:modu|
000002b0  6c 65 73 2e 46 69 6c 74  65 72 4d 67 72 0a 52 4d  |les.FilterMgr.RM|
000002c0  45 4e 53 55 52 45 20 46  69 6c 74 65 72 4d 61 6e  |ENSURE FilterMan|
000002d0  61 67 65 72 20 30 2e 30  39 20 45 72 72 6f 72 20  |ager 0.09 Error |
000002e0  59 6f 75 20 4e 65 65 64  20 66 69 6c 74 65 72 20  |You Need filter |
000002f0  6d 61 6e 61 67 65 72 20  30 2e 30 39 20 6f 72 20  |manager 0.09 or |
00000300  6c 61 74 65 72 0a 0a 52  4d 45 6e 73 75 72 65 20  |later..RMEnsure |
00000310  42 6f 72 64 65 72 55 74  69 6c 73 20 30 2e 30 32  |BorderUtils 0.02|
00000320  20 52 4d 45 6e 73 75 72  65 20 57 69 6e 64 6f 77  | RMEnsure Window|
00000330  4d 61 6e 61 67 65 72 20  33 2e 31 37 20 20 52 4d  |Manager 3.17  RM|
00000340  4c 6f 61 64 20 53 79 73  74 65 6d 3a 6d 6f 64 75  |Load System:modu|
00000350  6c 65 73 2e 42 6f 72 64  65 72 55 74 69 6c 0a 0a  |les.BorderUtil..|
00000360  52 4d 45 4e 53 55 52 45  20 54 6f 6f 6c 62 6f 78  |RMENSURE Toolbox|
00000370  20 20 20 20 30 2e 30 30  20 20 52 4d 4c 4f 41 44  |    0.00  RMLOAD|
00000380  20 53 79 73 74 65 6d 3a  6d 6f 64 75 6c 65 73 2e  | System:modules.|
00000390  74 6f 6f 6c 62 6f 78 2e  74 6f 6f 6c 62 6f 78 0a  |toolbox.toolbox.|
000003a0  52 4d 45 4e 53 55 52 45  20 54 6f 6f 6c 62 6f 78  |RMENSURE Toolbox|
000003b0  20 20 20 20 31 2e 32 33  20 20 45 52 52 4f 52 20  |    1.23  ERROR |
000003c0  59 6f 75 20 6e 65 65 64  20 74 6f 6f 6c 62 6f 78  |You need toolbox|
000003d0  20 31 2e 32 33 20 6f 72  20 6c 61 74 65 72 20 74  | 1.23 or later t|
000003e0  6f 20 72 75 6e 20 21 4d  69 6e 41 70 70 0a 52 4d  |o run !MinApp.RM|
000003f0  45 4e 53 55 52 45 20 57  69 6e 64 6f 77 20 20 20  |ENSURE Window   |
00000400  20 20 30 2e 30 30 20 20  52 4d 4c 4f 41 44 20 53  |  0.00  RMLOAD S|
00000410  79 73 74 65 6d 3a 6d 6f  64 75 6c 65 73 2e 74 6f  |ystem:modules.to|
00000420  6f 6c 62 6f 78 2e 77 69  6e 64 6f 77 0a 52 4d 45  |olbox.window.RME|
00000430  4e 53 55 52 45 20 57 69  6e 64 6f 77 20 20 20 20  |NSURE Window    |
00000440  20 31 2e 31 35 20 20 45  52 52 4f 52 20 59 6f 75  | 1.15  ERROR You|
00000450  20 6e 65 65 64 20 77 69  6e 64 6f 77 20 31 2e 31  | need window 1.1|
00000460  35 20 6f 72 20 6c 61 74  65 72 20 74 6f 20 72 75  |5 or later to ru|
00000470  6e 20 21 4d 69 6e 41 70  70 0a 52 4d 45 4e 53 55  |n !MinApp.RMENSU|
00000480  52 45 20 4d 65 6e 75 20  20 20 20 20 20 20 30 2e  |RE Menu       0.|
00000490  30 30 20 20 52 4d 4c 4f  41 44 20 53 79 73 74 65  |00  RMLOAD Syste|
000004a0  6d 3a 6d 6f 64 75 6c 65  73 2e 74 6f 6f 6c 62 6f  |m:modules.toolbo|
000004b0  78 2e 6d 65 6e 75 0a 52  4d 45 4e 53 55 52 45 20  |x.menu.RMENSURE |
000004c0  4d 65 6e 75 20 20 20 20  20 20 20 30 2e 31 35 20  |Menu       0.15 |
000004d0  20 45 52 52 4f 52 20 59  6f 75 20 6e 65 65 64 20  | ERROR You need |
000004e0  6d 65 6e 75 20 30 2e 31  35 20 6f 72 20 6c 61 74  |menu 0.15 or lat|
000004f0  65 72 20 74 6f 20 72 75  6e 20 21 4d 69 6e 41 70  |er to run !MinAp|
00000500  70 0a 52 4d 45 4e 53 55  52 45 20 49 63 6f 6e 62  |p.RMENSURE Iconb|
00000510  61 72 20 20 20 20 30 2e  30 30 20 20 52 4d 4c 4f  |ar    0.00  RMLO|
00000520  41 44 20 53 79 73 74 65  6d 3a 6d 6f 64 75 6c 65  |AD System:module|
00000530  73 2e 74 6f 6f 6c 62 6f  78 2e 69 63 6f 6e 62 61  |s.toolbox.iconba|
00000540  72 0a 52 4d 45 4e 53 55  52 45 20 49 63 6f 6e 62  |r.RMENSURE Iconb|
00000550  61 72 20 20 20 20 31 2e  30 38 20 20 45 52 52 4f  |ar    1.08  ERRO|
00000560  52 20 59 6f 75 20 6e 65  65 64 20 69 63 6f 6e 62  |R You need iconb|
00000570  61 72 20 31 2e 30 38 20  6f 72 20 6c 61 74 65 72  |ar 1.08 or later|
00000580  20 74 6f 20 72 75 6e 20  21 4d 69 6e 41 70 70 0a  | to run !MinApp.|
00000590  52 4d 45 4e 53 55 52 45  20 50 72 6f 67 49 6e 66  |RMENSURE ProgInf|
000005a0  6f 20 20 20 30 2e 30 30  20 20 52 4d 4c 4f 41 44  |o   0.00  RMLOAD|
000005b0  20 53 79 73 74 65 6d 3a  6d 6f 64 75 6c 65 73 2e  | System:modules.|
000005c0  74 6f 6f 6c 62 6f 78 2e  70 72 6f 67 69 6e 66 6f  |toolbox.proginfo|
000005d0  0a 52 4d 45 4e 53 55 52  45 20 50 72 6f 67 49 6e  |.RMENSURE ProgIn|
000005e0  66 6f 20 20 20 30 2e 30  35 20 20 45 52 52 4f 52  |fo   0.05  ERROR|
000005f0  20 59 6f 75 20 6e 65 65  64 20 70 72 6f 67 69 6e  | You need progin|
00000600  66 6f 20 30 2e 30 35 20  6f 72 20 6c 61 74 65 72  |fo 0.05 or later|
00000610  20 74 6f 20 72 75 6e 20  21 4d 69 6e 41 70 70 0a  | to run !MinApp.|
00000620  7c 20 52 4d 45 4e 53 55  52 45 20 44 72 61 77 46  || RMENSURE DrawF|
00000630  69 6c 65 20 20 30 2e 30  30 20 20 52 4d 4c 4f 41  |ile  0.00  RMLOA|
00000640  44 20 53 79 73 74 65 6d  3a 6d 6f 64 75 6c 65 73  |D System:modules|
00000650  2e 44 72 61 77 46 69 6c  65 0a 7c 20 52 4d 45 4e  |.DrawFile.| RMEN|
00000660  53 55 52 45 20 44 72 61  77 46 69 6c 65 20 20 30  |SURE DrawFile  0|
00000670  2e 30 30 20 20 45 52 52  4f 52 20 59 6f 75 20 6e  |.00  ERROR You n|
00000680  65 65 64 20 44 72 61 77  46 69 6c 65 20 74 6f 20  |eed DrawFile to |
00000690  72 75 6e 20 21 48 79 70  65 72 0a 0a 0a 57 69 6d  |run !Hyper...Wim|
000006a0  70 73 6c 6f 74 20 2d 6d  69 6e 20 32 32 30 6b 20  |pslot -min 220k |
000006b0  2d 6d 61 78 20 32 32 30  6b 0a 0a 49 66 20 22 3c  |-max 220k..If "<|
000006c0  53 79 73 4c 6f 67 24 44  69 72 3e 22 3d 22 22 20  |SysLog$Dir>"="" |
000006d0  74 68 65 6e 20 45 72 72  6f 72 20 21 53 79 73 4c  |then Error !SysL|
000006e0  6f 67 20 61 70 70 6c 69  63 61 74 69 6f 6e 20 6e  |og application n|
000006f0  6f 74 20 73 65 65 6e 20  62 79 20 66 69 6c 65 72  |ot seen by filer|
00000700  0a 52 4d 45 6e 73 75 72  65 20 53 79 73 4c 6f 67  |.RMEnsure SysLog|
00000710  20 30 2e 31 34 20 52 75  6e 20 3c 53 79 73 4c 6f  | 0.14 Run <SysLo|
00000720  67 24 44 69 72 3e 2e 21  52 75 6e 0a 52 4d 45 6e  |g$Dir>.!Run.RMEn|
00000730  73 75 72 65 20 53 79 73  4c 6f 67 20 30 2e 31 34  |sure SysLog 0.14|
00000740  20 45 72 72 6f 72 20 4e  65 77 73 48 6f 75 6e 64  | Error NewsHound|
00000750  20 6e 65 65 64 73 20 53  79 73 4c 6f 67 20 30 2e  | needs SysLog 0.|
00000760  31 34 20 6f 72 20 6c 61  74 65 72 0a 0a 7c 20 45  |14 or later..| E|
00000770  6e 61 62 6c 65 20 74 68  69 73 20 74 6f 20 73 74  |nable this to st|
00000780  6f 70 20 73 79 73 6c 6f  67 20 6d 65 73 73 61 67  |op syslog messag|
00000790  65 73 20 62 65 65 6e 20  6d 65 6d 6f 72 79 20 63  |es been memory c|
000007a0  61 63 68 65 64 0a 7c 20  53 79 73 4c 6f 67 5f 46  |ached.| SysLog_F|
000007b0  6c 75 73 68 20 4f 4e 0a  0a 7c 20 45 6e 61 62 6c  |lush ON..| Enabl|
000007c0  65 20 74 68 69 73 20 74  6f 20 73 65 74 20 66 75  |e this to set fu|
000007d0  6c 6c 20 64 65 62 75 67  67 69 6e 67 20 6c 65 76  |ll debugging lev|
000007e0  65 6c 0a 7c 20 73 79 73  6c 6f 67 20 4e 65 77 73  |el.| syslog News|
000007f0  48 6f 75 6e 64 20 32 35  35 0a 0a 49 66 20 22 3c  |Hound 255..If "<|
00000800  4e 65 77 73 48 6f 75 6e  64 24 52 75 6e 6e 69 6e  |NewsHound$Runnin|
00000810  67 3e 22 20 3d 20 22 59  65 73 22 20 54 68 65 6e  |g>" = "Yes" Then|
00000820  20 45 72 72 6f 72 20 4f  6e 6c 79 20 6f 6e 65 20  | Error Only one |
00000830  63 6f 70 79 20 6f 66 20  4e 65 77 73 48 6f 75 6e  |copy of NewsHoun|
00000840  64 20 4d 61 79 20 72 75  6e 20 61 74 20 61 20 74  |d May run at a t|
00000850  69 6d 65 0a 0a 57 69 6d  70 73 6c 6f 74 20 2d 6d  |ime..Wimpslot -m|
00000860  69 6e 20 32 32 30 6b 20  2d 6d 61 78 20 32 32 30  |in 220k -max 220|
00000870  6b 0a 0a 53 65 74 20 4e  65 77 73 48 6f 75 6e 64  |k..Set NewsHound|
00000880  24 52 75 6e 6e 69 6e 67  20 59 65 73 0a 52 75 6e  |$Running Yes.Run|
00000890  20 3c 4e 65 77 73 48 6f  75 6e 64 24 44 69 72 3e  | <NewsHound$Dir>|
000008a0  2e 21 52 75 6e 69 6d 61  67 65 0a 55 6e 73 65 74  |.!Runimage.Unset|
000008b0  20 4e 65 77 73 48 6f 75  6e 64 24 52 75 6e 6e 69  | NewsHound$Runni|
000008c0  6e 67                                             |ng|
000008c2