See functions WindowFromPoint() and PostMessage()/SendMessage()
These are the C API functions. Not sure about what Perl wrappers look like.
hth,
Charlie
At 12:46 AM 2/21/2003 -0500, Jeremy Muhlich wrote:
Chris Devers said: > On Thu, 20 Feb 2003, Dan Bond wrote: > >> Trying to do this in win 95. Also, just realized I forgot to add >> something else in, I only want the click to happen in specific mouse >> states. As in, if mosue is in that "hourglass" mode, then no click, if >> its in normal mode, then click, and I want an actual mouse click on >> xxx, yyy cordinates of the screen. > > ...and you want to do this in Perl? Honestly, I think you're looking at > a Visual Basic program, or maybe Python or something else that can play > nicely with Windows COM. Last time I tried it, Perl wasn't the best > choice for this sort of thing, but VB is more or less made for this.Chris - The Win32:: modules that come with ActiveState actually work really well for interfacing with OLE and COM and whatnot. Dan - A *really* quick google search turned up 2 options: 1) Tk::CursorControl, which requires Win32::API under Windows: http://search.cpan.org/author/DUNNIGANJ/Tk-CursorControl-0.2/CursorControl.pm 2) Read up on win32's SetCursorPos and use Win32::API yourself: http://search.cpan.org/author/ACALPINI/Win32-API-0.20/API.pm I didn't look into actually emulating the click or detecting the cursor mode, but if you google around a bit it should be easy to find. -- Jeremy _______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm
_______________________________________________ Boston-pm mailing list [EMAIL PROTECTED] http://mail.pm.org/mailman/listinfo/boston-pm

