Active window and mouse location

J. Landman Gay jacque at hyperactivesw.com
Tue May 8 16:17:34 EDT 2018


On 5/8/18 12:48 PM, Douglas Ruisaard via use-livecode wrote:
> On a somewhat related note, how do you "set" the mouse location within an LC window?  I know and use the "set the screenMouseLoc to the loc of this stack" but an equivalent "set the MouseLoc to the loc of this stack" or "set the mouseLoc to "650,420"" generates an error of "Properties: token is not a property) near "mouseLoc", char 10" when trying to save the code.  Seems odd that I have to use FULL screen coordinates to set the mouse location rather than relative ones to the stack.

The globalLoc function will translate the coordinates for you:

set the screenMouseLoc to globalLoc(cardX,cardY)

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list