diff --git a/ToggleChromaVisualiser.sln b/ToggleChromaVisualiser.sln
index e3cd9ba..e4017aa 100644
--- a/ToggleChromaVisualiser.sln
+++ b/ToggleChromaVisualiser.sln
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29324.140
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToggleChromaVisualiser", "ToggleChromaVisualiser\ToggleChromaVisualiser.csproj", "{DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToggleChromaVisualiser", "ToggleChromaVisualiser\ToggleChromaVisualiser.csproj", "{536DFDCF-AEA7-4990-B861-941F6A15445F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,10 +11,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {536DFDCF-AEA7-4990-B861-941F6A15445F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {536DFDCF-AEA7-4990-B861-941F6A15445F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {536DFDCF-AEA7-4990-B861-941F6A15445F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {536DFDCF-AEA7-4990-B861-941F6A15445F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/ToggleChromaVisualiser/App.config b/ToggleChromaVisualiser/App.config
index 56efbc7..193aecc 100644
--- a/ToggleChromaVisualiser/App.config
+++ b/ToggleChromaVisualiser/App.config
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/ToggleChromaVisualiser/Form1.Designer.cs b/ToggleChromaVisualiser/Form1.Designer.cs
deleted file mode 100644
index 78569d2..0000000
--- a/ToggleChromaVisualiser/Form1.Designer.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-namespace ToggleChromaVisualiser
-{
- partial class Form1
- {
- ///
- /// Erforderliche Designervariable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Verwendete Ressourcen bereinigen.
- ///
- /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Vom Windows Form-Designer generierter Code
-
- ///
- /// Erforderliche Methode für die Designerunterstützung.
- /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // Form1
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(0, 0);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
- this.Name = "Form1";
- this.ShowInTaskbar = false;
- this.Text = "Toggle Chroma Visualiser";
- this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
- this.Load += new System.EventHandler(this.Form1_Load);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
-
diff --git a/ToggleChromaVisualiser/Form1.cs b/ToggleChromaVisualiser/Form1.cs
deleted file mode 100644
index 2d251da..0000000
--- a/ToggleChromaVisualiser/Form1.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Diagnostics;
-using System.Drawing;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-
-namespace ToggleChromaVisualiser
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
-
- private void Form1_Load(object sender, EventArgs e)
- {
- bool isrunning = false;
- string pathtorun = @"C:\Program Files (x86)\Razer\Synapse3\AudioVisualizer\ChromaVisualizer.exe";
-
- Process[] allprocesses = Process.GetProcesses();
- for (int i = 0; i < allprocesses.Length; i++)
- {
- if (allprocesses[i].ProcessName.Contains("ChromaVisualizer"))
- {
- isrunning = true;
- allprocesses[i].Kill();
- break;
- }
- }
- if (isrunning == false)
- {
- Process startit = new Process();
- startit.StartInfo.FileName = pathtorun;
- startit.Start();
- }
- this.Close();
- }
- }
-}
diff --git a/ToggleChromaVisualiser/Form1.resx b/ToggleChromaVisualiser/Form1.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/ToggleChromaVisualiser/Form1.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/ToggleChromaVisualiser/Program.cs b/ToggleChromaVisualiser/Program.cs
index 4ae3229..a4f1276 100644
--- a/ToggleChromaVisualiser/Program.cs
+++ b/ToggleChromaVisualiser/Program.cs
@@ -1,22 +1,37 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Windows.Forms;
+using System.IO;
+using System.Diagnostics;
+using System.Windows;
namespace ToggleChromaVisualiser
{
- static class Program
+ class Program
{
- ///
- /// Der Haupteinstiegspunkt für die Anwendung.
- ///
- [STAThread]
- static void Main()
+ static string ChromaVisualizerExec = @"C:\Program Files (x86)\Razer\Synapse3\AudioVisualizer\ChromaVisualizer.exe";
+ static void Main(string[] args)
{
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new Form1());
+ if (!File.Exists(ChromaVisualizerExec))
+ MessageBox.Show("The Razer Chroma Visualizer executable cannot be found.");
+ else
+ {
+ bool isrunning = false;
+
+ Process[] allprocesses = Process.GetProcesses();
+ for (int i = 0; i < allprocesses.Length; i++)
+ {
+ if (allprocesses[i].ProcessName.Contains("ChromaVisualizer"))
+ {
+ isrunning = true;
+ allprocesses[i].Kill();
+ break;
+ }
+ }
+ if (isrunning == false)
+ {
+ Process startit = new Process();
+ startit.StartInfo.FileName = ChromaVisualizerExec;
+ startit.Start();
+ }
+ }
}
}
}
diff --git a/ToggleChromaVisualiser/Properties/AssemblyInfo.cs b/ToggleChromaVisualiser/Properties/AssemblyInfo.cs
index 1efec98..addccb1 100644
--- a/ToggleChromaVisualiser/Properties/AssemblyInfo.cs
+++ b/ToggleChromaVisualiser/Properties/AssemblyInfo.cs
@@ -1,4 +1,4 @@
-using System.Reflection;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ToggleChromaVisualiser")]
-[assembly: AssemblyCopyright("Copyright © 2019")]
+[assembly: AssemblyCopyright("Copyright © 2021")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
-[assembly: Guid("de858a4a-5b5f-4bdd-aae9-960ee5bf370e")]
+[assembly: Guid("536dfdcf-aea7-4990-b861-941f6a15445f")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
@@ -32,5 +32,7 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("21.10.8.0")]
+[assembly: AssemblyFileVersion("21.10.8.0")]
+
+[assembly: AssemblyInformationalVersion("21.10.0")]
\ No newline at end of file
diff --git a/ToggleChromaVisualiser/Properties/Resources.Designer.cs b/ToggleChromaVisualiser/Properties/Resources.Designer.cs
deleted file mode 100644
index d8fbc28..0000000
--- a/ToggleChromaVisualiser/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,71 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// Dieser Code wurde von einem Tool generiert.
-// Laufzeitversion: 4.0.30319.42000
-//
-// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
-// der Code neu generiert wird.
-//
-//------------------------------------------------------------------------------
-
-namespace ToggleChromaVisualiser.Properties
-{
-
-
- ///
- /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
- ///
- // Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
- // über ein Tool wie ResGen oder Visual Studio automatisch generiert.
- // Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
- // mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources
- {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources()
- {
- }
-
- ///
- /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager
- {
- get
- {
- if ((resourceMan == null))
- {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ToggleChromaVisualiser.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
- /// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture
- {
- get
- {
- return resourceCulture;
- }
- set
- {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/ToggleChromaVisualiser/Properties/Resources.resx b/ToggleChromaVisualiser/Properties/Resources.resx
deleted file mode 100644
index af7dbeb..0000000
--- a/ToggleChromaVisualiser/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/ToggleChromaVisualiser/Properties/Settings.Designer.cs b/ToggleChromaVisualiser/Properties/Settings.Designer.cs
deleted file mode 100644
index c71233d..0000000
--- a/ToggleChromaVisualiser/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace ToggleChromaVisualiser.Properties
-{
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
- {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default
- {
- get
- {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/ToggleChromaVisualiser/Properties/Settings.settings b/ToggleChromaVisualiser/Properties/Settings.settings
deleted file mode 100644
index 3964565..0000000
--- a/ToggleChromaVisualiser/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/ToggleChromaVisualiser/ToggleChromaVisualiser.csproj b/ToggleChromaVisualiser/ToggleChromaVisualiser.csproj
index 3f0b033..5f7bb20 100644
--- a/ToggleChromaVisualiser/ToggleChromaVisualiser.csproj
+++ b/ToggleChromaVisualiser/ToggleChromaVisualiser.csproj
@@ -4,11 +4,11 @@
Debug
AnyCPU
- {DE858A4A-5B5F-4BDD-AAE9-960EE5BF370E}
+ {536DFDCF-AEA7-4990-B861-941F6A15445F}
WinExe
ToggleChromaVisualiser
ToggleChromaVisualiser
- v4.7.2
+ v4.8
512
true
true
@@ -32,49 +32,23 @@
prompt
4
+
+
+
+
-
-
-
-
- Form
-
-
- Form1.cs
-
-
- Form1.cs
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
- Designer
-
-
- True
- Resources.resx
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
- True
- Settings.settings
- True
-