home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
misc
/
aliascol_1
/
!ReadMe
next >
Wrap
Text File
|
1996-09-21
|
8KB
|
217 lines
Kasoft's Alias Command Collection
---------------------------------
Public Domain Version 1.04 (06 Mar 1992)
Compiled by Kade Hansson
Using the Aliases
-----------------
This collection of commands can be added to those that your RISC OS system
recognises by running the Obey file Aliases. However, it is recommended that
you insert the Aliases file into a !Boot file in a !System folder or another
frequently activated !Boot file, so that they are always available. This can
be done quite simply with the !Edit application.
The Run Action Aliases
----------------------
These aliases allow you to set the run type of various types of files. Some
also allow you to change the run action of ALL files. As an example of the
latter, the SetTypeEm command causes all files to be stamped with the given
file type when run. This provides a simple way to set file types:
1. Issue the *SetTypeEm <type> command.
2. Run (or double-click on desktop) the file(s) to be typed.
3. Issue the *RunEm <type> command to allow files to be run in normal fashion
once more.
Other commands which perform similar functions to SetTypeEm are LoadEm and
RunEm (used above to reset to normal after SetTypeEm). However, it is often
more useful just to set the run action of one particular type of file. The
Action and CAction commands provide a simple way to do this. They take the
form:
*Action <hex file type> <command>
So, issuing the command:
*Action FED Dump
would cause all palette files to be *Dumped when run. The CAction command
works in the same way, except it clears the screen and activates page mode
before, in this case, *Dumping the file.
Commands related to CAction and Action include ReadEm, which lists text
files when run, SysSprites, ScreenSprites and PoolSprites. These commands
have no parameters.
Display Control Commands
------------------------
Many of these commands have equivalents in BASIC. The only difference between
them is that the parameters are separated by spaces, not commas. Here are
some examples:
*Mode 12
*Colour 1 255 0 0
*GCol 1 1
*CLS
*CLG
Some other commands have not so obvious equivalents in BASIC:
*Pen 1
*Paper 0
*Ink 1 1
*MouseColour 0 255 255 255
The rest would normally have to be done by hard to remember VDU sequences or
FX commands:
*Explode
*Symbol 32 254 130 130 130 130 130 254 0
*Implode
*Window 10 70 10 22
*Page
*KillPage
*Kill
*Revive
*CancelVDU
*Reverse
*Tidy
*Wait
*Flash 7 0 0 0 255 255 255
*SpeedInk 1 1
Printing Commands
-----------------
The printing commands include ones which select different printer output:
*NetPrint
*ParaPrint
*SerialPrint
*NullPrint
*FilePrint adfs::0.$.PrintOut
The PrOut command allows the output of a command to be directed to a printer.
For example:
*PrOut CLS -would do a page feed
*PrOut Echo <10> -would do a line feed
*PrOut Cat -would catalogue the current directory
*PrOut Modules -would list installed relocatable modules
Two other printer commands allow screen output to be echoed to the printer:
*Printer
*KillPrint
Miscellaneous commands
----------------------
Here are some examples of the other commands provided:
*EscapeOn *EscapeOff
*HardReset *Exterminate $.Directory
*Beep *Clear
*Lock Unplug *Unlock Unplug
*ResetKeys *SpeedKey
*BreakUp *Blank
*CursorEdit *Arrows
*CursorF *Delay 4
*Sh >TWIN
*FixCore *SoundReset
*FontsOff *FontsOn
Appendix A - Command Summary
----------------------------
The following alphabetical list of commands describes briefly the use of each
along with the parameters required by them enclosed in angle brackets. All
these commands are *-commands or OS commands, so may need to be prefixed with
a star in languages such as BASIC.
Action - Set the run action of <file type> to <command>
Arrows - Make the cursor keys produce arrow symbols (their ASCII codes)
Beep - Send character 7 to the VDU drivers (i.e. Beep)
Blank - Black out the screen
Border - Set the border colour up with given <red>, <green> and <blue>
BreakUp - Causes the Break key to reset the computer (Beeb style)
CAction - Set run type for <file type> to clear paged screen & <command>
CLG - Clear the graphics window
CLS - Clear the text window
CancelVDU - Cancel VDU queue
Clear - Clear all buffers
Colour - Set actual colour <colour> to <red>, <green> and <blue>
CursorEdit - Make the cursor keys operate as normal
CursorF - Make the cursor keys act as function keys
Delay - Wait <time>x2.55 seconds for a key press
EscapeOff - Disable the escape key
EscapeOn - Enable the escape key
Explode - Explode soft character RAM allocation
Exterminate - Destroy file/directory <pathname>
FilePrint - Send all printed output to <filename>
FixCore - Fixes the File core in use error which crops up sometimes
Flash - Set colour <colour> to flash <r1>,<g1>,<b1>,<r2>,<g2> & <b2>
FontsOff - Temporarily forget the location of the outline fonts
FontsOn - Reinstate the location of fonts (only use after *FontsOff)
GCol - Set graphics mask <mask> and colour <colour>
HardReset - Causes the Reset button to generate a hard reset
Implode - Implode soft character RAM allocation
Ink - Set logical colour <logical> to physical colour <physical>
Intercept - Inform user when <command> is used and with what parameters
Kill - Disable VDU drivers
KillPage - Disable paged mode
KillPrint - Disable printer echo
LoadEm - Load files that are run (e.g. by double-clicking on desktop)
Lock - Disable command <command>
Mode - Change to display mode <mode>
MouseColour - Set mouse colour <colour> to given <red>, <green> and <blue>
NetPrint - Select network printer attached to 0.254
NullPrint - Select the printer sink (no output)
Page - Enable paged mode
Paper - Set text background colour <logical>
ParaPrint - Select the parallel printer port
Pen - Set text foreground colour <logical>
PoolSprites - When a sprite file is run, it is merged into the WIMP pool
PrOut - Send the output of the given <command> to the current printer
Printer - Echo screen output to printer
Read - Display text file in paged window
ReadEm - When a text file is run, it is displayed in a paged window
ResetKeys - Reset keyboard speed, clear keyboard buffer and function keys
Reverse - Swap text foreground and background colours
Revive - Enable VDU drivers
RunEm - Run files when run
ScreenSprites- When a sprite file is run, the first sprite is displayed
SerialPrint - Select the serial printer port
SetTime - Set the real-time clock to <hh:mm:ss>
SetTypeEm - SetType files to <type> when run
Sh - Set Quiet bell volume
SoundReset - Resets the sound system
SpeedInk - Set <first> and <second> colour flash times in centiseconds
SpeedKey - Set keyboard repeat <delay> and repeat <rate> in centiseconds
Symbol - Redefine <character> to bitmap <l1>,<l2>,<l3>,<l4>,...,<l8>
SysSprites - When a sprite file is run, it is loaded into the system area
Tidy - Reset text window to the whole screen and clear it
Twin - Used by BASIC's TWIN command
Unlock - Reenable <command>
Wait - Wait for frame flyback
Window - Define text window as <left>,<right>,<top>,<bottom>
Appendix B - Updates, bug fixes, donations etc.
-----------------------------------------------
Requests for updated versions of Kasoft's Alias Command Collection, cash
donations and suggestions for new commands can be sent by Snail Mail to:
Kade Hansson
4/73 Alexander Street
Shearwater 7307
AUSTRALIA
(This address is correct as of September 1996.)
My e-mail address is:
kade_fh@postoffice.utas.edu.au