Fixing in-home streaming, release 2.3.0

Fixed in-home streaming bug.
Code cleanup.
UWPTest 2.3.0
Brian Lima 7 years ago
parent d8c8a2bc03
commit 8770f5d958

@ -28,15 +28,16 @@ namespace UWPHook
try
{
mgr.ActivateApplication(aumid, null, ActivateOptions.None, out processId);
//Bring the launched app to the foreground, this fixes in-home streaming
id = (int)processId;
BringProcess();
}
catch (Exception e)
{
throw new Exception("Error while trying to launch your app." + Environment.NewLine + e.Message);
}
id = (int)processId;
}
/// <summary>
@ -122,7 +123,7 @@ namespace UWPHook
// if iconic, we need to restore the window
if (IsIconic(hWnd))
{
ShowWindowAsync(hWnd, 9);
ShowWindowAsync(hWnd, 3);
}
// bring it to the foreground

@ -38,17 +38,24 @@ namespace UWPHook
private void Launcher()
{
//So, for some reason, Steam is now stopping in-home streaming if the launched app is minimized, so not hiding UWPHook's window is doing the trick for now
if (Properties.Settings.Default.StreamMode)
{
this.Show();
this.WindowStyle = WindowStyle.None;
this.WindowState = WindowState.Maximized;
Thread.Sleep(1000);
this.Title = "UWPHook: Streaming a game";
this.label.Content = "UWPHook is streaming your game, fasten your seatbelts.";
Thread.Sleep(10000);
}
else
{
this.Title = "UWPHook: Playing a game";
this.Hide();
}
this.Title = "UWPHook: Playing a game";
//Hide the window so the app is launched seamless making UWPHook run in the background without bothering the user
this.Hide();
string currentLanguage = CultureInfo.CurrentCulture.ToString();
try

@ -51,5 +51,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.2.1.0")]
[assembly: AssemblyFileVersion("2.2.1.0")]
[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]

Loading…
Cancel
Save