Scripit Select Commands ======================= SELECT screenname windowname Select the Screen (and window) all the other commands will work on. If no SELECT command was used, the currently active window will be selected. (In all cases, the first match will be used.) S SCREEN screenname Select the first window in the specified screen. S WINDOW windowname Select the specified window. (Searches through all the screens in the system.) S ACTIVE Select the currently active window. S MENU menuname This will force the screen/window search to look for the specified menu as the search criterion for the SELECT command. This should only be used with programs that have no screen or window name. (e.g. to select DPaint: SELECT MENU Picture) Make sure you select a menu name that is unique to the program you're looking for. S GADGET gadgetname This will force the screen/window search to look for the specified gadget name as the search criterion for the SELECT command. This should be used only when the program has no no screen or window name, or any menus. Make sure you select a gadget name unique to the window you're looking for. S WAIT [MaxDelay] [ABORT] This sets the time all the SELECT commands will keep trying to find the requested screen, window, menu, or gadget. The MaxDelay is specified in ticks, (50 per second). The ABORT keyword, when specified, tells Scripit to abort the script if the requested window, etc. could not be found in the specified time, otherwise, if the ABORT keyword was not specified, the script will just continue. Example: SELECT WAIT 500 ABORT This means: Wait for 10 seconds (500/50) and if nothing found then abort the script. The S WAIT command doesn't do anything by itself, it only modifies the operation of the other SELECT commands (except for SELECT ACTIVE.) To turn the wait off, just type 'S WAIT' alone. Note: In all SELECT commands, SELECT can be replaced with an 'S'. ----- e.g. 'S ACTIVE' is the same as 'SELECT ACTIVE'. Copyright 1989 Khalid Aldoseri.