http://bugs.winehq.org/show_bug.cgi?id=7032
Summary: mouse_event() clicks do not register with cspy controls Product: Wine Version: 0.9.28. Platform: PC-x86-64 OS/Version: other Status: NEW Keywords: source Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: thestig@google.com
I'm trying to write automated tests using Autohotkey and Cspy 1.00. Autohotkey's "Click" and "MouseClick" commands generate mouse_event() calls to simulate moving and clicking the mouse.
On Windows, interacting with the control window in any Cspy application works perfectly. On Wine, when using mouse_event(), the controls react to mouse movements, but not mouse clicks. Physically clicking the mouse works.
I did some traces and compared the calls from mouse_event() vs physically clicking the mouse button.
mouse_event() produced: send_hardware_message( id=0000, win=(nil), msg=00000201, time=00002f51, wparam=1, lparam=0, info=ffc3d44f, x=332, y=233 )
whereas clicking the mouse produced: send_hardware_message( id=000d, win=0x1002c, msg=00000201, time=00003507, wparam=1, lparam=0, info=0, x=332, y=233 )
Anyone know what's going on here?
BTW, Autohotkey and Cspy both have source code available for download.