1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-10-16 06:00:45 +00:00

Version 2.02

This commit is contained in:
hawkeye 2021-10-07 18:12:02 -04:00
parent 46b2ce5f54
commit d6f7f51395
3 changed files with 12 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
<Platforms>x64</Platforms>
<Version>2.0.1</Version>
<Version>2.0.2</Version>
<AssemblyName>MSFSPopoutPanelManager</AssemblyName>
<RootNamespace>MSFSPopoutPanelManager</RootNamespace>
<ApplicationIcon>WindowManager.ico</ApplicationIcon>

View file

@ -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);

View file

@ -1,5 +1,9 @@
# Version History
<hr/>
## 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.