Locating the mouse

Richmond Mathewson richmondmathewson at gmail.com
Sun May 6 15:26:18 EDT 2018


Yer: I know: mouseLoc

BUT, that only returns the loaction of the mouse relative to the 
top-left of a stack.

Let us suppose one has a stack measuring 100 by 100 pixels at the centre 
of one's monitor . . .

And one wants to know the position of the mouse in terms of the monitor 
rather than the stack . . .

So that one can determine IF the mouse is 100 pixels away from the 
left-hand side of the stack, or 200 pixels.

This would, of necessity, have to be in a stackScript or a cardScript 
and NOT involve any mouseClicks as that
would take focus away from the stack.

Richmond.



More information about the Use-livecode mailing list