home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
graphics
/
fractals
/
mand2000demo
/
arexx
/
printcommands.mnd2
< prev
next >
Wrap
Text File
|
1995-02-27
|
2KB
|
56 lines
/* This script is supplied with the Mand2000 demo and release */
/* versions and may be freely distributed. */
/* Print the available commands of the current project, or the */
/* entire program. Pass 'project' or 'global' as a parameter. */
/* Default is global. */
/* Typically this command is run from the menus which are */
/* installed by the default startup.mnd2 script. */
portname = address() /* Retrieve the current port name. */
/* If the portname does not start with MAND2000 then this script must */
/* have been run with rx, rather than from Mand2000. Therefore we */
/* need to set the port name. We do not always set the port name */
/* because it is better to let Mand2000 set it for us, so that */
/* this script can be used with windows other than the one with */
/* port name MAND2000.1. */
if (left(portname, 8) ~= "MAND2000") THEN
address 'MAND2000.1'
options results
say
/* Get the argument passed to this script. */
parse arg command
if (command = PROJECT) THEN DO
say " Project commands are:"
/* Ask for the list of available commands. */
help
CommandList = result
numcommands = Words(CommandList)
/* Ask for help on all commands. */
do command = 1 to numcommands
Word(CommandList, command) "?"
say result
END
END
ELSE DO
address MAND2000
say " Global commands are:"
/* Ask for the list of available commands. */
help
CommandList = result
numcommands = Words(CommandList)
/* Ask for help on all commands. */
do command = 1 to numcommands
Word(CommandList, command) "?"
say result
END
END
exit