OKScript Status Report #16 January 4, 2002 Dear OKScript User, The OKScript Status Report is sent to OKScript licensees, developers and friends when significant updates have been made to the program. Interesting techniques and applications for the program will also be distributed in the report periodically. To update or be removed from the distribution list please see the links at the bottom of this message or write me at yweare@gte.net. This issue discribes updates to OKScript's mouse features, using OKScript with Bridge Base Online, and a correction to the 11/4/2001 newsletter. MOUSE FEATURES The last newsletter included lengthy instructions for setting the coordinates in a mouse positioning instruction by trial and error. To simplify this process the November 10, 2001 OKScript release includes a mouse position tool that is activated from OKScript's Edit menu. When active, this tool reports three sets of mouse coordinates - screen relative, window relative from upper left corner and the lower left corner. To determine the coordinate of a control with this tool simply click on the window containing it, move the mouse pointer to the target control and read the value on the position toolbar. The November 10 release also added four functions to the MOUSE instruction: LEFTCLICK - simulates a click of the left mouse button. RIGHTCLICK - simulates a click of the right mouse button. SAVE - stores the current mouse position. RESTORE - resets the mouse pointer to the SAVEd position. OKSCRIPT WITH BRIDGE BASE ONLINE Bridge Base Online (www.bridgebase.com) is another bridge service that can be automated with OKScript, but with a twist. To alert a bid in BBO one clicks the "Alert" button and makes a bid. Once the bid has been issued a popup dialog appears asking for an explanation. To target this dialog from OKScript use "Explain" (without quotes) as the window to activate, e.g.: BUTTON capp2H red Explain hearts and a minor{enter} Text can also be sent to the opponents using the chat mechanism, but this requires some mouse scripting to click the button that activates this feature in the BBO client. CORRECTION The example screen coordinates for e-bridge window components that were worked out in the 11/4/2001 newsletter were performed on an 1152x864 screen, not 1024x768. For more information, or to offer suggestions or interesting techniques or applications for OKScript, write me at yweare@gte.net, or visit the recently restyled website at http://home1.gte.net/yweare/index.htm Thank you for supporting the development of OKScript. Michael Mardesich okb://mikezzz