home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / Scripit_v1.0 / Docs / WBench.DOC < prev    next >
Text File  |  1989-08-06  |  3KB  |  101 lines

  1.                     Controlling Workbench From Scripit
  2.                     ----------------------------------
  3.  
  4.  
  5. In order to have Scripit control Workbench, there are a couple of things you
  6. must do:
  7.  
  8. 1.  Copy the 'XitLoadWB' file to your C: directory.
  9.  
  10. 2.  Change the line in your s:startup-sequence that says 'LoadWB' to
  11.     'XitLoadWB'.
  12.  
  13. Now, the next time you reboot, XitLoadWB will take over the loading of
  14. Workbench itself, (i.e. the 'LoadWB' line will not be needed since it will
  15. be run by ScripitLoadWB.)  You still need LoadWB in your C: directory, though.
  16. What this program does is to hook itself to WB after loading it, and
  17. becomes an interface between Scripit and WB, receiving commands from Scripit
  18. and telling Workbench what to do.
  19.  
  20.  
  21. With the Scripit WB commands, you do not need to 'SELECT' the Workbench
  22. window, all WB commands will automatically do that, and will restore
  23. the previously selected window.
  24.  
  25.  
  26. The following is a list of the Scripit WB Commands:
  27.  
  28.  
  29.  
  30.             Workbench Commands:  For use with Workbench only
  31.             ------------------------------------------------
  32.  
  33. WB SELECT       <icon>
  34.  
  35.                 Selects (single-clicks) a Workbench icon.
  36.                 (Will automatically deselect any icons previously selected.)
  37.  
  38. WB OPEN         <icon>
  39.  
  40.                 Opens (double-clicks) a Workbench icon.  This will open a
  41.                 drawer's window, or invoke a tool or project.
  42.                 (Will automatically deselect any icons previously selected.)
  43.  
  44. WB CLOSE        <drawer>
  45.  
  46.                 Closes a Workbench drawer.
  47.  
  48. WB DESELECT     Deselects all icons.
  49.  
  50. WB SHIFTSELECT  <icon_1> <icon_2> ..... <icon_N>
  51.  
  52.                 Shift-selects a list of icons.
  53.  
  54. WB SHIFTOPEN    <icon_1> <icon_2> ..... <icon_N>
  55.  
  56.                 Shift-selects a list of icons, and shift-double-clicks on
  57.                 the last icon in the list.
  58.  
  59. WB SNAPSHOT     This will 'Snapshot' the currently selected icons.  Use either
  60.                 the 'WB SELECT' command to select the icon, or the
  61.                 'WB SHIFTSELECT' command to select multiple icons, then issue
  62.                 this command.
  63.  
  64. WB CLEANUP      This will 'Clean Up' the currently selected drawer.
  65.  
  66. WB REDRAW       This will 'Redraw' the Workbench screen.
  67.  
  68. WB INFO         This will bring up the 'Info' window about the select icon.
  69.  
  70. WB MENU         <menu> <item>
  71.  
  72.                 Simulates selecting the specified menu/menuitem.  e.g.
  73.                 WB MENU Disk "Empty Trash" will trigger the Empty Trash menu.
  74.  
  75. WB DRAG         <icon> <move_x> <move_y> <steps>
  76.  
  77.                 Drags the WB icon by the specified x,y coordinates.
  78.                 (x & y can be either positive or negative)
  79.                 Specifying <steps> will make the drag smoother by showing
  80.                 the icon actually moving.  The number of steps is the number
  81.                 of times the icon will be display on route.  (I find that
  82.                 20 to 30 steps are good for long moves.)
  83.  
  84. WB DRAGTO       <icon> <destination_x> <destination_y> <steps>
  85.  
  86.                 Drags the WB icon to the specified x,y coordinates.
  87.                 (x & y can only be positive.)
  88.  
  89. WB DRAGOVER     <icon1> <icon2> <steps>
  90.  
  91.                 Drags icon1 and moves it on top of icon2.  This will achieve
  92.                 different results based on what icon1 and icon2 are.
  93.                 (e.g. copy disk or move icon into drawer)
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.                       Copyright 1989  Khalid Aldoseri.
  101.