Added Strix/Scar built in aura modes

This commit is contained in:
seerge
2023-03-31 13:50:10 +02:00
parent b95768d547
commit 253e1eb095
5 changed files with 50 additions and 4 deletions

View File

@@ -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<int, string> _modesStrix = new Dictionary<int, string>
{
{ 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<int, string> 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,6 +223,7 @@ namespace GHelper
device.CloseDevice();
}
if (Program.config.ContainsModel("TUF"))
Program.wmi.TUFKeyboardPower(awake, boot, sleep, shutdown);
}
@@ -234,6 +260,7 @@ namespace GHelper
device.CloseDevice();
}
if (Program.config.ContainsModel("TUF"))
Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed);
}

View File

@@ -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;

View File

@@ -56,6 +56,7 @@ namespace GHelper
}
Logger.WriteLine("App launched");
Application.EnableVisualStyles();

View File

@@ -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;

19
bloat.bat Normal file
View File

@@ -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"