OKScript Status Report #20 October 8, 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. One aspect of the OKwin client that I've always found annoying is the "Respond to Claim" dialog appearing on top of one of the hands and having to move it to see. By design this dialog is always drawn in the center of the screen regardless of what else may occupy that space. Here is a simple script that will move this dialog to another location. It can be added to any existing OKScript file. Note that the coordinates in the two "MOUSE XY" instructions (652-380 and 900-250) will ONLY work a screen resolution of 1152x864. These values MUST be changed if you are using a resolution other than 1152x864. To determine the proper coordinates for your system use OKScript's mouse position tool (Edit > Mouse Position). The ClaimBoxMoved macro ensures that, once the dialog has been moved we don't try to move it again until this one disappears and another claim dialog pops up. The remainder of the code is documented in the comments. MACRO ClaimBoxMoved FALSE - check every second ... DO EVERY 00:00:01 - for the presence of a claim dialog IF RUNNING Claim EQ - if we haven't moved this one before then ... IF NOCASE %ClaimBoxMoved% EQ FALSE - wait a moment for OKwin to make the dialog available DELAY 1200 - put the mouse pointer in the title bar MOUSE XY 652 380 - press the left mouse button MOUSE LEFTDOWN - move the mouse to the desired new location MOUSE XY 900 250 - release the left mouse button MOUSE LEFTUP - set flag to indicate this dialog has been moved LET ClaimBoxMoved TRUE FI ELSE - if no dialog present then set flag to false LET ClaimBoxMoved FALSE FI For more information, or to offer suggestions or interesting techniques or applications for OKScript, write me at yweare@gte.net, or visit the website at http://home1.gte.net/yweare/index.htm Thank you for supporting the development of OKScript. Michael Mardesich okb://mikezzz