From d6f7f51395c88208f340e5719eade9ff99c7cc44 Mon Sep 17 00:00:00 2001 From: hawkeye Date: Thu, 7 Oct 2021 18:12:02 -0400 Subject: [PATCH] Version 2.02 --- MSFSPopoutPanelManager.csproj | 2 +- Modules/PanelAnalysisModule.cs | 8 +++++++- VERSION.md | 4 ++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/MSFSPopoutPanelManager.csproj b/MSFSPopoutPanelManager.csproj index 3a80810..92147df 100644 --- a/MSFSPopoutPanelManager.csproj +++ b/MSFSPopoutPanelManager.csproj @@ -5,7 +5,7 @@ net5.0-windows true x64 - 2.0.1 + 2.0.2 MSFSPopoutPanelManager MSFSPopoutPanelManager WindowManager.ico diff --git a/Modules/PanelAnalysisModule.cs b/Modules/PanelAnalysisModule.cs index 5c567c9..eab1902 100644 --- a/Modules/PanelAnalysisModule.cs +++ b/Modules/PanelAnalysisModule.cs @@ -240,14 +240,17 @@ namespace MSFSPopoutPanelManager switch (rect.Bottom) { + case 1009: case 1080: return FlightSimResolution.HD; + case 1369: case 1440: return FlightSimResolution.QHD; + case 2089: case 2160: return FlightSimResolution.UHD; default: - return FlightSimResolution.QHD; + return FlightSimResolution.HD; } } @@ -326,6 +329,9 @@ namespace MSFSPopoutPanelManager var point = new Point { X = x, Y = y }; Cursor.Position = new Point(point.X, point.Y); + // Wait for mouse to get into position + Thread.Sleep(1000); + PInvoke.mouse_event(MOUSEEVENTF_LEFTDOWN, point.X, point.Y, 0, 0); Thread.Sleep(200); PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, point.X, point.Y, 0, 0); diff --git a/VERSION.md b/VERSION.md index 3268247..d3dceab 100644 --- a/VERSION.md +++ b/VERSION.md @@ -1,5 +1,9 @@ # Version History
+ +## Vesion 2.0.2.0 +* Added one second delay on mouse click when the application is trying to separate the chained pop out windows. + ## Vesion 2.0.1.0 * Changed how screen resolution is detected. Used vertical instead of horizontal resolution to account for ultra wide monitors.