ControlClick Up releases all buttons
Posted: 23 May 2017, 00:52
Hi,
I noticed that when sending a ControlClick with U option (button UP), all other buttons got automatically released. A quick check at the source revealed this comes from this line (script2.cpp:2207)
The wParam is forced to 0 hence releasing all the buttons. To fix it, simply replace the 0 with a wParam value that reflects the real states of the other buttons. Testing with pure window messages confirmed it's enough to make it work as expected.
Thanks
I noticed that when sending a ControlClick with U option (button UP), all other buttons got automatically released. A quick check at the source revealed this comes from this line (script2.cpp:2207)
Code: Select all
PostMessage(control_window, msg_up, 0, lparam);
Thanks