Hard to describe 3D problem

Everything related to 3D programming
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Hard to describe 3D problem

Post 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?
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Caronte3D
Addict
Addict
Posts: 1361
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Hard to describe 3D problem

Post 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);
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Hard to describe 3D problem

Post by jacdelad »

:D Oh thanks, that works!
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply