Locating the mouse
Richmond Mathewson
richmondmathewson at gmail.com
Sun May 6 15:32:43 EDT 2018
And here he goes again: Richmond answers his own posting:
screenMouse Loc
On 6/5/2018 10:26 pm, Richmond Mathewson wrote:
> Yer: I know: mouseLoc
>
> BUT, that only returns the location 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