CShadowRun
2008-Aug-29 14:18 UTC
[Wine] wine rejecting keyboard input when window not focused
I'm wondering if theres a way to disable it, I made a program which broadcasts keystrokes between multiple windows (see the source here, http://www.nomorepasting.com/getpaste.php?pasteid=19683 ) This program works fine in everything, except wine. It works fine in wine too, but only when the window is focused. This makes me think that wine is rejecting the keyboard input, purely because the window isn't focused. :( If anyone has any ideas it'd be appriciated, however don't expect me to dive into the wine source code, i don't know anything apart from basic python, and most of the above code is copied from pykey. Thanks in advance for any help.
Vincent Povirk
2008-Aug-29 14:57 UTC
[Wine] wine rejecting keyboard input when window not focused
You probably need to send the keystrokes from within Wine. Wine's keyboard input code has the interesting property that it does not care which of its windows recieves keyboard events. This is because Windows' keyboard input model is drastically different from that of X. So Wine only uses X to get a stream of keystrokes from the user, which it then processes and dispatches like Windows does. Since this process throws away the destination of keyboard events, Wine actually uses the input focus to decide where keystrokes are supposed to go. If none of its windows are focused, keyboard input can't go anywhere. Vincent Povirk On Fri, Aug 29, 2008 at 9:18 AM, CShadowRun <wineforum-user at winehq.org> wrote:> I'm wondering if theres a way to disable it, I made a program which broadcasts keystrokes between multiple windows (see the source here, http://www.nomorepasting.com/getpaste.php?pasteid=19683 ) This program works fine in everything, except wine. It works fine in wine too, but only when the window is focused. > > This makes me think that wine is rejecting the keyboard input, purely because the window isn't focused. :( > > If anyone has any ideas it'd be appriciated, however don't expect me to dive into the wine source code, i don't know anything apart from basic python, and most of the above code is copied from pykey. > > Thanks in advance for any help. > > > > > >
CShadowRun
2008-Aug-29 15:44 UTC
[Wine] Re: wine rejecting keyboard input when window not focused
Well i tested with autoit, and yes i can controlsend text with it. But i can't hook hotkeys. I hear this isn't available in wine yet. Any other ideas?
vitamin
2008-Aug-29 18:11 UTC
[Wine] Re: wine rejecting keyboard input when window not focused
CShadowRun wrote:> that keyboard implimentation is a little broken then, I assume by what your saying such things as MPX (The multi pointer X server) will not work with wine very well. Someone should probably fix this issue :)Patches are welcome. Also you can tell m$ to re-design everything the right way.
Maybe Matching Threads
- applying duplicated, unique and match to lists?
- C code validation
- [PATCH server] updated anyterm/ovirt integration
- [LLVMdev] Applying for Hi There I am a PhD student of Computer Scince at Simon Fraser University (http://www.cs.sfu.ca) interested in applying to GSoC. My PhD is focused on theoretical computer science, but since Sep. 2008 I have started working on
- R-focused Software Engineer at Sage Bionetworks