mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added Strix/Scar built in aura modes
This commit is contained in:
31
app/Aura.cs
31
app/Aura.cs
@@ -1,5 +1,8 @@
|
|||||||
using HidLibrary;
|
using HidLibrary;
|
||||||
|
using System.Data;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using static System.Windows.Forms.VisualStyles.VisualStyleElement.TextBox;
|
||||||
|
using System.Security.Policy;
|
||||||
|
|
||||||
namespace GHelper
|
namespace GHelper
|
||||||
{
|
{
|
||||||
@@ -81,6 +84,23 @@ namespace GHelper
|
|||||||
{ 10, "Strobe" },
|
{ 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()
|
public static Dictionary<int, string> GetModes()
|
||||||
{
|
{
|
||||||
if (Program.config.ContainsModel("TUF"))
|
if (Program.config.ContainsModel("TUF"))
|
||||||
@@ -94,6 +114,11 @@ namespace GHelper
|
|||||||
_modes.Remove(3);
|
_modes.Remove(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Program.config.ContainsModel("Strix") || Program.config.ContainsModel("Scar"))
|
||||||
|
{
|
||||||
|
return _modesStrix;
|
||||||
|
}
|
||||||
|
|
||||||
return _modes;
|
return _modes;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -198,7 +223,8 @@ namespace GHelper
|
|||||||
device.CloseDevice();
|
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();
|
device.CloseDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed);
|
if (Program.config.ContainsModel("TUF"))
|
||||||
|
Program.wmi.TUFKeyboardRGB(Mode, Color1, _speed);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ public static class ControlHelper
|
|||||||
foreMain = SystemColors.ControlText;
|
foreMain = SystemColors.ControlText;
|
||||||
foreAccent = Color.LightGray;
|
foreAccent = Color.LightGray;
|
||||||
borderMain = Color.LightGray;
|
borderMain = Color.LightGray;
|
||||||
buttonMain = Color.FromArgb(255, 250, 250, 250);
|
buttonMain = Color.FromArgb(255, 230, 230, 230);
|
||||||
}
|
}
|
||||||
|
|
||||||
container.BackColor = formBack;
|
container.BackColor = formBack;
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace GHelper
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logger.WriteLine("App launched");
|
||||||
|
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
using Starlight.AnimeMatrix;
|
using Starlight.AnimeMatrix;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.Globalization;
|
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|||||||
19
bloat.bat
Normal file
19
bloat.bat
Normal 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"
|
||||||
Reference in New Issue
Block a user