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 IMG SRC="file://localhost/ - More tags. SETDIRECTORY PATH work:graphics/gifs - Changes directory again. INSERTPATH - Prompts the user for the file. TYPE " - Finish off the tags. 3. Quick list generator: This script simply inserts the
  • 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
  • - Types the tag. MOVECURSOR DOWN 1 - Moves the cursor down one line.