home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / text / hints / volume_06 / issue07 < prev    next >
Text File  |  1995-02-16  |  34KB  |  799 lines

  1. Using RISC¡OSá3.1
  2. 6.7
  3. Hugh Eagle
  4. 6.7
  5. I know that RISC¡OSá3 has caused some problems, but to claim, as one of
  6. my correspondents does, that the upgrade from RISC¡OSá2 to RISC¡OSá3 has
  7. caused ömore incompatibilities than the upgrade from 8-bit to 32-bit
  8. machinesò is taking things just a teeny bit too far. People will be
  9. blaming Acorn for the performance of the England cricket team next!
  10. 6.7
  11. I have recently set up an A4000 from scratch. It comes with the
  12. operating system and the RISC¡OSá3 Apps already installed, and
  13. everything is beautifully logical and straightforward. If you stick to
  14. up-to-date software and use a standard printer in a straightforward way,
  15. everything is perfectly simple to use. On the strength of this
  16. experience, I have no doubt that, for new machines and new users,
  17. RISC¡OSá3 is a considerable step forward. (The A4000 Home Office also
  18. comes with a good wordprocessor, Easiwriter, and with the very easy-to-
  19. use Desktop Database installed and ready to run. Itæs a very far cry
  20. from my A310, which was configured to start up on the command line and
  21. it took me two hours to find out how to get to the ödesktopò!)
  22. 6.7
  23. As for us hardened upgraders, the question whether it was worth the
  24. hassle is harder to answer. Perhaps Acorn should have waited until the
  25. new operating system was more thoroughly tested before they released it,
  26. but then they would have been criticised for keeping us waiting. Perhaps
  27. they should have incorporated more radical improvements, but then the
  28. incompatibility problems would doubtless have been far greater. In this
  29. situation, they couldnæt win!
  30. 6.7
  31. Anyhow, rather than complaining, we should direct our thoughts towards
  32. the changes we would like to see next time round. I am accumulating a
  33. number of suggestions for the RISC¡OSá4 wish list which I hope to come
  34. back to in a future column; please let me know if you have any to add.
  35. 6.7
  36. Enough of the waffle, and on with the business ...
  37. 6.7
  38. I am afraid that, again, I havenæt had time or space to use all your
  39. contributions. I will in due course. Many thanks for them all.
  40. 6.7
  41. Printing
  42. 6.7
  43. Paper X and Y offsets and margins
  44. 6.7
  45. This subject seems to have caused a lot of confusion, not least, I
  46. imagine, because there is no reference to the Paper X and Y offsets in
  47. the manual. (These were added after RISC¡OSá3.0, I think, and seem to
  48. postdate the manual, although they are mentioned briefly on page 20 of
  49. the RISC¡OSá3.10 Release Note.)
  50. 6.7
  51. Before I go any further, I feel I should point out that this is a
  52. technical area that the vast majority of users (who are happy to use the
  53. supplied drivers and page settings) never need bother about.
  54. 6.7
  55. The following explanation is based on contributions from Bruce Brown and
  56. Tom Hughes and on some of the Read_Me files inside !Printers. It is also
  57. based mainly on experience with HP Laserjets, although most of the
  58. principles should apply equally to most other printers. I hope I have
  59. got it right ...
  60. 6.7
  61. The purpose of the Paper X and Y Offsets is to tell the printer driver
  62. which part of the paper the printer is physically capable of printing on
  63. or, in other words, to define where the printer will print if it is told
  64. to print at the top left corner of the paper. These are set via the
  65. !PrintEdit application. The Top and Left Margins, by contrast, define in
  66. which part of the paper the user wants graphics to be printed. These are
  67. set via the Paper Size window in the !Printers application. (It is these
  68. that determine where the grey border appears when you choose the öShow
  69. paper limitsò or öShow print bordersò option in Draw, Impression, etc.)
  70. 6.7
  71. When the printer driver is asked to start printing at the top left
  72. corner of the area defined by the margins: (1) first a printer reset
  73. code is sent, then (2) the start of job codes are sent to the printer,
  74. (3) the printhead (or the imaginary cursor in the case of a laser
  75. printer) is told to move to the top left of the printable area (which,
  76. if the X and Y offsets have been properly defined for the particular
  77. printer, will be the same as the place which they define ù i.e. point A
  78. in the diagram below), (4)áthe printhead will then be moved down by
  79. (TopámargináÖáYáoffset) and towards the right by
  80. (LeftámargináÖáXáoffset) to point B, (5) the page will be printed.
  81. 6.7
  82. If either of the margins has been incorrectly defined to be less than
  83. the equivalent offset, i.e. so that the formula in (4) gives a negative
  84. result, it will be ignored and the cursor will not be moved at all in
  85. that direction.
  86. 6.7
  87. How do you find out what the X and Y offsets should be? If itæs not
  88. clear from your printer manual, the file called TopLeft in the Printers
  89. directory on Applications disc 2 (together with the instructions in the
  90. Read_Me file) might help. Alternatively, you could try deliberately
  91. setting X and Y greater than the margins, so that the cursor movement in
  92. (4) defaults to zero (as explained) and the top left of the image will
  93. be printed at the default printhead position.
  94. 6.7
  95. Under RISC¡OSá2 only the ömarginsò could be defined and, for practical
  96. purposes, these had to be set to match the physically printable area.
  97. One of the advantages of the new approach is that if you only want to
  98. print on a small part of the page you can set very wide margins and the
  99. printer driver wonæt waste time trying to print nothing (i.e. lots of
  100. white space) in the unused area.
  101. 6.7
  102. According to Archive 6.5 p37, Paul Skirrow has suggested setting
  103. negative offsets to force the printer to start printing near the middle
  104. of the page when, for instance, printing labels. Arithmetically this
  105. will achieve the right effect, but not in the intended way! What you are
  106. supposed to do is leave the X and Y offsets unchanged and increase the
  107. margins.
  108. 6.7
  109. What will happen if you try to set the margins to less than the paper
  110. offsets? Bruce Brown says you must not do so, because this will cause
  111. the driver to send more data to the printer than it can handle on one
  112. page. The Printers.Read_Me file says that if you do, and if you then try
  113. to print something right up to the top left of the margins, the image on
  114. the paper will be shifted down and to the right of where it is supposed
  115. to be, since you have tried to get the printer to print on the section
  116. of the paper that it physically cannot print on.
  117. 6.7
  118. The Printers.Read_Me file also notes that the paper offsets can be
  119. negative. Apparently, the natural print position of some printers is
  120. above the top and/or to the left of the top corner of the paper.
  121. 6.7
  122. Contrary to what has been said in this column before, you can apparently
  123. set the X and Y offsets to zero.
  124. 6.7
  125. Owen Smith says: öYou may be caught out by the way !PrintEdit stores the
  126. paper offsets. Having changed the offsets in the main window, you then
  127. have to open up every graphics resolution one by one and click OK in
  128. each of them and then save the new printer definition file. This is
  129. because the paper offsets are stored in the per graphics resolution data
  130. (in pixels) and the graphics resolution data is encoded when OK is
  131. clicked in the graphics window.ò
  132. 6.7
  133. Background printing
  134. 6.7
  135. It doesnæt work ù and thatæs official!... Iæve been sent a copy of a
  136. Technical Information news sheet from Acorn, which says: öThe printer
  137. buffer module supplied as part of RISC¡OSá3 does not work correctly.
  138. Even though the buffer has been configured to a large size, e.g. 2
  139. Mbytes, the buffer module waits for the printer to complete its print
  140. job before returning control to the user. Acorn is currently looking
  141. into this problem and details will be made available if a fix is
  142. produced.ò
  143. 6.7
  144. Jochen Konietzko, however, wonders what all the fuss is about. He
  145. writes: öOn my machine, an A410/1 (ARM 3), with the Ace ProDriver and
  146. the HP DeskJet 500C, there is no problem at all! All I have to do is
  147. configure a sufficiently large printer buffer. Iæve just tried it again
  148. and, with a buffer of 1Mb, I can work in a database with just a slight
  149. reduction in speed.ò
  150. 6.7
  151. The only reason I donæt use this option is that, unlike the font cache,
  152. it is not possible to drag the task manager slider for the system heap/
  153. stack below the limit set by the configuration of the buffer, so that
  154. the memory is lost completely until a reset.
  155. 6.7
  156. My standard setting for the printer buffer is 128 Kb, because that does
  157. not slow printing down (with a 1024 Kb buffer, printing takes about 25%
  158. longer than at 4 Kb, even if I donæt touch the keyboard at all) and yet
  159. I have a kind of öemergency multitaskingò; at least, when I decide to
  160. cancel an Impression printout, the button responds almost instantly.
  161. 6.7
  162. If I have to print several copies of a text, the print from a file is
  163. better, anyway, because then the printer doesnæt try to hog all
  164. available RAM.ò
  165. 6.7
  166. Perhaps the reason he has no problems is that the Ace ProDriver doesnæt
  167. use the Acorn buffer module.
  168. 6.7
  169. LaserDirect and TurboDrivers
  170. 6.7
  171. Computer Concepts say that version 2.09b is now available as a free
  172. upgrade to registered owners, as an interim measure. This fixes a few
  173. minor problems (e.g. the patterning effects and the problems with
  174. sprites with palettes attached) but is not a full RISC¡OSá3 version. öCC
  175. have a team working on the printer drivers but the amount of work
  176. involved should not be underestimated ù itæs going to take a couple of
  177. months yet.ò (This was written on 11th February.)
  178. 6.7
  179. Printer driver space requirement
  180. 6.7
  181. Acorn advises that you can reduce the amount of disc space taken up by
  182. !Printers by removing (if you have a dot matrix printer) the following
  183. directories from within the !Printers directory: lj, ps and PDumpers.
  184. 6.7
  185. Checking if a printer is online
  186. 6.7
  187. Acorn also warns of a problem that sometimes affects programs originally
  188. written for the BBC micro. If these use the command ADVAL(-4) to check
  189. if a printer is on- or off-line, this can cause the computer to crash
  190. because the program will not be able to understand the information
  191. returned by the command.
  192. 6.7
  193. Problems with VDU2 printing
  194. 6.7
  195. Roger Power has used a Basic program for years, which now refuses to
  196. print, causing the computer to hang as if the printer had not been
  197. switched on. The program just has a VDU2 command to cause the screen
  198. output to be sent to the printer and doesnæt use any printer driver. (I
  199. wonder if this problem might be connected to the one mentioned in the
  200. previous paragraph?)
  201. 6.7
  202. He then successfully printed a listing from Basic, using <Ctrl-B>, but
  203. when he entered the command:
  204. 6.7
  205. VDU2:PRINT TAB(10,5)öArchiveò :VDU3
  206. 6.7
  207. the word öArchiveò was printed on the next line down in the first
  208. column. In other words, the TAB was ignored.
  209. 6.7
  210. He has an HP Deskjet 500C. (He normally uses a ProDriver and has no
  211. problems with that.)
  212. 6.7
  213. Richard Torrens uses Calligraphæs ArcLaser so doesnæt have a RISC¡OSá3
  214. driver installed. He also has a Basic program which uses VDU2 and worked
  215. OK under RISC¡OSá2, but now gives an error. He says the solution is to
  216. type
  217. 6.7
  218. Unset PrinterType$1
  219. 6.7
  220. before entering the program (which doesnæt run in the desktop) and reset
  221. on exit from the program.
  222. 6.7
  223. 1st Word Plus driver for Deskjet 550C
  224. 6.7
  225. Barry Thompson has an answer from Acorn to the question he posed last
  226. month: since the Acorn JP150 printer is an HP Deskjet compatible, use
  227. the 1st Word Plus driver supplied on the JP150 support disc. This driver
  228. also works with Laserjets. This driver supports all the printing effects
  229. from 1st Word Plus but will not support the printing of graphics.
  230. 6.7
  231. Programs That Work
  232. 6.7
  233. The following programs have been reported as working without any
  234. problems:
  235. 6.7
  236. Fun School 4 (Under 5æs) ù a new version works with RISC¡OSá3
  237. 6.7
  238. Manchester United Europe (Peter Youngæs son thinks the football plays
  239. faster)
  240. 6.7
  241. Intersheet II
  242. 6.7
  243. Wordwise A Plus
  244. 6.7
  245. Mah Jong, The Game (the latest version ù but Peter Young found that it
  246. needed deleting from his hard disc and reloading before it would accept
  247. keyboard input)
  248. 6.7
  249. Hard Disc Companion from Risc Developments (but Peter Young has found it
  250. to be much slower)
  251. 6.7
  252. Thesaurus from Risc Developments
  253. 6.7
  254. Chess, CrossStar and Spell from David Pilling.
  255. 6.7
  256. It is interesting to observe that all but two of the programs that
  257. Frances Obee asked about (Archive 6.5 p25) have been reported as working
  258. fine. Of the other two: some problems with Atelier were mentioned last
  259. month but I imagine that the publishers of a leading program such as
  260. this must be able to supply a fix if one is needed; and Prime Art hasnæt
  261. been mentioned at all and I imagine no news is good news.
  262. 6.7
  263. Dave Wilcox has sent in a huge list of games that work, which serves to
  264. illustrate two points: first, that most programs do work and second,
  265. that lists of this kind are likely to lead to contradictions since he
  266. reports some programs as working which have previously been reported as
  267. giving trouble.
  268. 6.7
  269. Rob Brown has begun compiling a database showing which programs work
  270. (showing version numbers) and reporting compatibility problems that he
  271. is aware of. So far, he has only included programs that he is familiar
  272. with, and already the list is far too long to include in the magazine so
  273. Paul is going to include it on the monthly magazine disc. If you have
  274. anything to add to his database, his address is öValtaneeò, Brighton
  275. Road, Lower Kingswood, Tadworth, Surrey, KT20 6UP.
  276. 6.7
  277. Program Problems
  278. 6.7
  279. David Holden has offered a couple of tips which may help you to get
  280. programs working, especially demos Ö which seem to be the biggest
  281. offenders.
  282. 6.7
  283. Many demos speed up the system ROMs so that they can run faster. If itæs
  284. a Basic demo, try looking for:
  285. 6.7
  286. SYS öUpdate_MemCò,64,64
  287. 6.7
  288. If you find it, either remove it or ÉREMæ it out. This call wonæt work
  289. with RISC-OS 3 and will make the computer hang. Symptoms are a complete
  290. lock-up Ö even the mouse pointer wonæt move.
  291. 6.7
  292. Another is that the old minimum abbreviation for *CHANNELVOICE was
  293. É*CHA.æ and for *BASIC É*BA.æ. These no longer work and require more
  294. letters to be properly identified. There is a utility on one of the
  295. RISC-OS 3 Applications discs which is supposed to cure these problems
  296. but his experience is that this doesnæt always work, so you might need
  297. to actually change the program.
  298. 6.7
  299. David adds that RISC-OS 3 is also less tolerant of sloppy disc
  300. identifiers, so filenames should always have a full filing system/path
  301. name.
  302. 6.7
  303. He also says that many programs give problems when Acornæs !Alarm
  304. application is running. This seems to be denied by everyone at Acorn but
  305. it is a fact that he has verified for himself. This applies to a lot of
  306. commercial software as well, so it isnæt just a PD problem but something
  307. that !Alarm is doing. If you normally use !Alarm then try again without
  308. it. If that solves the problem there are plenty of PD equivalents.
  309. 6.7
  310. David also points out that many PD programs appear to be written in
  311. machine code because, when you look in the application directory, you
  312. see the ÉApplication Codeæ icon instead of a ÉBasic Codeæ icon. However,
  313. these programs are quite often not written in machine code or a compiled
  314. language but have been disguised by a PD utility and are in fact Basic.
  315. This doesnæt matter unless you want to make one of the changes described
  316. above.
  317. 6.7
  318. To restore this type of code to normal Basic, first load it into Edit.
  319. If you have RISC-OS 3 Edit, you just need to hold down SHIFT and double-
  320. click on the program icon to do this, if not you will need to drag the
  321. program icon to the Edit icon. Donæt do anything to the original, but
  322. work on a backup copy in case anything goes wrong. Now look at the first
  323. line of the program. If it is disguised Basic, you will see the words
  324. ÉBasic -quitæ somewhere in this line. To change it back to normal Basic,
  325. look for the first [0d] in the file Ö this will normally be at the end
  326. of the first line. Delete everything up to but not including the [0d] so
  327. that it becomes the first character in the file. Now re-save the file
  328. and change its filetype to Basic (&FFB). If you now try reloading the
  329. program into Edit (assuming you have the RISC-OS 3 version) you should
  330. find that you have a normal Basic program to which you can make the
  331. required changes.
  332. 6.7
  333. One cause of compatibility problems that I have found is that !SparkFS
  334. is, by default, configured to use the system sprite area for workspace.
  335. Some older programs expect to have this all to themselves. In these
  336. cases, a simple *SNEW command can help to get the program running.
  337. (Obviously you must first make sure that SparkFS has saved any work-in-
  338. progress!)
  339. 6.7
  340. Dave Wilcox writes: öThis is probably stating the obvious but, if you
  341. have a hard disc system and normally boot up on the hard disc, it may
  342. help to get games working properly if you configure the machine to Drive
  343. 0 instead of the Hard Disc and press <reset>. Also, before starting to
  344. play a game, it is a good practice to open the drive holding the !System
  345. directory, so that it enters the !System path into memory. Also, with
  346. some games, it may be necessary to switch off the cache for ARM 3.ò
  347. 6.7
  348. Dave Wilcox also says that the following will NOT work under RISC-OS
  349. 3.10:
  350. 6.7
  351. Powerband Mk2   (4th Dimension)
  352. 6.7
  353. Saloon Cars      (4th Dimension)
  354. 6.7
  355. Rotor      (Arcana)
  356. 6.7
  357. Fireball      (C.I.S.)
  358. 6.7
  359. Interdictor I (ver 1.01)   (Clares)
  360. 6.7
  361. Corruption      (Magic Scrolls)
  362. 6.7
  363. Thundermonk   (Minerva)
  364. 6.7
  365. Ibix the Viking   (Minerva)
  366. 6.7
  367. Brain Drain      (Minerva)
  368. 6.7
  369. Grid Lock      (Minerva)
  370. 6.7
  371. Freddyæs Folly   (Minerva)
  372. 6.7
  373. Superior Golf & Const. Set   (Superior
  374. Software)
  375. 6.7
  376. Filing Systems
  377. 6.7
  378. No floppy or hard drive icons?
  379. 6.7
  380. Acorn advise: first of all, check that you have the correct number of
  381. drives configured! Secondly, newer machines (A5000 onwards), on startup,
  382. check to ensure that the configured drives are connected and if a drive
  383. is not connected properly its icon may not be displayed Ö so check the
  384. cable connections to the floppy drive.
  385. 6.7
  386. ICS IDE hard drive
  387. 6.7
  388. David Shepherdson found that, after he upgraded his A3000, his hard
  389. drive didnæt work. Baildon Electronics, who are the service centre for
  390. ICS, quickly fixed it. He adds, öIn fact, as I also have a Calligraph
  391. Laser Podule fitted, this also messed up my hard disc and Baildon fixed
  392. that as well.ò
  393. 6.7
  394. Watford 5╝ö interface
  395. 6.7
  396. Gordon Lindsay-Jones wrote to Watford (as Paul Beverley suggested) about
  397. his problems with their buffer and has had no reply. He has come to the
  398. conclusion that it does not work with RISC¡OSá3.10! Can any readers help
  399. by telling him which buffer(s) do work, please?
  400. 6.7
  401. SCSI filer
  402. 6.7
  403. Seßn Kelly has discovered that his tip (Archive 6.5 p27) does not always
  404. work. He writes: öPlease allow me to apologise and to explain a proper
  405. way to make the free space window work with SCSIFS.
  406. 6.7
  407. öOriginally, I advised adding a command to load the new SCSIFiler module
  408. to the desktop boot file. This did work, but only Ö I have since
  409. discovered Ö because my desktop boot file was also creating a RAMFS
  410. disc. This forced the initialisation of the replacement module.ò He
  411. suggests that the answer is to split the boot process into two stages so
  412. that the SCSI filer is initialised before the desktop is entered. (Tim
  413. Nicholson confirms this.)
  414. 6.7
  415. To do this first, rename the existing !Boot file as Deskboot, say, and
  416. create an application directory called !Boot in the root directory and
  417. move the Deskboot file into it. Then create an obey file called !Run
  418. inside !Boot containing the following commands:
  419. 6.7
  420. RMLoad SCSI::4.$.!System.
  421. 6.7
  422. Modules.SCSIFiler
  423. 6.7
  424. Desktop -file <obey$Dir>. Deskboot
  425. 6.7
  426. (replacing 4 by the appropriate disc name).
  427. 6.7
  428. If you want to smarten up the appearance of the !Boot application, you
  429. can copy the sprites file_fea and small_fea from Resources:$.Wimp.
  430. Sprites into a !Sprites file inside !Boot and rename the sprites !boot
  431. and sm!boot.
  432. 6.7
  433. The above is the approach which is also recommended on page 16 of the
  434. RISC¡OSá3.10 Release Note. An alternative way of achieving the same end
  435. is (1) to rename the existing !Boot file (the one that contains all the
  436. Filer_Boot and Filer_Run commands, etc) DeskBoot, say, (2) to copy it to
  437. a safe place like the !System directory, (3) to create a new !Boot file
  438. in the root directory, (4) to move into this new file the command to
  439. RMLoad the SCSIFiler module and to add the command:
  440. 6.7
  441. *Desktop -file SCSI::4.$.!System.DeskBoot
  442. 6.7
  443. (replacing 4 by the appropriate disc name). To my mind, this way is
  444. simpler because it avoids the necessity for creating sprite files,
  445. renaming sprites, etc.
  446. 6.7
  447. The $.!Boot.!Run file (under the Kelly/Acorn approach) or the !Boot file
  448. (under mine) can now also be used to load or initialise all sorts of
  449. things before the desktop is started Ö e.g. extra mode modules, virus
  450. protection, ROM speed up programs, etc.
  451. 6.7
  452. Miscellaneous Hints & Tips
  453. 6.7
  454. Newlines in !Run files
  455. 6.7
  456. P N Cousins says that if there is more than one linefeed at the end of
  457. the !Run file of an application, if he tries öto use the menu button on
  458. the iconò the machine locks up. I presume that he means that, if you
  459. choose the Quit option on the iconbar menu, the application wonæt quit.
  460. This is something that I have noticed from time to time. (Invariably,
  461. when it has happened to me, simply pressing <escape> has put things to
  462. rights.) However, I have tried adding newlines galore to the ends of
  463. !Run files without being able to repeat the phenomenon. Can anyone tell
  464. us what is happening?
  465. 6.7
  466. On page 16 of the RISC¡OSá3.10 Release Note there is a cryptic
  467. instruction that you should not enter any newlines after the second line
  468. in a particular two-line !Run file. I wonder if this is connected.
  469. 6.7
  470. Ian Hamilton says that, according to Acorn, Obey files with blank lines
  471. aggravate what he calls a bug which can cause applications not to return
  472. from their Obey files. He suspects that this may be the cause of the
  473. problem that was blamed on Compression in Archive 6.5 p28.
  474. 6.7
  475. Newlines at the end of !Boot files
  476. 6.7
  477. P N Cousins also says that you must have a newline at the end of a !Boot
  478. file or else the last line will be ignored. So, if you find that an
  479. application which ought to be run by your !Boot file but isnæt, this
  480. might be the answer.
  481. 6.7
  482. Hiding the Apps in Resources
  483. 6.7
  484. We have mentioned in a previous month that you can hide !Configure and
  485. other ROM-based applications from prying eyes by typing *Unplug
  486. !Configure (or whatever). Acorn advise that, if you do not want users to
  487. see the Resources filing system, you can remove it from the iconbar by:
  488. 6.7
  489. *Unplug ResourceFiler
  490. 6.7
  491. Setting up an application
  492. 6.7
  493. Tim Powys-Lybbe offers the following hints based on how he sets up
  494. applications (using Impression as an example).
  495. 6.7
  496. The technique I use is to construct an outer directory to hold (a) the
  497. filer of work for the application and into which outer directory I also
  498. place (b) the application as delivered from the supplier. I copy (c) the
  499. !Sprite file from the application, give the outer directory the same
  500. name as the application and make the !Run file do various things
  501. including opening up the directory of working documents, the application
  502. itself and then back up the working documents on exiting the
  503. application. The !Boot file is more or less copied from the application
  504. though you do need to choose a different system variable name for this
  505. outer directory. (I just add Top to the applicationæs system variable
  506. name for its directory.)
  507. 6.7
  508. I have had several problems getting this working on RISC-OS 3, though
  509. the end result is far better as I now have control over where the
  510. directories open on the desktop and I get a nice clean view of the
  511. Impression start-up picture.
  512. 6.7
  513. 1. Extension of Filer_OpenDir command
  514. 6.7
  515. This command, which opens up a directory on the desktop, otherwise known
  516. to Acorn as a filer, has been extended in RISC-OS 3 to allow you to
  517. decide both where you want to place the filer on the desktop and how
  518. large it is to be (the user guide gives details). For example, in the
  519. !Run file, to open up Impression:
  520. 6.7
  521. Filer_OpenDir <ImpressTop$Dir>. Templates 1000 700
  522. 6.7
  523. This places the Templates filer with its top left at 1000 OS units
  524. across the desktop from the left and 700 OS units up from the base line.
  525. Acorn define 180 OS units as 1 inch on the screen though this must
  526. presumably depend on the size of the monitor. You will have to
  527. experiment with values for the directory position to get it where you
  528. want on your desktop.
  529. 6.7
  530. You can add information about the width and height of the directory by
  531. adding two more numbers:
  532. 6.7
  533. Filer_OpenDir <ImpressTop$Dir>. Templates 1000 700 1200 130
  534. 6.7
  535. The third number is the width of the directory and the fourth number is
  536. its height. In mode 39, 130 OS units high just accommodates a single row
  537. of the large icon size. (Isnæt the height of an icon, in screen units,
  538. mode-independent?)
  539. 6.7
  540. 2. Opening an ArcFS directory
  541. 6.7
  542. I have had some correspondence with Mark Smith, the ever-helpful author
  543. of this excellent package, and have at last found how to make ArcFS
  544. directories open up from within the !Run file. It is done in two stages,
  545. first:
  546. 6.7
  547. OpenArchive <ImpressTop$Dir>. Documents
  548. 6.7
  549. Documents is the name of an ArcFS archive that is stored within the
  550. Impression outer directory. Note that ArcFS should already be on the
  551. iconbar for this Open_Archive command to work as it is an ArcFS module
  552. command; you can of course start up ArcFS from within this same !Run
  553. file.
  554. 6.7
  555. The second command is:
  556. 6.7
  557. Filer_OpenDir ArcFS#Documents:$ 600 1400 1800 260
  558. 6.7
  559. The syntax is fairly obvious if you look at the top of the directory for
  560. your archive once it is open!
  561. 6.7
  562. 3. Backing up to a floppy
  563. 6.7
  564. I have a little application tagged on to the end of the Impression !Run
  565. file to cause a back up of the Documents archive after exiting
  566. Impression (or any other application I hasten to add). With RISC-OS 2 it
  567. would work with:
  568. 6.7
  569. *COPY <ImpressTop$Dir>.Docu-
  570. 6.7
  571. ments :0.Documents
  572. 6.7
  573. In RISC-OS 3 this produces an error and one must use instead:
  574. 6.7
  575. *COPY <ImpressTop$Dir>.Docu-
  576. 6.7
  577. ments ADFS::0.Documents
  578. 6.7
  579. Setting up Pinboard without a hard disc
  580. 6.7
  581. Brian Fielding has developed an interesting use of the Pinboard, which
  582. he says is especially useful for those without a hard disc:
  583. 6.7
  584. After Éplayingæ with RISC-OS 3 for a few days and realising some of the
  585. benefits of the PinBoard, which are obviously more beneficial if you
  586. have a Hard Disc, I worked out a mechanism to fully utilise the PinBoard
  587. so that, when the system was first booted, it would contain all the
  588. applications I would want to access.
  589. 6.7
  590. The mechanism described below will display the Applications and when an
  591. icon is double-clicked the appropriate disc will be requested and the
  592. application will be loaded.
  593. 6.7
  594. This should be read in conjunction with Chapter 7 of the RISC-OS 3 User
  595. Guide, öDesktop Boot Filesò.
  596. 6.7
  597. Setting up pseudo-applications
  598. 6.7
  599. For each application you wish pinned to or loaded onto your pinboard,
  600. set up a pseudo-application as follows:
  601. 6.7
  602. Copy the application, say !AppName, to an empty disc and, using <shift>
  603. and double-click <select>, display the contents of the application.
  604. 6.7
  605. Delete all files and directories except !Boot, !Run and !Sprites.
  606. 6.7
  607. Edit !Boot to contain the four lines, in the order given:
  608. 6.7
  609. IconSprites <Obey$Dir>.!Sprites
  610. 6.7
  611. Set AppName$Dir ADFS::DiscName. $.!AppName
  612. 6.7
  613. Set Alias$@RunType_fff Run <AppName$Dir>.!Run %%*0
  614. 6.7
  615. Set File$Type_fff FileName
  616. 6.7
  617. AppName is the name of your application e.g. PipeDream
  618. 6.7
  619. DiscName is the name of the disc containing the original application.
  620. 6.7
  621. fff is the applicationæs FileType. (This line should be present in the
  622. original !boot file. There may be other Alias$@RunType_fff lines and
  623. these should also be left.)
  624. 6.7
  625. FileName is the Filetype name, e.g. PDream. (This is not essential.
  626. Again there may be others and should be left if desired.)
  627. 6.7
  628. Note: <Obey$Dir> must only be used as a pathname to !Sprites. The full
  629. pathname to the original Application must be established, including the
  630. disc name.
  631. 6.7
  632. Edit !Run to contain (or create an Obey file):
  633. 6.7
  634. Run <AppName$Dir>.!Run
  635. 6.7
  636. Do not alter !Sprites. Copy !AppName to your Desktop Boot Disc. Add the
  637. following lines to the !Boot file on your Desktop Boot Disc
  638. ÉDskTopBootæ. (See note below if using a RAM disc.):
  639. 6.7
  640. Filer_Boot ADFS::DskTopBoot.$. !AppName
  641. 6.7
  642. Pin ADFS::DskTopBoot.$.!AppName 100 300
  643. 6.7
  644. 100 300 represents the position on the PinBoard. With the origin at the
  645. bottom left of your screen, this represents 100 units to the right and
  646. 300 units up. Your next application should be placed at 300 300. You
  647. can, of course, pin your applications anywhere on the board.
  648. 6.7
  649. If you wish your application to be ready for use, use ÉRun ...æ instead
  650. of ÉPin ...æ.
  651. 6.7
  652. RAM disc available
  653. 6.7
  654. Unfortunately, the above will require you to load the Boot disc each
  655. time you load any application.
  656. 6.7
  657. If you have sufficient space available in memory, create a RAM disc of
  658. at least 64Kb. You need, on average, 7 Kb per application.
  659. 6.7
  660. Prepare as above but copy your pseudo-applications to a directory, say,
  661. PseudoApps, on your Boot Disc.
  662. 6.7
  663. You will then need to modify your !Boot file as follows:
  664. 6.7
  665. Ensure you have a large enough RAM disc.
  666. 6.7
  667. Change DynamicArea -RamFsSize 64K.
  668. 6.7
  669. Add the line
  670. 6.7
  671. COPY ADFS::DskTopBoot.$. PseudoApps.* RAM::RamDisc0. $.* ~CQR~V
  672. 6.7
  673. Modify both the Filer_Boot and the Pin (or Run) lines from
  674. ÉADFS::DskTopBootæ to read ÉRAM::RamDisc0æ.
  675. 6.7
  676. Notes
  677. 6.7
  678. Ensure that you have configured the system to boot from Disc by loading
  679. your Boot disc and executing *Opt4,2 in command line mode.
  680. 6.7
  681. Some applications, e.g. Lemmings, are set up to delete RAM disc on
  682. startup and tidy up when QUITed, e.g. UnSet Directories. These should be
  683. altered:
  684. 6.7
  685. For Lemmings, the file !Lemmings.!Run should add | at the start of the
  686. line TequeMen and Unset Lem$Dir.
  687. 6.7
  688. If memory is a problem, the amount of RAM space can be reduced by adding
  689. a line Delete RAM::RamDisc0.!AppName.!Sprites after the corresponding
  690. Filer_Boot line. This will approximately halve the required space.
  691. 6.7
  692. If you have sufficient RAM disc space, it would be helpful to place
  693. !Scrap in it.
  694. 6.7
  695. ROM/RAM podule available
  696. 6.7
  697. If you have a ROM/RAM podule, with battery backup, then setting up the
  698. pseudo-applications onto the RAM will make application selection much
  699. more user-friendly.
  700. 6.7
  701. If you have a ROM/RAM podule, make this your Boot system. Simply follow
  702. the above but change ÉADFS::DskTopBoot.æ to ÉRFS:æ and remember, in
  703. Command Line mode, to:
  704. 6.7
  705. *Configure FileSystem RFS
  706. 6.7
  707. *RFS
  708. 6.7
  709. *OPT4,2
  710. 6.7
  711. *ADFS
  712. 6.7
  713. Examples
  714. 6.7
  715. The monthly program disc has examples for disc, RAMDisc and for the ROM/
  716. RAM podule.
  717. 6.7
  718. Matters Arising
  719. 6.7
  720. Backing up in one pass (Archive 6.5 p36)
  721. 6.7
  722. Put the following command in your !Boot file:
  723. 6.7
  724. Wimpslot -next 800K
  725. 6.7
  726. Solid sprite dragging (Archive 6.6 p61)
  727. 6.7
  728. (This gets even more bizarre!) Would you believe that, to turn sprite
  729. dragging off, your new friendly operating system requires you to issue
  730. the following commands?
  731. 6.7
  732. SYS öOS_Byteò,161,28 TO ,,R2
  733. 6.7
  734. R2=R2 AND 253
  735. 6.7
  736. SYS öOS_Byteò,162,28,R2
  737. 6.7
  738. (Thanks to David Shepherdson for that!)
  739. 6.7
  740. !CMOS_Edit: WARNING!
  741. 6.7
  742. Bruce Brown warns that, although !CMOS_Edit can be used as I mentioned
  743. last month (Archive 6.6 p60) to save, load and view the CMOS RAM
  744. effectively, if you use the Edit and Update feature, you will be in
  745. trouble. This is because Acorn have now implemented the (previously
  746. reserved) checksum byte at the end of the CMOS RAM. When you öUpdateò,
  747. !CMOS_Edit will overwrite the correct value with the old incorrect
  748. value. Since the checksum routine is relative, it will then always be
  749. wrong until the power on/delete routine is performed. Until then,
  750. whenever you startup, the operating system will find that the checksum
  751. is wrong and will use default settings rather than those stored in the
  752. CMOS.
  753. 6.7
  754. !CMOS_Edit is easily fixed to overcome this: look in the !RunImage
  755. (Basic) file for the loop which writes the values to CMOS RAM and change
  756. the loop counter from 0áTOá239 to 0áTOá238. Leave the loops for saving
  757. and loading alone Ö they obviously must load and save everything as
  758. previously.ááA
  759. 6.7
  760. Hints and Tips
  761. 6.7
  762. Å   Configuring the main Edit window Ö The RISC-OSá3 version of Edit makes
  763. no provision for preferences concerning the size and the place on the
  764. screen of a newly opened Edit window.
  765. 6.7
  766. However, this can easily be rectified. If you run Edit from your hard
  767. disc, the Templates file can be edited according to taste. The nice
  768. thing is that, even from the hard disc, Edit still occupies the same RAM
  769. space (64 Kb on a 4 Mb machine).
  770. 6.7
  771. Here is what you do: drag the Edit application from the Apps directory
  772. to your hard disc, click <menu> on the Apps icon, then <select> to open
  773. the root directory, open the Resources directory and copy the three
  774. files inside the Edit subdirectory into your new Edit application. (For
  775. Acorn newcomers, you open an application directory by double clicking
  776. while holding down <shift>.)
  777. 6.7
  778. Then drag the Templates file on to the iconbar icon of FormEd (an
  779. application available from N.C.S. on Sharewareá20) and drag the Text
  780. window (the one which is filled with a web of diagonal lines) into the
  781. desired position. Save the edited Template file.
  782. 6.7
  783. If you always use Edit, donæt forget to change your configuration so
  784. that, after power-on, the correct version of Edit is loaded.
  785. 6.7
  786. Jochen Konietzko, K÷ln, Germany
  787. 6.7
  788. Å   Faxpack Ö Did you know that if you manually dial 0336Ö400Ö445 and
  789. then, at the prompt, select ÉReceive Faxæ, you will receive a 24 Hour
  790. Surface Forecast Chart from The Met. Office. It is very useful if you
  791. want to know what the weather is going to do. Dial 0336Ö400Ö401 for the
  792. Marine Index Page of all the forecasts and charts that are available.
  793. Although it is a bit expensive (calls are charged at 36p per minute
  794. cheap rate and 48p per minute at all others times) I find them
  795. invaluable. This only works with FaxPack v2.00 Ö with earlier versions,
  796. it causes öA Line Error occurredò fault. Steve Monks, Tobermory.ááA
  797. 6.7
  798.  
  799.