home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / _tips.info < prev   
Encoding:
Text File  |  2001-06-19  |  2.5 KB  |  60 lines

  1. Tool Tips  
  2.  
  3. 1) To invoke the default action of an item in the Tools folder, just double-click
  4. on the item.  The default actions are:
  5.  
  6.   template            - insert the contents into the current document
  7.   script              - run the script
  8.   info                - open the file
  9.   html                - open the file in your HTML browser 
  10.   internet shortcut   - open the URL in your HTML browser
  11.   
  12.   IMPORTANT: Many scripts operate - including all the insert X scripts - on 
  13.   the active document.  Many of these scripts also use the current selection
  14.   or caret position in their operation.  Normally the active document will be 
  15.   visible so that you can see what is happening to the document, but if the 
  16.   active document is minimized, then you will not be able to see what changes
  17.   are being made to the document until you maximize the document. Also note 
  18.   that if there is no active document then these scripts will not perform any 
  19.   operation. 
  20.  
  21. 2) You can also use the context menu to get a list of commands to invoke on an item. 
  22. The commands are: 
  23.  
  24.   open                - open the file for editing
  25.   insert              - insert the contents
  26.   run                 - execute the script
  27.   run batch*          - execute the script in a separate thread
  28.   hotkey              - assign a hot key combination to run a script
  29.   
  30.   * The run batch command also activates the stop button (the red X button). 
  31.   Use the run batch command for scripts that you may want to kill. 
  32.  
  33. 3) To customize the header in new documents, edit the files in the Data folder. 
  34. If you would like to change the contents of newly created documents edit
  35. the onCreateXFile scripts located in the EventHandlers folder.
  36.  
  37. 4) To add your own template create a .template type file and put it in the 
  38. appropriate Tools sub-folder.   
  39.  
  40. 5) To add a script that will wrap a selection see the script "Html/insert B"
  41. as an example.  The insert B script wraps a selection with <B>...</B>.
  42. For example, if you select the word "Hello" in a document and then run the 
  43. insert B script it will wrap "Hello" like this "<B>Hello</B>".  
  44.  
  45. Another more complicated wrap example is the "Script/Misc/insert DoCommand"
  46. script. It puts the selected lines in a DoCommand function. For example, 
  47. if you select the line
  48.  
  49. var map = getMapFile("WindowList");
  50.  
  51. and then run the "insert DoCommand" script the selection is converted to a
  52. DoCommand function like this:
  53.  
  54. function DoCommand()
  55. {
  56.   var map = getMapFile("WindowList");
  57. }
  58.  
  59. Copyright ⌐ 1997-1998 - Modelworks Software
  60.