https://bugs.winehq.org/show_bug.cgi?id=37528
Bug ID: 37528 Summary: mouse_event Product: Wine Version: 1.7.30 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: user32 Assignee: wine-bugs@winehq.org Reporter: den.aria@gmail.com Distribution: ---
Hello! I am trying generate mouse event and using the mouse_event function. When event in my application win32 (started by WINE) it is work great, but when event in the native Linux (Ubuntu) window it's does not work.
Mouse move work ok in Ubuntu and mouse is moving mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
But MOUSEEVENTF_RIGHTDOWN, MOUSEEVENTF_RIGHTUP is not working for Linux window. native Linux window is transparent for event.
How can I generate mouse click for native Linux windows? from my win32 application.
https://bugs.winehq.org/show_bug.cgi?id=37528
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|user32 |-unknown Resolution|--- |WONTFIX
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to den123 from comment #0)
Mouse move work ok in Ubuntu and mouse is moving mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
But MOUSEEVENTF_RIGHTDOWN, MOUSEEVENTF_RIGHTUP is not working for Linux window. native Linux window is transparent for event.
How can I generate mouse click for native Linux windows? from my win32 application.
Basically you can't, see bugs 6887,9128,23027 for some details.
https://bugs.winehq.org/show_bug.cgi?id=37528
--- Comment #2 from den123 den.aria@gmail.com --- Thank you for quick reply. I see the bugs 6887,9128,23027, but there is no solution of the problem, (generate mouse click for native Linux windows) , this is impossible?
Very interesting, because function "mouse_event(MOUSEEVENTF_MOVE" working great, i see mouse move on the linux window and i can select menu items or buttons, but don't click it.
Can i sendmessage to linux window? May be better discuss this question on the forum?
https://bugs.winehq.org/show_bug.cgi?id=37528
--- Comment #3 from den123 den.aria@gmail.com --- I have suggestion. If wine can do mouse move event, wine must do mouse click event for linux window.
Instruction:)
1. Wine got the mouse click event (WM_MouseClick or mouse_event MOUSEEVENTF) 2. Wine check the top focused window in Linux and if it Linux window, wine generate a mouse click event for Linux system.
I belive wine can do it)
https://bugs.winehq.org/show_bug.cgi?id=37528
--- Comment #4 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to den123 from comment #3)
I have suggestion. If wine can do mouse move event, wine must do mouse click event for linux window.
There is an answer in one of the bugs I referenced: X11 APIs don't provide a reliable way for that.
Instruction:)
- Wine got the mouse click event (WM_MouseClick or mouse_event MOUSEEVENTF)
- Wine check the top focused window in Linux and if it Linux window, wine
generate a mouse click event for Linux system.
I belive wine can do it)
Patches are welcome.
https://bugs.winehq.org/show_bug.cgi?id=37528
--- Comment #5 from den123 den.aria@gmail.com --- Sorry Dmitry, i'm not linux programmer. (only Windows) But i find some useful information, functions Xlib XSendEvent and xdotool.
http://stackoverflow.com/questions/14656615/xlib-xsendevent-click-event-do-n...
http://stackoverflow.com/questions/5802177/mouse-button-simulation-right-but...
http://www.semicomplete.com/blog/geekery/xsendevent-xdotool-and-ld_preload.h...
I think if XSendEvent can do mouse click (and keyboard event) in the some linux windows, this is better than nothing.
https://bugs.winehq.org/show_bug.cgi?id=37528
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=37528
--- Comment #7 from den123 den.aria@gmail.com --- (In reply to Austin English from comment #6)
Closing.
Can i have hope, to get this feature in the future? I try run remote access software in the Linux and without mouse/keyboard simulation my applications won't work on 100%, because it is can't to do remote desktop control.
I think WINE must evolution, and provide more opportunities: simulate mouse/keyboard, control system power and etc.
https://bugs.winehq.org/show_bug.cgi?id=37528
proggi proggi@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |proggi@yandex.ru
--- Comment #8 from proggi proggi@yandex.ru --- Click of the cursor across the field OUT OF the wine windows is necessary! 1.9.14 without working.