home *** CD-ROM | disk | FTP | other *** search
- Tool Tips
-
- 1) To invoke the default action of an item in the Tools folder, just double-click
- on the item. The default actions are:
-
- template - insert the contents into the current document
- script - run the script
- info - open the file
- html - open the file in your HTML browser
- internet shortcut - open the URL in your HTML browser
-
- IMPORTANT: Many scripts operate - including all the insert X scripts - on
- the active document. Many of these scripts also use the current selection
- or caret position in their operation. Normally the active document will be
- visible so that you can see what is happening to the document, but if the
- active document is minimized, then you will not be able to see what changes
- are being made to the document until you maximize the document. Also note
- that if there is no active document then these scripts will not perform any
- operation.
-
- 2) You can also use the context menu to get a list of commands to invoke on an item.
- The commands are:
-
- open - open the file for editing
- insert - insert the contents
- run - execute the script
- run batch* - execute the script in a separate thread
- hotkey - assign a hot key combination to run a script
-
- * The run batch command also activates the stop button (the red X button).
- Use the run batch command for scripts that you may want to kill.
-
- 3) To customize the header in new documents, edit the files in the Data folder.
- If you would like to change the contents of newly created documents edit
- the onCreateXFile scripts located in the EventHandlers folder.
-
- 4) To add your own template create a .template type file and put it in the
- appropriate Tools sub-folder.
-
- 5) To add a script that will wrap a selection see the script "Html/insert B"
- as an example. The insert B script wraps a selection with <B>...</B>.
- For example, if you select the word "Hello" in a document and then run the
- insert B script it will wrap "Hello" like this "<B>Hello</B>".
-
- Another more complicated wrap example is the "Script/Misc/insert DoCommand"
- script. It puts the selected lines in a DoCommand function. For example,
- if you select the line
-
- var map = getMapFile("WindowList");
-
- and then run the "insert DoCommand" script the selection is converted to a
- DoCommand function like this:
-
- function DoCommand()
- {
- var map = getMapFile("WindowList");
- }
-
- Copyright ⌐ 1997-1998 - Modelworks Software
-