Hard to describe 3D problem

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

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?
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
User avatar
Caronte3D
Addict
Addict
Posts: 1051
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: 1475
Joined: Wed Feb 03, 2021 12:46 pm
Location: Planet Riesa
Contact:

Re: Hard to describe 3D problem

Post by jacdelad »

:D Oh thanks, that works!
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Post Reply