python win32 simulate click

Posted by nabizan on Stack Overflow See other posts from Stack Overflow or by nabizan
Published on 2010-06-03T07:37:21Z Indexed on 2010/06/03 7:44 UTC
Read the original article Hit count: 202

Filed under:
|

Let's say I've got a window for which I want to simulate a mouse click at a specific x, y coordinate. I already have the hwnd but I'm not sure how to construct the lParam. I've used SendMessage in the past to click on buttons, etc., but I knew their hwnds. Any help would be greatly appreciated. I also can't help but wonder if I'm going about this the right way. My end goal is clicking on a certain user on skype main window (for example). I used EnumChildWindows to find all the main window's children, but couldn't find the right one. So figured I would try to 'click' on it using coordinates.

© Stack Overflow or respective owner

Related posts about python

Related posts about win32