[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Toolbox] GetMouse()



Hello,
I'm trying to get the position of the mouse at any given time. So far I
have this:

#!perl
use Mac::Events;
$mouse_pos = GetMouse();
print "Mouse: $mouse_pos\n";

When run, I get this:

Mouse: Point=SCALAR(0x1cd86c0)

This same result comes back every time I run the script, regardless of
mouse position. I've checked the
Mac::Events pod, and the GetMouse() section of Inside Macintosh; the
latter was surprisingly nondescript. Can anyone help me with this? The
Button() function works just fine in returning the status of the button,
btw.

Thanks,
Kraig Finstad


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org