Hi,
A simple question with a complex answer, I guess. that is I'd like to be
able to get the mouse pointer location in Perl regardless of whether mouse
events are going to muy application window or to some other thread or
process in stead. I don't really need a generic mouse event handling
function at the moment (e.g. getEvent in ActAcc) nor do I want to block
waiting for the mouse to move.
Currently I'm using a 3rd party OLE DLL provided by the AutoIt application
but am only using the MouseGetPosX and MouseGetPosY methods in it. Most of
the good stuff in the DLL is already implemented in a perlish way in
Setupsup and GuiTest. Further more, the DLL must be registered with
regsvr32.exe before it can be used and is about 85 KB in size.
So is there already some Perl module in CPAN that does the job? The trouble
with the methods in the Console and GUI packages is that I strongly suspect
them getting mouse events only when the console or GUI window in question is
active.
One way to solve the problem would be to install a system wide mouse hook
and use that to get at the events themselves. However, though very simple,
this hook would need to be written in C, because system wide hooks must
reside in DLLs according to MSDN and thus Perl is out, I guess.
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs