1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-21 21:30:12 +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> <PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.DomainModel</RootNamespace> <RootNamespace>MSFSPopoutPanelManager.DomainModel</RootNamespace>
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<Version>4.0.1.1</Version> <Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion> <AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion> <FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType> <DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations> <Configurations>Debug;Release;Local</Configurations>

View file

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

View file

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

View file

@ -319,12 +319,14 @@ namespace MSFSPopoutPanelManager.Orchestration
if (!ActiveProfile.ProfileSetting.RefocusOnDisplay.IsEnabled) if (!ActiveProfile.ProfileSetting.RefocusOnDisplay.IsEnabled)
return; return;
var panelConfig = ActiveProfile.PanelConfigs.FirstOrDefault(p => p.PanelType == PanelType.RefocusDisplay); foreach (var panelConfig in ActiveProfile.PanelConfigs.Where(p => p.PanelType == PanelType.RefocusDisplay))
if (panelConfig != null)
{ {
StatusMessageWriter.WriteMessage($"Configurating {panelConfig.PanelName} for auto refocus on touch", StatusMessageType.Info); if (panelConfig != null)
panelConfig.PanelHandle = new IntPtr(1); {
StatusMessageWriter.WriteOkStatusMessage(); 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 ## Version 4.0.1.1
* Added preference option in pop out settings to disable pop out progress messages from appearing. * 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> <PackageProjectUrl>https://github.com/hawkeye-stan/msfs-popout-panel-manager</PackageProjectUrl>
<RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace> <RootNamespace>MSFSPopoutPanelManager.Shared</RootNamespace>
<Platforms>x64</Platforms> <Platforms>x64</Platforms>
<Version>4.0.1.1</Version> <Version>4.0.1.2</Version>
<AssemblyVersion>4.0.1.1</AssemblyVersion> <AssemblyVersion>4.0.1.2</AssemblyVersion>
<FileVersion>4.0.1.1</FileVersion> <FileVersion>4.0.1.2</FileVersion>
<RuntimeIdentifier>win-x64</RuntimeIdentifier> <RuntimeIdentifier>win-x64</RuntimeIdentifier>
<DebugType>Embedded</DebugType> <DebugType>Embedded</DebugType>
<Configurations>Debug;Release;Local</Configurations> <Configurations>Debug;Release;Local</Configurations>

View file

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

View file

@ -1,6 +1,12 @@
# Version History # Version History
<hr/> <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 ## Version 4.0.1
* Added preference option in pop out settings to disable pop out progress messages from appearing. * Added preference option in pop out settings to disable pop out progress messages from appearing.

View file

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

View file

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