[Bug 40988] New: mouse_event doesn't work
https://bugs.winehq.org/show_bug.cgi?id=40988 Bug ID: 40988 Summary: mouse_event doesn't work Product: Wine Version: 1.9.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: proggi(a)yandex.ru Distribution: --- mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); sleep(80); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); Click out of the WINE windows doesn't work. The movement of the cursor works, it is necessary full emulation out of the WINE windows. The Windows program can't work without full emulation of the mouseS. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 --- Comment #1 from proggi <proggi(a)yandex.ru> --- SendInput also doesn't work var TI : TInput; begin TI.Itype := 0; TI.mi.dx := 10000; TI.mi.dy := 10000; TI.mi.mouseData := 0; TI.mi.time := 0; TI.mi.dwFlags := MOUSEEVENTF_MOVE+MOUSEEVENTF_ABSOLUTE; SendInput(1, TI, sizeof(TI)); TI.mi.dwFlags := MOUSEEVENTF_LEFTDOWN; SendInput(1, TI, sizeof(TI)); TI.mi.dwFlags := MOUSEEVENTF_LEFTUP; SendInput(1, TI, sizeof(TI)); end; -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 --- Comment #2 from proggi <proggi(a)yandex.ru> --- Embarcadero XE7 1) new project 2) code unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls; type TForm1=class(TForm) Button1 : TButton; procedure Button1Click(Sender : TObject); private {Private declarations} public {Public declarations} end; var Form1 : TForm1; implementation {$R *.dfm} procedure TForm1.Button1Click(Sender : TObject); begin sleep(5000); mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); sleep(80); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); end; end. 3) RUN!!! On click Botton1, Sleep 5 sek to position cursor. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 --- Comment #3 from Bruno Jesus <00cpxxx(a)gmail.com> --- Please attach a compiled exe. AFAIR it is by design decision that Wine does not mess with non-Wine windows, someone with more information can correct me if I'm wrong. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 --- Comment #4 from proggi <proggi(a)yandex.ru> --- (In reply to Bruno Jesus from comment #3)
Please attach a compiled exe. AFAIR it is by design decision that Wine does not mess with non-Wine windows, someone with more information can correct me if I'm wrong.
http://tiven.ru/Project2.exe 1) To press the button 2) Guide a mouse at the desirable place of click 3) click will be realized (a code higher) within 5 seconds. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com --- Comment #5 from Austin English <austinenglish(a)gmail.com> --- (In reply to Bruno Jesus from comment #3)
Please attach a compiled exe. AFAIR it is by design decision that Wine does not mess with non-Wine windows, someone with more information can correct me if I'm wrong.
That's true, but it should work in a virtual desktop (I didn't try if it did/did no). -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 --- Comment #6 from proggi <proggi(a)yandex.ru> --- GCC Console #include <windows.h> int main() { Sleep(5000); mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); Sleep(80); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); return 0; } -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 Bruno Jesus <00cpxxx(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source Severity|major |normal Summary|mouse_event doesn't work |Synthetic mouse events do | |not work in non-Wine | |windows --- Comment #7 from Bruno Jesus <00cpxxx(a)gmail.com> --- (In reply to Austin English from comment #5)
(In reply to Bruno Jesus from comment #3)
Please attach a compiled exe. AFAIR it is by design decision that Wine does not mess with non-Wine windows, someone with more information can correct me if I'm wrong.
That's true, but it should work in a virtual desktop (I didn't try if it did/did no).
Works inside a virtual desktop. Works between wine windows outside a virtual desktop, does not work for other windows. wontfix? -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WONTFIX --- Comment #8 from Austin English <austinenglish(a)gmail.com> --- (In reply to Bruno Jesus from comment #7)
(In reply to Austin English from comment #5)
(In reply to Bruno Jesus from comment #3)
Please attach a compiled exe. AFAIR it is by design decision that Wine does not mess with non-Wine windows, someone with more information can correct me if I'm wrong.
That's true, but it should work in a virtual desktop (I didn't try if it did/did no).
Works inside a virtual desktop. Works between wine windows outside a virtual desktop, does not work for other windows. wontfix?
Yes, WONTFIX. -- 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.
https://bugs.winehq.org/show_bug.cgi?id=40988 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #9 from Austin English <austinenglish(a)gmail.com> --- Closing. -- 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.
participants (1)
-
wine-bugs@winehq.org