Controlling Workbench From Scripit ---------------------------------- In order to have Scripit control Workbench, there are a couple of things you must do: 1. Copy the 'XitLoadWB' file to your C: directory. 2. Change the line in your s:startup-sequence that says 'LoadWB' to 'XitLoadWB'. Now, the next time you reboot, XitLoadWB will take over the loading of Workbench itself, (i.e. the 'LoadWB' line will not be needed since it will be run by ScripitLoadWB.) You still need LoadWB in your C: directory, though. What this program does is to hook itself to WB after loading it, and becomes an interface between Scripit and WB, receiving commands from Scripit and telling Workbench what to do. With the Scripit WB commands, you do not need to 'SELECT' the Workbench window, all WB commands will automatically do that, and will restore the previously selected window. The following is a list of the Scripit WB Commands: Workbench Commands: For use with Workbench only ------------------------------------------------ WB SELECT Selects (single-clicks) a Workbench icon. (Will automatically deselect any icons previously selected.) WB OPEN Opens (double-clicks) a Workbench icon. This will open a drawer's window, or invoke a tool or project. (Will automatically deselect any icons previously selected.) WB CLOSE Closes a Workbench drawer. WB DESELECT Deselects all icons. WB SHIFTSELECT ..... Shift-selects a list of icons. WB SHIFTOPEN ..... Shift-selects a list of icons, and shift-double-clicks on the last icon in the list. WB SNAPSHOT This will 'Snapshot' the currently selected icons. Use either the 'WB SELECT' command to select the icon, or the 'WB SHIFTSELECT' command to select multiple icons, then issue this command. WB CLEANUP This will 'Clean Up' the currently selected drawer. WB REDRAW This will 'Redraw' the Workbench screen. WB INFO This will bring up the 'Info' window about the select icon. WB MENU Simulates selecting the specified menu/menuitem. e.g. WB MENU Disk "Empty Trash" will trigger the Empty Trash menu. WB DRAG Drags the WB icon by the specified x,y coordinates. (x & y can be either positive or negative) Specifying will make the drag smoother by showing the icon actually moving. The number of steps is the number of times the icon will be display on route. (I find that 20 to 30 steps are good for long moves.) WB DRAGTO Drags the WB icon to the specified x,y coordinates. (x & y can only be positive.) WB DRAGOVER Drags icon1 and moves it on top of icon2. This will achieve different results based on what icon1 and icon2 are. (e.g. copy disk or move icon into drawer) Copyright 1989 Khalid Aldoseri.