er 08, 2008 11:28 AM
To: python-win32@python.org
Subject: Re: [python-win32] Simulating a mouse click - lParam
I tried using the InvalidateRect but it had not effect. Below is the
code I used.
TCM_SETCURSEL = 0x130C
win32gui.SendMessage(hwnd, TCM_SETCURSEL, 3, 0)
win32gui.InvalidateRect(hwnd, None,
ent: Friday, December 05, 2008 6:34 PM
To: Python-Win32 List
Subject: Re: [python-win32] Simulating a mouse click - lParam
Rickey, Kyle W wrote:
> Thanks Tim. I used the following to select my tab of interest:
>
> TCM_SETCURSEL = 0x130C
> win32gui.SendMessage(hwnd, TCM_SETCURSE
Rickey, Kyle W wrote:
> Thanks Tim. I used the following to select my tab of interest:
>
> TCM_SETCURSEL = 0x130C
> win32gui.SendMessage(hwnd, TCM_SETCURSEL, 3, 0)
>
> However, according to MSDN:
> http://msdn.microsoft.com/en-us/library/bb760612(VS.85).aspx
> "Remarks
>
> A tab control does no
quot;elegantly"), but again, the window does
not update. Any ideas?
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 4:25 PM
To: Python-Win32 List
Subject: Re: [python-win32] Simulating a mouse
ndow does
not update. Any ideas?
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 4:25 PM
To: Python-Win32 List
Subject: Re: [python-win32] Simulating a mouse click - lParam
Rickey, Kyle W wrote:
>
Rickey, Kyle W wrote:
>
> 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. How do I c
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. How do I construct the lParam.
Per the MSD