home *** CD-ROM | disk | FTP | other *** search
- To alter ArtWorks and AWViewer to work with RunIf :
-
- Firstly, locate your copies of each of the above programs.
- Start RunIf, by double clicking on the icon in the filer window, if it is
- not already running. Click on the icon on the icon bar to open the main
- window.
- Drag the ArtWorks icon from the filer window to the relevant icon in
- the RunIf window. Personally, I prefer to have Artworks files loaded into
- Artworks if I'm _not_ pressing Alt, but this is a matter for personal
- preference.
- Drag the AWViewer icon to the other part of the RunIf window. [So I'd
- drag it to the icon for if Alt _is_ pressed, but again, feel free to swap it
- round]
- Change the file name in the save box to something sensible, like
- RunArtWrks and drag the Util icon to a filer window. [On a RiscPC I'd
- suggest in !Boot.Library]
- You can now quit RunIf.
- Add a line to your !Boot file which says the following
- Set Alias$@RunType_D94 Run Boot:Library.RunArtWrks %*0
- or something similar, depending on where you've put the file. Note that if
- you put this command in an Obey file, you'll need two % symbols rather than
- one.
- [For a RiscPC boot sequence, I'd suggest putting this line in
- !Boot.Choices.Boot.Tasks.!Boot]
- OK, that's the easy bit done.
-
- Now open the !ArtWorks directory viewer, by double clicking on the
- !ArtWorks icon in the filer window. Load the !Boot file from that directory
- into a text editor, such as Edit, Zap or StrongEd. In this file there's
- probably a line which says something like
- Set Alias$@RunType_D94 Run <ArtWorks$Dir>.!Run %%*0
- Since you no longer want this to happen, you need to comment out this
- line, so put a vertical bar (|) at the start of that line.
- The vertical bar is the one which on a RiscPC keyboard is obtained by
- pressing Shift and the key between the left shift key and the Z key. [ie,
- NOT the one obtained by pressing Alt and the key next to 1 on the main
- keyboard]
- If you're using Tim Tyler's Obey mode for Zap, the line should turn red.
- Save the !Boot file, and close the window.
- Now do the same in the !Run file : comment out the line which says
- Set Alias$@RunType_D94 Run <ArtWorks$Dir>.!Run %%*0
- [The !Run file is a lot longer than the !Boot file : you're looking for
- about the fourth from last line in the file]
- Save this, too, and close the window.
-
- Now it's time to modify AWViewer. The instructions here are for v1.110,
- except I know that there are at least two different versions of AWViewer,
- both called v1.110 (27 Sep 1993). So, I'm trying to be as general as
- possible!
- Open the directory viewer for !AWViewer, by shift-double-clicking on the
- icon in the filer window. Load !Run into your editor, and change the last
- line from
- Run <Obey$Dir>.!RunImage
- to
- Run <Obey$Dir>.!RunImage %*0
- [Note that one % is correct!]
-
- Now load the !RunImage into the editor. This _should_ display correctly.
- However, if you get lots of [0d][00] and the like, you need to get a
- different editor, as it is not converting the Basic program into text. Zap
- will do the job for you, as will StrongEd. [Edit will, too, provided you're
- using RISC OS 3.00 or later]
- Around the fourth line there should be a PROC call which looks something
- like PROCh("<AWViewer$Dir>.StartUp"). However, it may also be
- PROCm("<AWViewer$Dir>.StartUp"), or indeed, anything else at all!! However,
- I _think_ that the fact that it says "<AWViewer$Dir>.StartUp" is fairly
- consistent. Split the line up, so that this PROC call has a line of its own.
- So, eg, you get
- Q%=ha%:PROCw:PROCx:PROCy:PROCp
- PROCh("<AWViewer$Dir>.StartUp")
- ONERRORPROCo
-
- Immediately before the PROCh line (or PROCm, or whatever it is!), insert
- the following :
- SYS 16 TO env$:env%=0
- WHILE INSTR(env$," ",env%)>0
- env%=INSTR(env$," ",env%)+1
- ENDWHILE
- env$=RIGHT$(env$,LENenv$-env%+1)
-
- Now you need to change the line which says
- PROCh("<AWViewer$Dir>.StartUp")
- to the following
- IF env$="":PROCh("<AWViewer$Dir>.StartUp"):ELSE:PROCh(env$)
- If your version of the program has the PROCm("<AWViewer$Dir>.StartUp")
- call, then use the above line, except with PROCm(xxx) instead of PROCh(xxx)
- Indeed, if your version of the program has another PROC name altogether, use
- the one which is used in the program.
-
- Now save this !RunImage file, and then the next time you re-boot, loading
- an ArtWorks file should load it into ArtWorks/AWViewer depending on whether
- you're pressing Alt or not.
-
- In case you're wondering why I don't just include a modified version of
- AWViewer, it's because I have a phobia of court cases. Especially ones where
- I'm found guily of breaking copyright. :-)