DOWNLOAD
To view this script, click the button below. Your browser should show you the script in your browser window. Copy and paste that script into ToolBook.

View Now
 


OBJECT MANIPULATION
FUNCTION: movePointerToObject()

Add-on OpenScript Function - should work in version 6 and higher of ToolBook

  Syntax

movePointerToObject(<loc>|<objRef>)

  Parameters <loc>
A position represented in page units, in for form of X,Y

<objRef>
A reference to a ToolBook object

    Returns Returns null in all cases. 

    Sample get movePointerToObject(button "next")

    Notes This function smoothly move the mouse pointer from its current position to the specified location, in a nice smooth manner.

You can pass an X,Y position or you can pass an Object reference. If you pass and Object reference the mouse will move to the center of that object.

This function also requires that the TB85R.SBK system book be in your bound system books list. Use the Bound System Books option in the File menu to add this book if it is not already present. Failing to add it will result in the function failing at Runtime.