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

Release v4.0.1.2

This commit is contained in:
hawkeye 2023-07-27 10:50:57 -04:00
parent 237fdfc1a2
commit f7df9c8c45
10 changed files with 74 additions and 41 deletions

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.DomainModel</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -14,9 +14,9 @@
<RootNamespace>MSFSPopoutPanelManager.MainApp</RootNamespace>
<ApplicationIcon>logo.ico</ApplicationIcon>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<DebugType>embedded</DebugType>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<!-- Publishing options -->

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Orchestration</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -319,12 +319,14 @@ namespace MSFSPopoutPanelManager.Orchestration
if (!ActiveProfile.ProfileSetting.RefocusOnDisplay.IsEnabled)
return;
var panelConfig = ActiveProfile.PanelConfigs.FirstOrDefault(p => p.PanelType == PanelType.RefocusDisplay);
if (panelConfig != null)
foreach (var panelConfig in ActiveProfile.PanelConfigs.Where(p => p.PanelType == PanelType.RefocusDisplay))
{
StatusMessageWriter.WriteMessage($"Configurating {panelConfig.PanelName} for auto refocus on touch", StatusMessageType.Info);
panelConfig.PanelHandle = new IntPtr(1);
StatusMessageWriter.WriteOkStatusMessage();
if (panelConfig != null)
{
StatusMessageWriter.WriteMessage($"Configurating {panelConfig.PanelName} for auto refocus on touch", StatusMessageType.Info);
panelConfig.PanelHandle = new IntPtr(1);
StatusMessageWriter.WriteOkStatusMessage();
}
}
}

View file

@ -1,3 +1,9 @@
## Version 4.0.1.2
* Hotfix - Fixed issue where using touch panel feature may freeze computer and the application.
Known Issue:
If the profile has the option of "entire monitor display to have game refocus fucntion when touch" enabled, the configuration of display panels must be listed after the configuration of pop out panels in profile configuration.
## Version 4.0.1.1
* Added preference option in pop out settings to disable pop out progress messages from appearing.

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.SimConnectAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>

View file

@ -1,6 +1,12 @@
# Version History
<hr/>
## Version 4.0.1.2
* Hotfix - Fixed issue where using touch panel feature may freeze computer and the application.
Known Issue:
If the profile has the option of "entire monitor display to have game refocus fucntion when touch" enabled, the configuration of display panels must be listed after the configuration of pop out panels in profile configuration.
## Version 4.0.1
* Added preference option in pop out settings to disable pop out progress messages from appearing.

View file

@ -107,7 +107,7 @@ namespace MSFSPopoutPanelManager.WindowsAgent
if (_isDragged)
return 1;
Task.Run(() =>
{
PInvoke.mouse_event(MOUSEEVENTF_LEFTUP, info.pt.X, info.pt.Y, 0, 0); // focus window
@ -119,9 +119,31 @@ namespace MSFSPopoutPanelManager.WindowsAgent
}
return 1;
case WM_LBUTTONUP:
Task.Run(() =>
if (panelConfig.PanelType == PanelType.RefocusDisplay)
{
if (panelConfig.PanelType != PanelType.RefocusDisplay)
Task.Run(() =>
{
_isTouchDown = false;
_isDragged = false;
// Refocus game window
if (ApplicationSetting.RefocusSetting.RefocusGameWindow.IsEnabled && panelConfig.AutoGameRefocus)
{
var currentRefocusIndex = _refocusedTaskIndex;
Thread.Sleep(Convert.ToInt32(ApplicationSetting.RefocusSetting.RefocusGameWindow.Delay * 1000));
if (currentRefocusIndex == _refocusedTaskIndex)
{
var rect = WindowActionManager.GetWindowRectangle(WindowProcessManager.SimulatorProcess.Handle);
InputEmulationManager.LeftClick(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);
}
}
});
}
else
{
Task.Run(() =>
{
while (_isTouchDown) { }
@ -148,25 +170,22 @@ namespace MSFSPopoutPanelManager.WindowsAgent
}
_isTouchDown = false;
}
// Refocus game window
if (ApplicationSetting.RefocusSetting.RefocusGameWindow.IsEnabled && panelConfig.AutoGameRefocus)
{
var currentRefocusIndex = _refocusedTaskIndex;
Thread.Sleep(Convert.ToInt32(ApplicationSetting.RefocusSetting.RefocusGameWindow.Delay * 1000));
if (currentRefocusIndex == _refocusedTaskIndex)
// Refocus game window
if (ApplicationSetting.RefocusSetting.RefocusGameWindow.IsEnabled && panelConfig.AutoGameRefocus)
{
var rect = WindowActionManager.GetWindowRectangle(WindowProcessManager.SimulatorProcess.Handle);
PInvoke.SetCursorPos(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);
var currentRefocusIndex = _refocusedTaskIndex;
if (panelConfig.PanelType == PanelType.RefocusDisplay)
InputEmulationManager.LeftClick(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);
Thread.Sleep(Convert.ToInt32(ApplicationSetting.RefocusSetting.RefocusGameWindow.Delay * 1000));
if (currentRefocusIndex == _refocusedTaskIndex)
{
var rect = WindowActionManager.GetWindowRectangle(WindowProcessManager.SimulatorProcess.Handle);
PInvoke.SetCursorPos(rect.X + rect.Width / 2, rect.Y + rect.Height / 2);
}
}
}
});
});
}
return 1;
case WM_MOUSEMOVE:
if (_isTouchDown)

View file

@ -11,9 +11,9 @@
<PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.WindowsAgent</RootNamespace>
<Platforms>x64</Platforms>
<Version>4.0.1.1</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion>
<Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations>