diff --git a/app/Aura.cs b/app/Aura.cs index 69e46c7b..98834ed4 100644 --- a/app/Aura.cs +++ b/app/Aura.cs @@ -1,5 +1,8 @@ using HidLibrary; +using System.Data; using System.Diagnostics; +using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox; +using System.Security.Policy; namespace GHelper { @@ -81,6 +84,23 @@ namespace GHelper { 10, "Strobe" }, }; + static Dictionary _modesStrix = new Dictionary + { + { 0, "Static" }, + { 1, "Breathe" }, + { 2, "Color Cycle" }, + { 3, "Rainbow" }, + { 4, "Star" }, + { 5, "Rain" }, + { 6, "Highlight" }, + { 7, "Laser" }, + { 8, "Ripple" }, + { 10, "Strobe" }, + { 11, "Comet" }, + { 12, "Flash" }, + }; + + public static Dictionary GetModes() { if (Program.config.ContainsModel("TUF")) @@ -94,6 +114,11 @@ namespace GHelper _modes.Remove(3); } + if (Program.config.ContainsModel("Strix") || Program.config.ContainsModel("Scar")) + { + return _modesStrix; + } + return _modes; } @@ -198,7 +223,8 @@ namespace GHelper device.CloseDevice(); } - Program.wmi.TUFKeyboardPower(awake, boot, sleep, shutdown); + if (Program.config.ContainsModel("TUF")) + Program.wmi.TUFKeyboardPower(awake, boot, sleep, shutdown); } @@ -234,7 +260,8 @@ namespace GHelper device.CloseDevice(); } - Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed); + if (Program.config.ContainsModel("TUF")) + Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed); } } diff --git a/app/ControlHelper.cs b/app/ControlHelper.cs index 79e1f028..3d6ee568 100644 --- a/app/ControlHelper.cs +++ b/app/ControlHelper.cs @@ -40,7 +40,7 @@ public static class ControlHelper foreMain = SystemColors.ControlText; foreAccent = Color.LightGray; borderMain = Color.LightGray; - buttonMain = Color.FromArgb(255, 250, 250, 250); + buttonMain = Color.FromArgb(255, 230, 230, 230); } container.BackColor = formBack; diff --git a/app/Program.cs b/app/Program.cs index 4007dd98..4e705fea 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -56,6 +56,7 @@ namespace GHelper } + Logger.WriteLine("App launched"); Application.EnableVisualStyles(); diff --git a/app/Settings.cs b/app/Settings.cs index 75419546..0914b367 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -2,7 +2,6 @@ using Starlight.AnimeMatrix; using System.Diagnostics; using System.Drawing.Imaging; -using System.Globalization; using System.Reflection; using System.Text.Json; using System.Timers; diff --git a/bloat.bat b/bloat.bat new file mode 100644 index 00000000..0d20c7b1 --- /dev/null +++ b/bloat.bat @@ -0,0 +1,19 @@ +sc config AsusAppService start= auto +sc config ASUSLinkNear start= auto +sc config ASUSLinkRemote start= auto +sc config ASUSSoftwareManager start= auto +sc config ASUSSwitch start= auto +sc config ASUSSystemAnalysis start= auto +sc config ASUSSystemDiagnosis start= auto +sc config ArmouryCrateControlInterface start= auto + +sc START AsusAppService +sc START ASUSLinkNear +sc START ASUSLinkRemote +sc START ASUSSoftwareManager +sc START ASUSSwitch +sc START ASUSSystemAnalysis +sc START ASUSSystemDiagnosis +sc START ArmouryCrateControlInterface + +set /p asd="Hit enter to finish"