http://bugs.winehq.org/show_bug.cgi?id=24435
Summary: time not set by SendInput() if 0 Product: Wine Version: 1.3.1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 AssignedTo: wine-bugs@winehq.org ReportedBy: jUrner@arcor.de
Created an attachment (id=30814) --> (http://bugs.winehq.org/attachment.cgi?id=30814) python test case
in my application i used to synthesize mouse events by using user32.mouse_event(). when switching to SendInput() i got got unexpected behviour from the target of the mouse events. digging into wines sources it looks like SendInput does not set the "time" member of the struct if 0, mouse_event() does. setting this member in my calls to SendInput fixed the problem.
i guess this is a slight inconsistency that goes unnoticed most of the time. in my case, coding an automation tool for poker sites, the target window may have all kinds of tests in place to detect botters.
see: http://msdn.microsoft.com/en-us/library/ms646273%28v=VS.85%29.aspx "The time stamp for the event, in milliseconds. If this parameter is zero, the system will provide its own time stamp. "
attatched python test case install python 2.6 via winetricks and run >>wine c:/Python26/python.exe testcase-SendInput-time-not-set.py
output should be: send MOUSEEVENTF_LEFTDOWN via mouse_event() send MOUSEEVENTF_LEFTUP via SendInput() received WM_LBUTTONDOWN - msg.time: <any greater zero> received WM_LBUTTONUP - msg.time: 0
http://bugs.winehq.org/show_bug.cgi?id=24435
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, testcase
http://bugs.winehq.org/show_bug.cgi?id=24435
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-09-21 00:03:33 CDT --- Patch sent: http://www.winehq.org/pipermail/wine-patches/2010-September/093500.html
http://bugs.winehq.org/show_bug.cgi?id=24435
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #30814|text/x-python |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=24435
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com 2010-09-22 18:11:21 CDT --- Fixed by http://source.winehq.org/git/wine.git/?a=commitdiff;h=88900f429a9c2cf7e2c00d...
http://bugs.winehq.org/show_bug.cgi?id=24435
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2010-10-01 13:56:35 CDT --- Closing bugs fixed in 1.3.4.