home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn WWW 1999 July
/
www_07_1999.iso
/
prez
/
amiga
/
awebedv1_2.lha
/
AWebEd
/
helpdocs
/
examples
< prev
next >
Wrap
Text File
|
1980-01-07
|
3KB
|
63 lines
Back to MENU
Back to TUTORIAL
Back to COMMANDS
AMAL examples
-------------
The best way to get to grips with AMAL is to take a look at the
included AMAL scripts kept within the "commands" directory.
Below are some small examples which may give you some ideas of
scripts you may find useful.
1. An extended RELOAD command:
This script will force AWeb to load in the current document, move
the AWebEd screen to the back (thereby forcing the AWeb screen to
the front), wait five seconds, and then bring the AWebEd screen back
to the front. It allows the user to reload the current document
into AWeb and look at it briefly, without faffing about with
manually sliding the screens around.
SAVDOC DOCPATH - tells AWebEd to save the current document.
SPEAKTO AWEB.1 - tells AWebEd which Arexx port to send messages
to.
SEND open DOCPATH foce - tells AWEB.1 (the AWeb arexx port) to force
open the current document.
SCREEN TOBACK - forces the AWebEd screen to the back.
DOS wait 5 - runs a DOS command to delay execution of
script for five seconds.
SCREEN TOFRONT - forces the AWebEd screen to the front.
2. An extended IMAGE_LINK command:
It could be that you do not want to store all your Website graphics
and HTML documents in the AWebEd directory tree. This script is a
modification of IMAGE_HL in which the user has told AWebEd to look
for the images and documents totally different places on the user's
harddisk.
TYPE <A HREF="file://localhost/ - Types the start of the
locallink tags.
SETDIRECTORY PATH work:wordpro/docs - Sets the current
directory.
INSERTPATH - Prompts the user for the
file.
TYPE "> IMG SRC="file://localhost/ - More tags.
SETDIRECTORY PATH work:graphics/gifs - Changes directory again.
INSERTPATH - Prompts the user for the
file.
TYPE " </A> - Finish off the tags.
3. Quick list generator:
This script simply inserts the <LI> tag at the start of the line,
and moves the cursor down to the next. This script would speed up
the generation of very long lists.
MOVECURSOR TOSTARTOFLINE - Moves the cursor to the start of
the current line.
TYPE <LI> - Types the tag.
MOVECURSOR DOWN 1 - Moves the cursor down one line.