[Bug 5623] GetAsyncKeyState wrong if querying process doesn't have focus

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Aug 30 21:37:38 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=5623

--- Comment #34 from Bruno Jesus <00cpxxx at gmail.com> 2011-08-30 21:37:34 CDT ---
Created an attachment (id=36169)
 --> (http://bugs.winehq.org/attachment.cgi?id=36169)
sample app

This is almost fixed if you use virtual desktop in wine, if not the keys are
not detected if the window focused is not handled by wine (maybe this is
expected).

I created a small test application that queries GetAsyncKeyState for the entire
set of VKeys and count the repetitions of a pressed key or repeated key (this
is the most common way to create non-intrusive keyloggers).

On windows if you open several times main.exe and press a key or mouse button
on any of the windows all samples show the same key and almost the same number
of repetitions.

This sample does not have a window so to test it open winecfg or other
application and open main.exe at least twice on different consoles. Then just
click or press any key while focusing a wine window and all clones of the
main.exe will show the same or very similar results.

Can anyone else, please, test the demo and reproduce the same behavior in a
clean prefix in 1.3.27?

-- 
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