Most computers have boot files to set up the computer as required when it if first switched on. Unfortunately, these files often take a while to run, and the user is left staring at the "RISC OS 3, Initialising..." screen. Messages adds a small amount of randomly chosen text to this screen for users to read while they are waiting. These text items could be anything- jokes, quotations, poems, trivia questions etc. Details of how to create your own can be found at the end of this help file.
If the text is a question, the question can be displayed while the computer is booting, and the answer displayed in the desktop.
Messages should not be run from the desktop in the usual way. Instead, it should be included at the start of your boot sequence.
Run ADFS::HardDisc.$.Programs.!Messages
If you now re-boot your machine (Ctrl-Break), some text should appear under the RISC OS 3 banner while you are waiting. If this was a quiz question, the answer will be displayed in a window when the desktop appears.
Messages is supplied with a small program named CheckCtrl. You may want to include this right at the end of your boot file. This allows you to pause the desktop by holding down Ctrl so that you can read long pieces of text. If you are not holding Ctrl, the program does nothing and the desktop is entered as usual.
A few example pieces of text are included with Messages, but you can quite easily create your own. Shift double-click the !Messages icon to open the Messages directory. In this directory you will find a text file, appropriately called 'text'. You might want to make a copy of this in case you make a mistake.
You can edit this text file as you wish. Once the edited file is saved, you must double-click on !Update in the messages directory, otherwise the application will not function correctly. Each time Messages is run, an item of text is chosen at random from this file.
A guide to the syntax of the file is given below:
\
<>This is centred
>>This is right justified
Last word is _[08]u_[08]n_[08]d_[08]e_[08]r_[08]l_[08]i_[08]n_[08]e_[08]d
To do this using !Edit, type the _ and the characters, then add the ASCII8
as follows:
_
as the string to find
_\x08
as the string to replace with
_
are replaced with _[08]
To include a question with an answer, use the following format.
For example:
What are the capitals of the following? 1. France 2. Germany 3. Spain ? Quiz Answers: 1. Paris 2. Berlin 3. Madrid \
The first four lines are the question, and will be displayed under the
welcome banner.
The next line is just a '?'. This tells Messages that the text is a question
and an answer is required. This will not be displayed with the text.
The line after this ('Quiz') is used in the title of the answer window in
the desktop. You do not have to include a title, but you must leave a blank
line instead.
The next four lines are the text for the answer. The question and the answer
will be displayed in the desktop.
The '\' indicates the end of the text.
For further examples, please look at the text files provided with Messages.
Download (96K)