From 504bfef43c2be6ad4521200e0f7713d2aad6fa92 Mon Sep 17 00:00:00 2001 From: KrisIsBackAU Date: Sat, 1 Apr 2023 17:33:38 +1030 Subject: [PATCH] Auto Program Launch upon Startup and Closing --- Oculus VR Dash Manager/App.config | 5 +- Oculus VR Dash Manager/Dashes/OVR_Dash.cs | 1 - .../frm_Auto_Program_Launch_Settings.xaml | 40 ++- .../frm_Auto_Program_Launch_Settings.xaml.cs | 48 ++-- .../Forms/Settings/frm_Settings_v2.xaml | 21 +- .../Forms/Settings/frm_Settings_v2.xaml.cs | 18 +- .../Forms/Settings/uc_Setting.xaml | 10 +- .../Forms/frm_Diagnostics.xaml | 2 +- .../Forms/frm_Settings.xaml | 2 +- .../Forms/frm_SteamVR_Settings.xaml | 3 +- .../Forms/frm_SteamVR_Settings.xaml.cs | 2 +- .../Forms/frm_TestWindow.xaml | 8 +- .../Forms/frm_TestWindow.xaml.cs | 1 - .../Functions/Device Watcher.cs | 5 +- .../Functions/File Browser.cs | 132 ++++++++++ .../Functions/JSON Functions.cs | 183 ++++++++++++++ .../Functions/Native Functions.cs | 3 +- .../Functions/Process Functions.cs | 24 ++ .../Functions/String Functions.cs | 41 ++++ Oculus VR Dash Manager/MainWindow.xaml | 10 +- Oculus VR Dash Manager/MainWindow.xaml.cs | 15 +- .../Oculus VR Dash Manager.csproj | 6 +- .../Properties/Settings.Designer.cs | 12 + .../Properties/Settings.settings | 3 + Oculus VR Dash Manager/Software/ADB.cs | 6 +- .../Software/Auto Launch Programs.cs | 229 ++++++++++++++++++ .../Software/Oculus Link.cs | 11 +- Oculus VR Dash Manager/Software/Oculus.cs | 12 + Oculus VR Dash Manager/Software/Steam.cs | 10 +- .../Software/Windows Audio v2.cs | 18 +- Oculus VR Dash Manager/USB Devices.cs | 2 +- 31 files changed, 783 insertions(+), 100 deletions(-) create mode 100644 Oculus VR Dash Manager/Functions/File Browser.cs create mode 100644 Oculus VR Dash Manager/Functions/JSON Functions.cs create mode 100644 Oculus VR Dash Manager/Functions/String Functions.cs create mode 100644 Oculus VR Dash Manager/Software/Auto Launch Programs.cs diff --git a/Oculus VR Dash Manager/App.config b/Oculus VR Dash Manager/App.config index 7ecd6f0..0b6b89a 100644 --- a/Oculus VR Dash Manager/App.config +++ b/Oculus VR Dash Manager/App.config @@ -1,7 +1,7 @@  - +
@@ -58,6 +58,9 @@ False + + [] + \ No newline at end of file diff --git a/Oculus VR Dash Manager/Dashes/OVR_Dash.cs b/Oculus VR Dash Manager/Dashes/OVR_Dash.cs index 7ae1ce6..b48ec10 100644 --- a/Oculus VR Dash Manager/Dashes/OVR_Dash.cs +++ b/Oculus VR Dash Manager/Dashes/OVR_Dash.cs @@ -167,7 +167,6 @@ public bool Activate_Dash() if (Installed) { - try { if (!String.IsNullOrEmpty(ProcessToStop)) diff --git a/Oculus VR Dash Manager/Forms/Auto Program Launch/frm_Auto_Program_Launch_Settings.xaml b/Oculus VR Dash Manager/Forms/Auto Program Launch/frm_Auto_Program_Launch_Settings.xaml index 58e617f..6509d44 100644 --- a/Oculus VR Dash Manager/Forms/Auto Program Launch/frm_Auto_Program_Launch_Settings.xaml +++ b/Oculus VR Dash Manager/Forms/Auto Program Launch/frm_Auto_Program_Launch_Settings.xaml @@ -4,8 +4,8 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:OVR_Dash_Manager.Forms.Auto_Program_Launch" - Title="Auto Program Launch Settings" Height="450" Width="800" Loaded="Window_Loaded" Closing="Window_Closing"> - + Title="Auto Program Launch Settings" Height="500" Width="1000" Loaded="Window_Loaded" Closing="Window_Closing" WindowStartupLocation="CenterScreen"> + @@ -15,31 +15,45 @@ - + - + + + + + + + + + - - - + - + + + + + + + + + + -