[Greasemonkey] Finding Mouse Coordinates

Arvid Jakobsson arvid.jakobsson at gmail.com
Wed Jan 25 08:56:07 EST 2006


Then why don't use the mouseclick event that is generated when someone
clicks that link? I guess it has the mousex and mousey values as well. Or
have I completly misunderstood your problem?

2006/1/25, Brendan Crosser-McGay <verifex at gmail.com>:
>
> On this script: http://userscripts.org/scripts/show/1434
>
> In the script for making a transparent draggable window, I need the mouse
> event to be able to drag it around properly.  The only place I've found
> the
> mousex and mousey values seem to be inside that event.  My dilemma is, I
> want a link on the page that will reposition this draggable window element
> to the exact place where the mouse is, which is right at the link.
>
> The only half-usable solution I've managed to come up with, is one where
> on
> the click, it reinitializes the entire window at the mouse position, but
> it
> still requires the mouse to be moved before the element actually changes
> coordinates.
>
> Thanks,
> Brendan
>
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
>
>


More information about the Greasemonkey mailing list