winapi: mouseclick

Tim Golden tim.golden at
Tue Jan 27 10:23:10 CET 2004

>From: Tim Golden [mailto:tim.golden at]
>>From: KNS [mailto:netquest at]
>>> Can someone please suggest how to test for a mouse click using
>>> the WinAPI?  I have dispatched a windows application and would
>>> like to detect any mouseclicks (and keyboard entry for that 
[... snip my original explanation via win32all / ctypes ...]

Or, alternatively, you can use PyGame ( to
get lower-level control, obviously intended for games, but
quite able to be used for gui-type operations.


BTW I apologise for the loss of threading on these posts: I'm
using Outlook to reply to the mailing list, and it notoriously
doesn't thread properly. If anyone has a fix, please let me know.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

More information about the Python-list mailing list