Page 1 of 1

Hard to describe 3D problem

Posted: Sat Feb 17, 2024 2:40 am
by jacdelad
Hi,
I have a problem which is hard to describe (even more without source code), but maybe someone immediately know what to do.
I have a program which opens a WindowedScreen, does stuff and closes it. Afterwards it is opened again, by the same procedure. But now (and every single time) it thinks the left mouse button is pushed. this continues until I actually click it and it behaves like normal. Before closing the window for the first time, I use ReleaseMouse() to release the mouse, but that does not seem to be the problem. Does by chance anybody know how to fix this?

Re: Hard to describe 3D problem

Posted: Sat Feb 17, 2024 2:58 pm
by Caronte3D
Try to send a left mouse button up event before the false down

Code: Select all

mouse_event_(#MOUSEEVENTF_LEFTUP, x, y, 0, 0);

Re: Hard to describe 3D problem

Posted: Mon Feb 19, 2024 3:17 pm
by jacdelad
:D Oh thanks, that works!