[Bug 24435] New: time not set by SendInput() if 0

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Sep 17 05:06:41 CDT 2010


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 at winehq.org
        ReportedBy: jUrner at 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list