home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1995 / ARCHIVE95.iso / text / hints / volume_04 / issue_07 < prev    next >
Text File  |  1995-02-16  |  12KB  |  278 lines

  1. Hints and Tips
  2. 4.7
  3. Å   Ballarena Ö I would advise using the mouse to control your Ébatæ
  4. because the keyboard is not very responsive. Also, note that the ÉAutoæ
  5. bat does not always respond fast enough to catch the ball, and there is
  6. nothing you can do about it! I was very disappointed in the final
  7. message which just congratulates you, and ends your game. The passwords
  8. are: PUNKANDJUMP, MONTPELLIER, SEA SEX SUN, VL 86 C 010, MOUNTAINEERS,
  9. GRENOUILLE, BLUBEDILOMAR, BRAIN KILLER, RHYTHM BOX, BOUBOULOID, MENFOU,
  10. 32 BIT POWER, MARTINI, SEE YOU SOON, ETERNA. Mike Gregory (& Russell
  11. Lamb).
  12. 4.7
  13. Å   Changing !Editæs default file types Ö Answering my own Help!!! plea in
  14. Archive hereæs how to change the default filetypes for !Edit:
  15. 4.7
  16. *DIR ADFS::4.$.RISC-OS.!Edit
  17. 4.7
  18.  (or your path here)
  19. 4.7
  20. *GOS
  21. 4.7
  22. *L. !RUNIMAGE 8000
  23. 4.7
  24. *BREAKSET 8004
  25. 4.7
  26. *GO 8000
  27. 4.7
  28. *SAVE ö!RUNIMAGEò 8000+1F2C0
  29. 4.7
  30.  8008 8000
  31. 4.7
  32. *BASIC
  33. 4.7
  34. *L. !RUNIMAGE 8F00
  35. 4.7
  36. $&1B208=öReadMeò These can be changed
  37. 4.7
  38. $&1B214=öDataFileò to suit your needs
  39. 4.7
  40. $&1B220=öExecFileò with any string up
  41. 4.7
  42. $&1B22C=öEditFileò to 10chars in
  43. 4.7
  44. $&1B238=ö!Runò        length.
  45. 4.7
  46. *SAVE !RUNIMAGE 8F00+1F2C0 8008 8000
  47. 4.7
  48. Rob Davison, Southland, New Zealand
  49. 4.7
  50. Å   ÉCheapoæ dialog boxes Ö You can make use of Wimp_ReportError instead
  51. of writing code for a dialog box when programming wimps. The following
  52. code fragment is an example:
  53. 4.7
  54. DEFPROCsave_file(name$)
  55. 4.7
  56. IF FNfile_there(name$) THEN IF
  57. 4.7
  58.  FNdialog(öA file of that
  59. 4.7
  60. name exists. Overwrite it?ö)=FALSE THEN ENDPROC
  61. 4.7
  62. REM save file
  63. 4.7
  64. ENDPROC
  65. 4.7
  66.  
  67. 4.7
  68. DEFFNdialog(str1$):!block%=1
  69. 4.7
  70. :$(block%+4)=str1$
  71. 4.7
  72. SYSöWimp_ReportErrorò,block%,
  73. 4.7
  74. 19,öMessage from
  75. 4.7
  76. applicö TO ,resp%
  77. 4.7
  78. =resp%=1
  79. 4.7
  80. where the string öMessage From Applicationò is <20 characters in length.
  81. 4.7
  82. The only disadvantages are that all other desktop activity is suspended,
  83. the machine beeps (if wimpflags bit 4 is not set) and that the user has
  84. to answer öOKò or öCANCELò instead of the more logical öYESò or öNOò.
  85. However, this saves a great deal of programming and can be very useful
  86. at times (This is why FWP2 stops printing Ö See Archive 3.10 p 25). Rob
  87. Davison, New Zealand.
  88. 4.7
  89. Å   Cleaning A310 keyboard contacts Ö I recently had a very nasty
  90. intermittent fault on my A310. It began as a line of 222222222æs being
  91. printed at the cursor, for no apparent reason. Also the É2æ key of the
  92. numbers keypad wouldnæt function occasionally. This was accompanied by a
  93. more worrying symptom where the screen display would suddenly go hay-
  94. wire and only occasionally would right itself after switching the
  95. machine off and then on.
  96. 4.7
  97. Eventually, it was cured by cleaning the key-contact of the É2æ (keypad)
  98. and on the basis of öIf it works, donæt fix itò, I didnæt clean any
  99. other keys. After having the machine checked at a local dealer (ú17.50)
  100. and some discussion with Archivesæ Technical Help, it was assumed that
  101. the screen break-up was due to CMOS *Configuration settings somehow
  102. being changed to Monitor-Multisync, by the spurious keyboard input. The
  103. problem has not occurred since.
  104. 4.7
  105. For anyone else with keyboard problems, hereæs how I cleaned mine: Lay
  106. the keyboard upside-down and remove all 8 screws under the keyboard base
  107. and gently lift off the base. Remove the 6 larger screws, securing the
  108. PCB to the keyboard top-cover. Lift out the complete PCB and keys unit.
  109. The keytops are all secured in a frame which is, in turn, secured by 20-
  110. odd small screws from the PCB underside. Take them all out (and put them
  111. somewhere safe) and, keeping the whole kaboodle together with a firm
  112. grip, turn it over and set it down right-side up. The complete set of
  113. keys can now be lifted slowly off the PCB, exposing the rubber contact/
  114. covers. These are glued with a weak glue. I found that all the rubber
  115. bits stayed stuck to the PCB. I gently peeled away the rubber contact/
  116. cover at the offending key position and marvelled at how the dirt had
  117. managed to penetrate so far, considering that the cover was stuck down.
  118. The keyboard key contacts (A310) are just gold plated discs of PCB
  119. copper, easily cleaned with switch cleaner and a non-hairy paper-towel
  120. or cloth. If you have to blow away any bits, use a camera Épuffer
  121. brushæ. If you have to use your mouth to blow away grit, crumbs etc,
  122. wait for any teeny drops of condensation to evaporate. Spit doesnæt make
  123. a good contact cleaner and some spirit-based cleaners may tend to
  124. dissolve the pcb-surface varnish which will be smeared over the
  125. contactsæ surface. Your local electronics hobby shop (e.g. Tandy) should
  126. have cans of switch-cleaner at ú2 Ö ú3 (which is a lot cheaper than ú120
  127. for a new keyboard(!) and well worth the extra effort of DIY).
  128. 4.7
  129. D.P.Allen, Surrey
  130. 4.7
  131. Å   Data cartridges for tape streamers revisited Ö Further to the hint in
  132. 3.6 p2, the metal variety of DAT can become unreliable after three or
  133. four writes and so it is better to use the non-metal variety e.g.
  134. Memorex tapes. Mr Chapman, London
  135. 4.7
  136. Å   RISC-OS printing hints Ö Printing out with the RISC-OS printer drivers
  137. is very easy. However I found several areas which are not well explained
  138. and one or two things which are down right misleading!
  139. 4.7
  140. Å   PRM pages 1526-1528 sprite plotting commands must be with reference to
  141. the address of the sprite not the name, so if you use
  142. 4.7
  143. SYS öOS_SpriteOpò,&122,
  144. 4.7
  145. spriteaddr%,önameò,0
  146. 4.7
  147. ,xpos%,ypos%
  148. 4.7
  149. then, when printing, the error öSprite Not knownò will be returned. The
  150. solution is to use &222 and an address instead of the sprite name.
  151. Addresses for a named sprite can be found with
  152. 4.7
  153. SYSöOS_SpriteOpò,&118
  154. 4.7
  155. addr is in R2 on exit Ö see PRM page 406.
  156. 4.7
  157. Å   PRM page 1532. Always use Ö1 (for current) as the destination mode
  158. with öColourTrans_Select-Tableò if you specify a mode (even the current
  159. one) ColourTrans will not set up the table correctly resulting in
  160. strange looking sprites on printout.
  161. 4.7
  162. Å   When rendering Draw objects remember to decrease Éflatnessæ to a lower
  163. value. A useful way of calculating it is to divide the default (512) by
  164. the print resolution divided by 90 eg. flat= 512/(printxres%/90) where
  165. printxres% might be 300 Ö as read from
  166. 4.7
  167. SYS öPDriver_Infoò TO,printxres%
  168. 4.7
  169. printyres% the 90 comes from a normal approximately 90 dots per inch on
  170. screen. Rob Davison, Southland, New Zealand
  171. 4.7
  172. Å   Saving the CMOS RAM settings Ö In recent editions of Archive (e.g.
  173. 4.3, p.10 and 4.5, p. 21) there have been repeated mentions of the
  174. problem which arises when a battery failure deletes all the information
  175. in the CMOS RAM.
  176. 4.7
  177. There is one very simple way of solving this problem: On Careware N║ 6
  178. you will find the application !SysUtil by Jon Marten; one of the choices
  179. it offers is öSave Configurationò!
  180. 4.7
  181. All you have to do is copy the Utility and the öConfigFileò it produces
  182. to some disc where they are easily accessible Ö not the hard disk!
  183. 4.7
  184. After the dreaded memory loss you simply load !SysUtil and drag the
  185. ConfigFile icon onto the !SysUtil icon and confirm that you want to
  186. change the configuration. Jochen Konietzko, Koeln, Germany
  187. 4.7
  188. Å   Shutdown of hard drives Ö During the recent experience I have had due
  189. to the volume of hardware Iæve been setting up and testing, the
  190. following items have come to light.
  191. 4.7
  192. MR45æs seemed to be suffering from corruption but, when reformatted, the
  193. problem went away, so where did the corruption come from?
  194. 4.7
  195. A little further investigation revealed that a verify scan caused the
  196. Closedown procedure of the drive not to occur.
  197. 4.7
  198. It was found that, in order to close the drive down properly, a *bye and
  199. two ¬Shutdowns were required! At first, this was thought to only relate
  200. to MR45æs but, in fact, it has been found that this is not so, and even
  201. my own machine (A440/1 with standard Acorn hardware) does similar
  202. things.
  203. 4.7
  204. So, how do you know whether your hard drive is shut down properly? If an
  205. <f12> is followed by a *bye, a staccato blip from the drive LED should
  206. occur and a short sharp click noise should emit from the drive itself.
  207. This is not the closedown condition.
  208. 4.7
  209. A *shutdown will now give a flickering performance from the drive LED
  210. and a multiple clicking from the drive lasting about half a second.This
  211. is the shutdown condition with the heads parked and isolated from the
  212. discs and closedown of the system can now occur. Ray Maidstone, Norwich.
  213. 4.7
  214. Å   !UIM_Hack update (cf Archive 3.10 p 9) Ö This utility allows you to
  215. edit characters in The 4th Dimensionæs U.I.M. game. It has now been
  216. updated and improved by the author, David Sheperdson, and has been put
  217. on this monthæs program disc.
  218. 4.7
  219. Impression Hints and Tips
  220. 4.7
  221. Å   Beware thin lines Ö It seems that Impression canæt cope with the very
  222. thinnest lines that Draw can produce. It does not display them properly
  223. on the screen and sometimes doesnæt print them properly. The answer is
  224. to use 1 mm lines instead. This came to light when Brian Cowan was using
  225. graphs generated by the graph plotting utility (on Shareware N║ 31)
  226. which apparently uses these thin lines. (This has only been tested in
  227. version 2.05.)
  228. 4.7
  229. Å   Double-clicking on a graphic opens the öalter graphicò window, (For
  230. those who donæt read manuals.)
  231. 4.7
  232. Å   Help! Ö Does anyone know how to create a new Master Page based on an
  233. existing master page? Itæs a real pain to have to change the margins
  234. every time you create a new master page. Why canæt you have a new master
  235. page just slightly different from an existing one? The particular
  236. application was where I wanted to try two, three, four, five columns
  237. etc. for a document and every time I wanted to change the number of
  238. columns, I had to create a new master page, changing the margins from to
  239. the 5 mm I wanted before changing the number of columns and the inter-
  240. column gap. (Mind you, I did find one short-cut as a result of having to
  241. do this over and over again. If you click in the first margin box, you
  242. can use <ctrl-U> to remove the ö12.7mmò, then press <5> and then <down>
  243. will move you to the next box and you can repeat the <ctrl-U>, <5>,
  244. <down> for each box. This applies to most of the dialogue boxes Ö <down>
  245. moves you to the next box requiring input. Yes, I know it says this in
  246. the manual, but I didnæt see it.)
  247. 4.7
  248. Anyway, can I put my plea another way? Is there any way of editing a
  249. master page other than sliding the boxes around? Can you edit, by
  250. entering numbers, the sizes of the margins, for example?
  251. 4.7
  252. Å   Search & replace again Ö We mentioned last month that, when doing a
  253. find and replace, <ctrl-N> finds the Next occurrence, <ctrl-R> does a
  254. Replace of the marked text. Be warned though that, if the find box is
  255. on-screen, <ctrl-A> no longer deletes the character at the cursor (as
  256. <copy> does) it forces All the replaces to occur from the cursor
  257. downwards to the very end of the document. I found this the hard way
  258. while attempting to do a selective search and replace at the top of a
  259. large document. I was changing a column of words into a list by
  260. replacing
  261. 4.7
  262.  with a comma and a space. You can just imagine the havoc that the
  263. öreplace allò command reeked on my (unsaved!!!) document. You have been
  264. warned! By the way, <ctrl-E>, presumably relating to Every or End, has
  265. exactly the same effect as <ctrl-A>. (This has only been tested on
  266. 2.09.)
  267. 4.7
  268. Å   Transferring text between documents Ö In Archive 4.2 p.8, there was a
  269. hint about the transfer of text between two documents. The implication
  270. was that this was not possible with Impression. This is not true Ö it is
  271. just done differently. You select the text in question, press <ctrl-C>,
  272. move to the appropriate spot in the other document, click once and
  273. insert the text with <ctrl-V>! Jochen Konietzko, Koeln, Germany  A
  274. 4.7
  275.  
  276.  
  277.  
  278.