mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
65 Commits
Peripheral
...
v0.175
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
211d8d3e61 | ||
|
|
f3723e9d6f | ||
|
|
d47990c056 | ||
|
|
c2a68d3022 | ||
|
|
26e26b9701 | ||
|
|
a315f27a4f | ||
|
|
26642a0020 | ||
|
|
6f1236b16c | ||
|
|
f07c481b3b | ||
|
|
c30fcd6ba7 | ||
|
|
53bb4b8760 | ||
|
|
34ec26dba0 | ||
|
|
b6c7da53c1 | ||
|
|
344a0269ef | ||
|
|
5157357c8b | ||
|
|
ad622f3924 | ||
|
|
2799936909 | ||
|
|
134ca5d680 | ||
|
|
d076765d5c | ||
|
|
9514caef94 | ||
|
|
64b5547126 | ||
|
|
d133abba1c | ||
|
|
bf4eae6081 | ||
|
|
8ff9b07a60 | ||
|
|
1011469628 | ||
|
|
22434ff86a | ||
|
|
7f0c3143f4 | ||
|
|
4216c2d73d | ||
|
|
34161eee7c | ||
|
|
6129f79b68 | ||
|
|
01fc5a3265 | ||
|
|
fd5c7cd8e4 | ||
|
|
ced4eac341 | ||
|
|
51c7738f15 | ||
|
|
b62fe46759 | ||
|
|
51c099163e | ||
|
|
61c114625a | ||
|
|
f794110c2a | ||
|
|
740a10fed8 | ||
|
|
696f6f046f | ||
|
|
79c0db6c4c | ||
|
|
008a00e121 | ||
|
|
52952e74db | ||
|
|
87ee3e4681 | ||
|
|
05434f5a00 | ||
|
|
7e4de0d064 | ||
|
|
51b7e8e9bd | ||
|
|
bacea8ede1 | ||
|
|
e69b6ea5b0 | ||
|
|
cf142f847d | ||
|
|
fabc7e194b | ||
|
|
98d255d8fd | ||
|
|
1d1cef12c3 | ||
|
|
9c3d19c7a4 | ||
|
|
06b4df29cb | ||
|
|
2628695bbc | ||
|
|
8c5fc0f643 | ||
|
|
cf3c61e467 | ||
|
|
9a3b689d29 | ||
|
|
ae94f66699 | ||
|
|
71b5e24f63 | ||
|
|
3139252740 | ||
|
|
50a020dd58 | ||
|
|
c804d6a6b1 | ||
|
|
f2b3f2fe64 |
13
.github/FUNDING.yml
vendored
13
.github/FUNDING.yml
vendored
@@ -1,13 +0,0 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
||||
custom: https://www.paypal.com/donate/?hosted_button_id=4HMSHS4EBQWTA
|
||||
@@ -14,6 +14,7 @@ namespace GHelper.AnimeMatrix
|
||||
SettingsForm settings;
|
||||
|
||||
System.Timers.Timer matrixTimer = default!;
|
||||
System.Timers.Timer slashTimer = default!;
|
||||
|
||||
public AnimeMatrixDevice? deviceMatrix;
|
||||
public SlashDevice? deviceSlash;
|
||||
@@ -45,6 +46,7 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
matrixTimer = new System.Timers.Timer(100);
|
||||
matrixTimer.Elapsed += MatrixTimer_Elapsed;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -86,8 +88,9 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
if (brightness == 0 || (auto && SystemInformation.PowerStatus.PowerLineStatus != PowerLineStatus.Online) || (lid && lidClose))
|
||||
{
|
||||
deviceSlash.Init();
|
||||
deviceSlash.SetOptions(false, 0, 0);
|
||||
deviceSlash.SetEnabled(false);
|
||||
//deviceSlash.Init();
|
||||
//deviceSlash.SetOptions(false, 0, 0);
|
||||
deviceSlash.SetSleepActive(false);
|
||||
}
|
||||
else
|
||||
@@ -98,8 +101,9 @@ namespace GHelper.AnimeMatrix
|
||||
_wakeUp = false;
|
||||
}
|
||||
|
||||
deviceSlash.SetEnabled(true);
|
||||
deviceSlash.Init();
|
||||
|
||||
|
||||
switch ((SlashMode)running)
|
||||
{
|
||||
case SlashMode.Static:
|
||||
@@ -112,12 +116,18 @@ namespace GHelper.AnimeMatrix
|
||||
deviceSlash.SetStatic(brightness);
|
||||
}
|
||||
break;
|
||||
case SlashMode.BatteryLevel:
|
||||
// call tick to immediately update the pattern
|
||||
SlashTimer_start();
|
||||
SlashTimer_tick();
|
||||
break;
|
||||
default:
|
||||
deviceSlash.SetMode((SlashMode)running);
|
||||
deviceSlash.SetOptions(true, brightness, inteval);
|
||||
deviceSlash.Save();
|
||||
break;
|
||||
}
|
||||
// kill the timer if we are not displaying battery pattern
|
||||
|
||||
deviceSlash.SetSleepActive(true);
|
||||
}
|
||||
@@ -235,7 +245,6 @@ namespace GHelper.AnimeMatrix
|
||||
matrixTimer.Stop();
|
||||
}
|
||||
|
||||
|
||||
private void MatrixTimer_Elapsed(object? sender, ElapsedEventArgs e)
|
||||
{
|
||||
|
||||
@@ -253,13 +262,58 @@ namespace GHelper.AnimeMatrix
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void SetMatrixClock()
|
||||
{
|
||||
deviceMatrix.SetBuiltInAnimation(false);
|
||||
StartMatrixTimer(1000);
|
||||
Logger.WriteLine("Matrix Clock");
|
||||
}
|
||||
|
||||
|
||||
private void SlashTimer_start(int interval = 60000)
|
||||
{
|
||||
// 100% to 0% in 1hr = 1% every 36 seconds
|
||||
// 1 bracket every 14.2857 * 36s = 514s ~ 8m 30s
|
||||
// only ~5 actually distinguishable levels, so refresh every <= 514/5 ~ 100s
|
||||
// default is 60s
|
||||
|
||||
// create the timer if first call
|
||||
// this way, the timer only spawns if user tries to use battery pattern
|
||||
if(slashTimer == default(System.Timers.Timer))
|
||||
{
|
||||
slashTimer = new System.Timers.Timer(interval);
|
||||
slashTimer.Elapsed += SlashTimer_elapsed;
|
||||
slashTimer.AutoReset = true;
|
||||
}
|
||||
// only write if interval changed
|
||||
if(slashTimer.Interval != interval)
|
||||
{
|
||||
slashTimer.Interval = interval;
|
||||
}
|
||||
|
||||
slashTimer.Start();
|
||||
}
|
||||
|
||||
private void SlashTimer_elapsed(object? sender, ElapsedEventArgs e)
|
||||
{
|
||||
SlashTimer_tick();
|
||||
}
|
||||
|
||||
private void SlashTimer_tick()
|
||||
{
|
||||
if (deviceSlash is null) return;
|
||||
|
||||
//kill timer if called but not in battery pattern mode
|
||||
if((SlashMode)AppConfig.Get("matrix_running", 0) != SlashMode.BatteryLevel)
|
||||
{
|
||||
slashTimer.Stop();
|
||||
slashTimer.Dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
deviceSlash.SetBatteryPattern(AppConfig.Get("matrix_brightness", 0));
|
||||
}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
@@ -395,7 +449,6 @@ namespace GHelper.AnimeMatrix
|
||||
deviceMatrix.Present();
|
||||
}
|
||||
|
||||
|
||||
public void OpenMatrixPicture()
|
||||
{
|
||||
string fileName = null;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using GHelper.AnimeMatrix.Communication;
|
||||
using System.Management;
|
||||
using System.Text;
|
||||
using System.Timers;
|
||||
|
||||
namespace GHelper.AnimeMatrix
|
||||
{
|
||||
@@ -20,7 +22,8 @@ namespace GHelper.AnimeMatrix
|
||||
GameOver,
|
||||
Start,
|
||||
Buzzer,
|
||||
Static
|
||||
Static,
|
||||
BatteryLevel,
|
||||
}
|
||||
|
||||
internal class SlashPacket : Packet
|
||||
@@ -54,7 +57,9 @@ namespace GHelper.AnimeMatrix
|
||||
{ SlashMode.GameOver, "Game Over"},
|
||||
{ SlashMode.Start, "Start"},
|
||||
{ SlashMode.Buzzer, "Buzzer"},
|
||||
|
||||
{ SlashMode.Static, "Static"},
|
||||
{ SlashMode.BatteryLevel, "Battery Level"}
|
||||
};
|
||||
|
||||
private static Dictionary<SlashMode, byte> modeCodes = new Dictionary<SlashMode, byte>
|
||||
@@ -87,6 +92,8 @@ namespace GHelper.AnimeMatrix
|
||||
public void WakeUp()
|
||||
{
|
||||
Set(Packet<SlashPacket>(Encoding.ASCII.GetBytes("ASUS Tech.Inc.")), "SlashWakeUp");
|
||||
Set(Packet<SlashPacket>(0xC2), "SlashWakeUp");
|
||||
Set(Packet<SlashPacket>(0xD1, 0x01, 0x00, 0x01), "SlashWakeUp");
|
||||
}
|
||||
|
||||
public void Init()
|
||||
@@ -95,6 +102,11 @@ namespace GHelper.AnimeMatrix
|
||||
Set(Packet<SlashPacket>(0xD2, 0x02, 0x01, 0x08, 0xAB), "SlashInit");
|
||||
}
|
||||
|
||||
public void SetEnabled(bool status = true)
|
||||
{
|
||||
Set(Packet<SlashPacket>(0xD8, 0x02, 0x00, 0x01, status ? (byte)0x00 : (byte)0x80), $"SlashEnable {status}");
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
Set(Packet<SlashPacket>(0xD4, 0x00, 0x00, 0x01, 0xAB), "SlashSave");
|
||||
@@ -120,7 +132,50 @@ namespace GHelper.AnimeMatrix
|
||||
public void SetStatic(int brightness = 0)
|
||||
{
|
||||
SetCustom(Enumerable.Repeat((byte)(brightness * 85.333), 7).ToArray());
|
||||
}
|
||||
|
||||
public static double GetBatteryChargePercentage()
|
||||
{
|
||||
double batteryCharge = 0;
|
||||
try
|
||||
{
|
||||
ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * FROM Win32_Battery");
|
||||
foreach (ManagementObject battery in searcher.Get())
|
||||
{
|
||||
batteryCharge = Convert.ToDouble(battery["EstimatedChargeRemaining"]);
|
||||
break; // Assuming only one battery
|
||||
}
|
||||
}
|
||||
catch (ManagementException e)
|
||||
{
|
||||
Console.WriteLine("An error occurred while querying for WMI data: " + e.Message);
|
||||
}
|
||||
return batteryCharge;
|
||||
}
|
||||
|
||||
private byte[] GetBatteryPattern(int brightness, double percentage)
|
||||
{
|
||||
// because 7 segments, within each led segment represents a percentage bracket of (100/7 = 14.2857%)
|
||||
// set brightness to reflect battery's percentage within that range
|
||||
|
||||
int bracket = (int)Math.Floor(percentage / 14.2857);
|
||||
if(bracket >= 7) return Enumerable.Repeat((byte)(brightness * 85.333), 7).ToArray();
|
||||
|
||||
byte[] batteryPattern = Enumerable.Repeat((byte)(0x00), 7).ToArray();
|
||||
for (int i = 6; i > 6-bracket; i--)
|
||||
{
|
||||
batteryPattern[i] = (byte)(brightness * 85.333);
|
||||
}
|
||||
|
||||
//set the "selected" bracket to the percentage of that bracket filled from 0 to 255 as a hex
|
||||
batteryPattern[6-bracket] = (byte)(((percentage % 14.2857) * brightness * 85.333) / 14.2857);
|
||||
|
||||
return batteryPattern;
|
||||
}
|
||||
|
||||
public void SetBatteryPattern(int brightness)
|
||||
{
|
||||
SetCustom(GetBatteryPattern(brightness, 100*(GetBatteryChargePercentage()/AppConfig.Get("charge_limit",100))));
|
||||
}
|
||||
|
||||
public void SetCustom(byte[] data)
|
||||
|
||||
@@ -109,7 +109,8 @@ public static class AppConfig
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (Exception ex)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.WriteLine(ex.Message);
|
||||
}
|
||||
@@ -337,7 +338,7 @@ public static class AppConfig
|
||||
|
||||
public static bool IsAlly()
|
||||
{
|
||||
return ContainsModel("RC71");
|
||||
return ContainsModel("RC71") || ContainsModel("RC72");
|
||||
}
|
||||
|
||||
public static bool NoMKeys()
|
||||
@@ -431,7 +432,12 @@ public static class AppConfig
|
||||
|
||||
public static bool IsStrixLimitedRGB()
|
||||
{
|
||||
return (ContainsModel("G614JV_") || ContainsModel("G614JZ") || ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G")) && !Is("per_key_rgb");
|
||||
return ContainsModel("G512LI") || ContainsModel("G513R") || ContainsModel("G713PV") || ContainsModel("G513IE") || ContainsModel("G713RC") || ContainsModel("G513QM") || ContainsModel("G531G");
|
||||
}
|
||||
|
||||
public static bool Is4ZoneRGB()
|
||||
{
|
||||
return (ContainsModel("G614JI_") || ContainsModel("G614JV_") || ContainsModel("G614JZ") || IsStrixLimitedRGB()) && !Is("per_key_rgb");
|
||||
}
|
||||
|
||||
|
||||
@@ -620,6 +626,21 @@ public static class AppConfig
|
||||
return IsAlly() || Is("stop_ac");
|
||||
}
|
||||
|
||||
public static bool IsChargeLimit80()
|
||||
{
|
||||
return ContainsModel("GA403UI");
|
||||
}
|
||||
|
||||
public static bool IsChargeLimit6080()
|
||||
{
|
||||
return ContainsModel("GA403UU") || ContainsModel("GA403UV") || ContainsModel("GU605") || ContainsModel("GA503R") || (IsTUF() && !(ContainsModel("FX507Z") || ContainsModel("FA617")));
|
||||
|
||||
}
|
||||
|
||||
// 2024 Models support Dynamic Lighting
|
||||
public static bool IsDynamicLighting()
|
||||
{
|
||||
return IsSlash() || ContainsModel("JIR") || ContainsModel("JZR") || ContainsModel("JVR") || ContainsModel("JYR") || ContainsModel("FA607P") || ContainsModel("FX607J") || ContainsModel("FA507U");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using GHelper.Helpers;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace GHelper.Battery
|
||||
{
|
||||
@@ -37,6 +36,17 @@ namespace GHelper.Battery
|
||||
if (limit < 0) limit = AppConfig.Get("charge_limit");
|
||||
if (limit < 40 || limit > 100) return;
|
||||
|
||||
if (AppConfig.IsChargeLimit80())
|
||||
{
|
||||
limit = (limit <= 80) ? 80 : 100;
|
||||
}
|
||||
|
||||
if (AppConfig.IsChargeLimit6080())
|
||||
{
|
||||
if (limit > 80) limit = 100;
|
||||
else if (limit < 60) limit = 60;
|
||||
}
|
||||
|
||||
Program.acpi.DeviceSet(AsusACPI.BatteryLimit, limit, "BatteryLimit");
|
||||
|
||||
AppConfig.Set("charge_limit", limit);
|
||||
|
||||
@@ -167,8 +167,12 @@ namespace GHelper.Display
|
||||
};
|
||||
}
|
||||
|
||||
public static void SetGamut(int mode = 50)
|
||||
public static void SetGamut(int mode = -1)
|
||||
{
|
||||
if (mode < 0) mode = (int)GetDefaultGamut();
|
||||
|
||||
AppConfig.Set("gamut", mode);
|
||||
|
||||
if (RunSplendid(SplendidCommand.GamutMode, 0, mode)) return;
|
||||
|
||||
if (_init)
|
||||
@@ -187,6 +191,9 @@ namespace GHelper.Display
|
||||
if (!forceVisual && ScreenCCD.GetHDRStatus(true)) return;
|
||||
if (!forceVisual && ScreenNative.GetRefreshRate(ScreenNative.FindLaptopScreen(true)) < 0) return;
|
||||
|
||||
AppConfig.Set("visual", (int)mode);
|
||||
AppConfig.Set("color_temp", whiteBalance);
|
||||
|
||||
if (whiteBalance != DefaultColorTemp && !init) ProcessHelper.RunAsAdmin();
|
||||
|
||||
int? balance;
|
||||
|
||||
144
app/Fans.Designer.cs
generated
144
app/Fans.Designer.cs
generated
@@ -119,10 +119,6 @@ namespace GHelper
|
||||
picturePowerMode = new PictureBox();
|
||||
labelPowerModeTitle = new Label();
|
||||
panelGPU = new Panel();
|
||||
panelGPUPower = new Panel();
|
||||
labelGPUPower = new Label();
|
||||
labelGPUPowerTitle = new Label();
|
||||
trackGPUPower = new TrackBar();
|
||||
panelGPUTemp = new Panel();
|
||||
labelGPUTemp = new Label();
|
||||
labelGPUTempTitle = new Label();
|
||||
@@ -131,6 +127,10 @@ namespace GHelper
|
||||
labelGPUBoost = new Label();
|
||||
labelGPUBoostTitle = new Label();
|
||||
trackGPUBoost = new TrackBar();
|
||||
panelGPUPower = new Panel();
|
||||
labelGPUPower = new Label();
|
||||
labelGPUPowerTitle = new Label();
|
||||
trackGPUPower = new TrackBar();
|
||||
panelGPUMemory = new Panel();
|
||||
labelGPUMemory = new Label();
|
||||
labelGPUMemoryTitle = new Label();
|
||||
@@ -194,12 +194,12 @@ namespace GHelper
|
||||
panelPowerModeTItle.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)picturePowerMode).BeginInit();
|
||||
panelGPU.SuspendLayout();
|
||||
panelGPUPower.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUPower).BeginInit();
|
||||
panelGPUTemp.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUTemp).BeginInit();
|
||||
panelGPUBoost.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUBoost).BeginInit();
|
||||
panelGPUPower.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUPower).BeginInit();
|
||||
panelGPUMemory.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUMemory).BeginInit();
|
||||
panelGPUCore.SuspendLayout();
|
||||
@@ -223,11 +223,10 @@ namespace GHelper
|
||||
panelFans.Dock = DockStyle.Fill;
|
||||
panelFans.Location = new Point(530, 0);
|
||||
panelFans.Margin = new Padding(0);
|
||||
//panelFans.MaximumSize = new Size(816, 0);
|
||||
panelFans.MinimumSize = new Size(816, 0);
|
||||
panelFans.Name = "panelFans";
|
||||
panelFans.Padding = new Padding(0, 0, 10, 0);
|
||||
panelFans.Size = new Size(816, 2119);
|
||||
panelFans.Size = new Size(820, 2119);
|
||||
panelFans.TabIndex = 12;
|
||||
//
|
||||
// labelTip
|
||||
@@ -261,7 +260,7 @@ namespace GHelper
|
||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||
tableFanCharts.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
|
||||
tableFanCharts.Size = new Size(806, 1937);
|
||||
tableFanCharts.Size = new Size(810, 1937);
|
||||
tableFanCharts.TabIndex = 36;
|
||||
//
|
||||
// chartGPU
|
||||
@@ -272,7 +271,7 @@ namespace GHelper
|
||||
chartGPU.Location = new Point(12, 493);
|
||||
chartGPU.Margin = new Padding(2, 10, 2, 10);
|
||||
chartGPU.Name = "chartGPU";
|
||||
chartGPU.Size = new Size(782, 463);
|
||||
chartGPU.Size = new Size(786, 463);
|
||||
chartGPU.TabIndex = 17;
|
||||
chartGPU.Text = "chartGPU";
|
||||
title1.Name = "Title1";
|
||||
@@ -286,7 +285,7 @@ namespace GHelper
|
||||
chartCPU.Location = new Point(12, 10);
|
||||
chartCPU.Margin = new Padding(2, 10, 2, 10);
|
||||
chartCPU.Name = "chartCPU";
|
||||
chartCPU.Size = new Size(782, 463);
|
||||
chartCPU.Size = new Size(786, 463);
|
||||
chartCPU.TabIndex = 14;
|
||||
chartCPU.Text = "chartCPU";
|
||||
title2.Name = "Title1";
|
||||
@@ -300,7 +299,7 @@ namespace GHelper
|
||||
chartXGM.Location = new Point(12, 1459);
|
||||
chartXGM.Margin = new Padding(2, 10, 2, 10);
|
||||
chartXGM.Name = "chartXGM";
|
||||
chartXGM.Size = new Size(782, 463);
|
||||
chartXGM.Size = new Size(786, 463);
|
||||
chartXGM.TabIndex = 14;
|
||||
chartXGM.Text = "chartXGM";
|
||||
title3.Name = "Title4";
|
||||
@@ -315,7 +314,7 @@ namespace GHelper
|
||||
chartMid.Location = new Point(12, 976);
|
||||
chartMid.Margin = new Padding(2, 10, 2, 10);
|
||||
chartMid.Name = "chartMid";
|
||||
chartMid.Size = new Size(782, 463);
|
||||
chartMid.Size = new Size(786, 463);
|
||||
chartMid.TabIndex = 14;
|
||||
chartMid.Text = "chartMid";
|
||||
title4.Name = "Title3";
|
||||
@@ -334,7 +333,7 @@ namespace GHelper
|
||||
panelTitleFans.Location = new Point(0, 0);
|
||||
panelTitleFans.Margin = new Padding(4);
|
||||
panelTitleFans.Name = "panelTitleFans";
|
||||
panelTitleFans.Size = new Size(806, 66);
|
||||
panelTitleFans.Size = new Size(810, 66);
|
||||
panelTitleFans.TabIndex = 42;
|
||||
//
|
||||
// buttonRename
|
||||
@@ -346,7 +345,7 @@ namespace GHelper
|
||||
buttonRename.BorderRadius = 2;
|
||||
buttonRename.FlatStyle = FlatStyle.Flat;
|
||||
buttonRename.Image = Properties.Resources.icons8_edit_32;
|
||||
buttonRename.Location = new Point(376, 10);
|
||||
buttonRename.Location = new Point(380, 10);
|
||||
buttonRename.Margin = new Padding(4, 2, 4, 2);
|
||||
buttonRename.Name = "buttonRename";
|
||||
buttonRename.Secondary = true;
|
||||
@@ -363,7 +362,7 @@ namespace GHelper
|
||||
buttonRemove.BorderRadius = 2;
|
||||
buttonRemove.FlatStyle = FlatStyle.Flat;
|
||||
buttonRemove.Image = Properties.Resources.icons8_remove_64;
|
||||
buttonRemove.Location = new Point(322, 10);
|
||||
buttonRemove.Location = new Point(326, 10);
|
||||
buttonRemove.Margin = new Padding(4, 2, 4, 2);
|
||||
buttonRemove.Name = "buttonRemove";
|
||||
buttonRemove.Secondary = true;
|
||||
@@ -380,7 +379,7 @@ namespace GHelper
|
||||
buttonAdd.BorderRadius = 2;
|
||||
buttonAdd.FlatStyle = FlatStyle.Flat;
|
||||
buttonAdd.Image = Properties.Resources.icons8_add_64;
|
||||
buttonAdd.Location = new Point(744, 10);
|
||||
buttonAdd.Location = new Point(748, 10);
|
||||
buttonAdd.Margin = new Padding(4, 2, 4, 2);
|
||||
buttonAdd.Name = "buttonAdd";
|
||||
buttonAdd.Secondary = true;
|
||||
@@ -395,7 +394,7 @@ namespace GHelper
|
||||
comboModes.ButtonColor = Color.FromArgb(255, 255, 255);
|
||||
comboModes.FlatStyle = FlatStyle.Flat;
|
||||
comboModes.FormattingEnabled = true;
|
||||
comboModes.Location = new Point(436, 14);
|
||||
comboModes.Location = new Point(440, 14);
|
||||
comboModes.Margin = new Padding(0);
|
||||
comboModes.Name = "comboModes";
|
||||
comboModes.Size = new Size(302, 40);
|
||||
@@ -434,7 +433,7 @@ namespace GHelper
|
||||
panelApplyFans.Location = new Point(0, 2003);
|
||||
panelApplyFans.Margin = new Padding(4);
|
||||
panelApplyFans.Name = "panelApplyFans";
|
||||
panelApplyFans.Size = new Size(806, 116);
|
||||
panelApplyFans.Size = new Size(810, 116);
|
||||
panelApplyFans.TabIndex = 43;
|
||||
//
|
||||
// buttonCalibrate
|
||||
@@ -470,7 +469,7 @@ namespace GHelper
|
||||
checkApplyFans.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
checkApplyFans.AutoSize = true;
|
||||
checkApplyFans.BackColor = SystemColors.ControlLight;
|
||||
checkApplyFans.Location = new Point(450, 42);
|
||||
checkApplyFans.Location = new Point(454, 42);
|
||||
checkApplyFans.Margin = new Padding(0);
|
||||
checkApplyFans.Name = "checkApplyFans";
|
||||
checkApplyFans.Padding = new Padding(16, 6, 16, 6);
|
||||
@@ -1257,55 +1256,6 @@ namespace GHelper
|
||||
panelGPU.TabIndex = 44;
|
||||
panelGPU.Visible = false;
|
||||
//
|
||||
// panelGPUPower
|
||||
//
|
||||
panelGPUPower.AutoSize = true;
|
||||
panelGPUPower.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
panelGPUPower.Controls.Add(labelGPUPower);
|
||||
panelGPUPower.Controls.Add(labelGPUPowerTitle);
|
||||
panelGPUPower.Controls.Add(trackGPUPower);
|
||||
panelGPUPower.Dock = DockStyle.Top;
|
||||
panelGPUPower.Location = new Point(0, 432);
|
||||
panelGPUPower.Margin = new Padding(4);
|
||||
panelGPUPower.MaximumSize = new Size(0, 124);
|
||||
panelGPUPower.Name = "panelGPUPower";
|
||||
panelGPUPower.Size = new Size(520, 124);
|
||||
panelGPUPower.TabIndex = 49;
|
||||
//
|
||||
// labelGPUPower
|
||||
//
|
||||
labelGPUPower.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||
labelGPUPower.Location = new Point(374, 14);
|
||||
labelGPUPower.Margin = new Padding(4, 0, 4, 0);
|
||||
labelGPUPower.Name = "labelGPUPower";
|
||||
labelGPUPower.Size = new Size(124, 32);
|
||||
labelGPUPower.TabIndex = 44;
|
||||
labelGPUPower.Text = "105W";
|
||||
labelGPUPower.TextAlign = ContentAlignment.TopRight;
|
||||
//
|
||||
// labelGPUPowerTitle
|
||||
//
|
||||
labelGPUPowerTitle.AutoSize = true;
|
||||
labelGPUPowerTitle.Location = new Point(10, 14);
|
||||
labelGPUPowerTitle.Margin = new Padding(4, 0, 4, 0);
|
||||
labelGPUPowerTitle.Name = "labelGPUPowerTitle";
|
||||
labelGPUPowerTitle.Size = new Size(130, 32);
|
||||
labelGPUPowerTitle.TabIndex = 43;
|
||||
labelGPUPowerTitle.Text = "GPU Power";
|
||||
//
|
||||
// trackGPUPower
|
||||
//
|
||||
trackGPUPower.Location = new Point(6, 48);
|
||||
trackGPUPower.Margin = new Padding(4, 2, 4, 2);
|
||||
trackGPUPower.Maximum = 25;
|
||||
trackGPUPower.Minimum = 5;
|
||||
trackGPUPower.Name = "trackGPUPower";
|
||||
trackGPUPower.Size = new Size(496, 90);
|
||||
trackGPUPower.TabIndex = 42;
|
||||
trackGPUPower.TickFrequency = 5;
|
||||
trackGPUPower.TickStyle = TickStyle.TopLeft;
|
||||
trackGPUPower.Value = 25;
|
||||
//
|
||||
// panelGPUTemp
|
||||
//
|
||||
panelGPUTemp.AutoSize = true;
|
||||
@@ -1404,6 +1354,55 @@ namespace GHelper
|
||||
trackGPUBoost.TickStyle = TickStyle.TopLeft;
|
||||
trackGPUBoost.Value = 25;
|
||||
//
|
||||
// panelGPUPower
|
||||
//
|
||||
panelGPUPower.AutoSize = true;
|
||||
panelGPUPower.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
panelGPUPower.Controls.Add(labelGPUPower);
|
||||
panelGPUPower.Controls.Add(labelGPUPowerTitle);
|
||||
panelGPUPower.Controls.Add(trackGPUPower);
|
||||
panelGPUPower.Dock = DockStyle.Top;
|
||||
panelGPUPower.Location = new Point(0, 432);
|
||||
panelGPUPower.Margin = new Padding(4);
|
||||
panelGPUPower.MaximumSize = new Size(0, 124);
|
||||
panelGPUPower.Name = "panelGPUPower";
|
||||
panelGPUPower.Size = new Size(520, 124);
|
||||
panelGPUPower.TabIndex = 49;
|
||||
//
|
||||
// labelGPUPower
|
||||
//
|
||||
labelGPUPower.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||
labelGPUPower.Location = new Point(374, 14);
|
||||
labelGPUPower.Margin = new Padding(4, 0, 4, 0);
|
||||
labelGPUPower.Name = "labelGPUPower";
|
||||
labelGPUPower.Size = new Size(124, 32);
|
||||
labelGPUPower.TabIndex = 44;
|
||||
labelGPUPower.Text = "105W";
|
||||
labelGPUPower.TextAlign = ContentAlignment.TopRight;
|
||||
//
|
||||
// labelGPUPowerTitle
|
||||
//
|
||||
labelGPUPowerTitle.AutoSize = true;
|
||||
labelGPUPowerTitle.Location = new Point(10, 14);
|
||||
labelGPUPowerTitle.Margin = new Padding(4, 0, 4, 0);
|
||||
labelGPUPowerTitle.Name = "labelGPUPowerTitle";
|
||||
labelGPUPowerTitle.Size = new Size(130, 32);
|
||||
labelGPUPowerTitle.TabIndex = 43;
|
||||
labelGPUPowerTitle.Text = "GPU Power";
|
||||
//
|
||||
// trackGPUPower
|
||||
//
|
||||
trackGPUPower.Location = new Point(6, 48);
|
||||
trackGPUPower.Margin = new Padding(4, 2, 4, 2);
|
||||
trackGPUPower.Maximum = 25;
|
||||
trackGPUPower.Minimum = 5;
|
||||
trackGPUPower.Name = "trackGPUPower";
|
||||
trackGPUPower.Size = new Size(496, 90);
|
||||
trackGPUPower.TabIndex = 42;
|
||||
trackGPUPower.TickFrequency = 5;
|
||||
trackGPUPower.TickStyle = TickStyle.TopLeft;
|
||||
trackGPUPower.Value = 25;
|
||||
//
|
||||
// panelGPUMemory
|
||||
//
|
||||
panelGPUMemory.AutoSize = true;
|
||||
@@ -1685,7 +1684,6 @@ namespace GHelper
|
||||
Controls.Add(panelFans);
|
||||
Controls.Add(panelSliders);
|
||||
Margin = new Padding(4, 2, 4, 2);
|
||||
MaximizeBox = true;
|
||||
MinimizeBox = false;
|
||||
MinimumSize = new Size(26, 1100);
|
||||
Name = "Fans";
|
||||
@@ -1756,15 +1754,15 @@ namespace GHelper
|
||||
((System.ComponentModel.ISupportInitialize)picturePowerMode).EndInit();
|
||||
panelGPU.ResumeLayout(false);
|
||||
panelGPU.PerformLayout();
|
||||
panelGPUPower.ResumeLayout(false);
|
||||
panelGPUPower.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUPower).EndInit();
|
||||
panelGPUTemp.ResumeLayout(false);
|
||||
panelGPUTemp.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUTemp).EndInit();
|
||||
panelGPUBoost.ResumeLayout(false);
|
||||
panelGPUBoost.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUBoost).EndInit();
|
||||
panelGPUPower.ResumeLayout(false);
|
||||
panelGPUPower.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUPower).EndInit();
|
||||
panelGPUMemory.ResumeLayout(false);
|
||||
panelGPUMemory.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)trackGPUMemory).EndInit();
|
||||
|
||||
11
app/Fans.cs
11
app/Fans.cs
@@ -428,6 +428,7 @@ namespace GHelper
|
||||
|
||||
labelUV.Text = trackUV.Value.ToString();
|
||||
labelUViGPU.Text = trackUViGPU.Value.ToString();
|
||||
|
||||
labelTemp.Text = (trackTemp.Value < RyzenControl.MaxTemp) ? trackTemp.Value.ToString() + "°C" : "Default";
|
||||
}
|
||||
|
||||
@@ -1142,7 +1143,8 @@ namespace GHelper
|
||||
trackTemp.Value = RyzenControl.MaxTemp;
|
||||
|
||||
AdvancedScroll();
|
||||
AppConfig.SetMode("cpu_temp", -1);
|
||||
AppConfig.RemoveMode("cpu_temp");
|
||||
AppConfig.RemoveMode("skin_temp");
|
||||
|
||||
modeControl.ResetPerformanceMode();
|
||||
|
||||
@@ -1160,8 +1162,11 @@ namespace GHelper
|
||||
trackGPUBoost.Value = AsusACPI.MaxGPUBoost;
|
||||
trackGPUTemp.Value = AsusACPI.MaxGPUTemp;
|
||||
|
||||
AppConfig.SetMode("gpu_boost", trackGPUBoost.Value);
|
||||
AppConfig.SetMode("gpu_temp", trackGPUTemp.Value);
|
||||
//AppConfig.SetMode("gpu_boost", trackGPUBoost.Value);
|
||||
//AppConfig.SetMode("gpu_temp", trackGPUTemp.Value);
|
||||
|
||||
AppConfig.RemoveMode("gpu_boost");
|
||||
AppConfig.RemoveMode("gpu_temp");
|
||||
|
||||
AppConfig.RemoveMode("gpu_power");
|
||||
AppConfig.RemoveMode("gpu_clock_limit");
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<ProduceReferenceAssembly>False</ProduceReferenceAssembly>
|
||||
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
|
||||
<AssemblyVersion>0.170</AssemblyVersion>
|
||||
<AssemblyVersion>0.175</AssemblyVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
@@ -140,4 +140,4 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -322,7 +322,6 @@ namespace GHelper.Gpu
|
||||
Program.acpi.DeviceSet(AsusACPI.GPUXG, 1, "GPU XGM");
|
||||
|
||||
InitXGM();
|
||||
|
||||
XGM.Light(AppConfig.Is("xmg_light"));
|
||||
|
||||
await Task.Delay(TimeSpan.FromSeconds(15));
|
||||
|
||||
24
app/Helpers/DynamicLightingHelper.cs
Normal file
24
app/Helpers/DynamicLightingHelper.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace GHelper.Helpers
|
||||
{
|
||||
public static class DynamicLightingHelper
|
||||
{
|
||||
|
||||
public static bool IsEnabled()
|
||||
{
|
||||
using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Lighting");
|
||||
var registryValueObject = key?.GetValue("AmbientLightingEnabled");
|
||||
|
||||
if (registryValueObject == null) return true;
|
||||
return (int)registryValueObject > 0;
|
||||
}
|
||||
|
||||
public static void OpenSettings()
|
||||
{
|
||||
ProcessHelper.RunCMD("explorer","ms-settings:personalization-lighting");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -30,15 +30,22 @@ public class Startup
|
||||
var task = taskService.RootFolder.AllTasks.FirstOrDefault(t => t.Name == taskName);
|
||||
if (task != null)
|
||||
{
|
||||
string strExeFilePath = Application.ExecutablePath.Trim();
|
||||
string action = task.Definition.Actions.FirstOrDefault()!.ToString().Trim();
|
||||
if (!strExeFilePath.Equals(action, StringComparison.OrdinalIgnoreCase) && !File.Exists(action))
|
||||
try
|
||||
{
|
||||
Logger.WriteLine("File doesn't exist: " + action);
|
||||
Logger.WriteLine("Rescheduling to: " + strExeFilePath);
|
||||
UnSchedule();
|
||||
Schedule();
|
||||
string strExeFilePath = Application.ExecutablePath.Trim();
|
||||
string action = task.Definition.Actions.FirstOrDefault()!.ToString().Trim();
|
||||
if (!strExeFilePath.Equals(action, StringComparison.OrdinalIgnoreCase) && !File.Exists(action))
|
||||
{
|
||||
Logger.WriteLine("File doesn't exist: " + action);
|
||||
Logger.WriteLine("Rescheduling to: " + strExeFilePath);
|
||||
UnSchedule();
|
||||
Schedule();
|
||||
}
|
||||
} catch (Exception ex)
|
||||
{
|
||||
Logger.WriteLine($"Can't check startup task: {ex.Message}");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ namespace GHelper.Helpers
|
||||
protected override void PerformPaint(PaintEventArgs e)
|
||||
{
|
||||
Brush brush = new SolidBrush(Color.FromArgb(150, Color.Black));
|
||||
|
||||
e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
|
||||
e.Graphics.FillRoundedRectangle(brush, Bound, 10);
|
||||
|
||||
StringFormat format = new StringFormat();
|
||||
|
||||
@@ -406,9 +406,6 @@ namespace GHelper.Mode
|
||||
{
|
||||
var resultCPU = SendCommand.set_tctl_temp((uint)cpuTemp);
|
||||
if (init) Logger.WriteLine($"CPU Temp: {cpuTemp} {resultCPU}");
|
||||
|
||||
var restultAPU = SendCommand.set_apu_skin_temp_limit((uint)cpuTemp);
|
||||
if (init) Logger.WriteLine($"APU Temp: {cpuTemp} {restultAPU}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using GHelper.AnimeMatrix.Communication;
|
||||
using GHelper.AnimeMatrix.Communication.Platform;
|
||||
using GHelper.Input;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
@@ -1745,17 +1744,6 @@ namespace GHelper.Peripherals.Mouse
|
||||
}
|
||||
}
|
||||
|
||||
public void SetColor(Color color)
|
||||
{
|
||||
var ls = new LightingSetting();
|
||||
ls.RGBColor = color;
|
||||
ls.Brightness = InputDispatcher.GetBacklight() * 25;
|
||||
|
||||
WriteForResponse(GetUpdateLightingModePacket(ls, LightingZone.All));
|
||||
WriteForResponse(GetSaveProfilePacket());
|
||||
|
||||
}
|
||||
|
||||
public void SetLightingSetting(LightingSetting lightingSetting, LightingZone zone)
|
||||
{
|
||||
if (!HasRGB() || lightingSetting is null)
|
||||
|
||||
@@ -297,4 +297,166 @@
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
//P504
|
||||
public class GladiusIIOriginPink : GladiusIIOrigin
|
||||
{
|
||||
public GladiusIIOriginPink() : base(0x18CD, "mi_02")
|
||||
{
|
||||
|
||||
}
|
||||
public override string GetDisplayName()
|
||||
{
|
||||
return "Gladius II PNK LTD";
|
||||
}
|
||||
public override int ProfileCount()
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
public override LightingZone[] SupportedLightingZones()
|
||||
{
|
||||
return new LightingZone[] { LightingZone.Scrollwheel, LightingZone.Underglow };
|
||||
}
|
||||
|
||||
protected override byte[] GetUpdateLightingModePacket(LightingSetting lightingSetting, LightingZone zone)
|
||||
{
|
||||
/*
|
||||
* This mouse uses different speed values for rainbow mode compared to others.
|
||||
* 51 28 03 00 03 04 FF 00 00 00 00 [8C] 00 00 00 00
|
||||
* 51 28 03 00 03 04 FF 00 00 00 00 [64] 00 00 00 00
|
||||
* 51 28 03 00 03 04 FF 00 00 00 00 [3F] 00 00 00 00
|
||||
*/
|
||||
|
||||
byte speed = (byte)(SupportsAnimationSpeed(lightingSetting.LightingMode) ? lightingSetting.AnimationSpeed : 0x00);
|
||||
|
||||
if (lightingSetting.LightingMode == LightingMode.Rainbow)
|
||||
{
|
||||
speed = 0x64;
|
||||
|
||||
switch (lightingSetting.AnimationSpeed)
|
||||
{
|
||||
case AnimationSpeed.Slow:
|
||||
speed = 0x8C;
|
||||
break;
|
||||
case AnimationSpeed.Medium:
|
||||
speed = 0x64;
|
||||
break;
|
||||
case AnimationSpeed.Fast:
|
||||
speed = 0x3F;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return new byte[] { reportId, 0x51, 0x28, (byte)zone, 0x00,
|
||||
IndexForLightingMode(lightingSetting.LightingMode),
|
||||
(byte)lightingSetting.Brightness,
|
||||
0x00, // this mouse has 2 colors per LED capability, but we do not suppor this yet, so we disable it
|
||||
lightingSetting.RGBColor.R, lightingSetting.RGBColor.G, lightingSetting.RGBColor.B,
|
||||
0x00, 0x00, 0x00, //this would be the second set of RGB Colors if we ever support this
|
||||
(byte)(SupportsAnimationDirection(lightingSetting.LightingMode) ? lightingSetting.AnimationDirection : 0x00),
|
||||
(byte)((lightingSetting.RandomColor && SupportsRandomColor(lightingSetting.LightingMode)) ? 0x01: 0x00),
|
||||
speed
|
||||
};
|
||||
}
|
||||
|
||||
protected LightingSetting? ParseLightingSetting(byte[] packet, LightingZone zone)
|
||||
{
|
||||
if (packet[1] != 0x12 || packet[2] != 0x03)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
//skip first block as it seems to be empty. Maybe only filled to certain configurations.
|
||||
int offset = 5 + 9 + (((int)zone) * 9);
|
||||
|
||||
LightingSetting setting = new LightingSetting();
|
||||
|
||||
setting.LightingMode = LightingModeForIndex(packet[offset + 0]);
|
||||
setting.Brightness = packet[offset + 1];
|
||||
//Offset 2 is a bool that says whether dual color RGB is in use. Unsupported for now by GHelper
|
||||
|
||||
setting.RGBColor = Color.FromArgb(packet[offset + 3], packet[offset + 4], packet[offset + 5]);
|
||||
|
||||
//Offset 7 - 9 are the second RGB colors, unuse as not supported yet
|
||||
|
||||
|
||||
return setting;
|
||||
}
|
||||
|
||||
public override void ReadLightingSetting()
|
||||
{
|
||||
if (!HasRGB())
|
||||
{
|
||||
return;
|
||||
}
|
||||
//Mouse sends all lighting zones in one response Direction, Random col, Speed
|
||||
//First block seems emtpy?
|
||||
//00 12 03 00 00 [00 00 00 00 00 00 00 00 00] [03 04 01 00 00 00 00 00 00] [03 04 01 00 00 00 00 00 00] [00 01 8c]
|
||||
//Length 9, offset 5
|
||||
//Direction
|
||||
byte[]? response = WriteForResponse(GetReadLightingModePacket(LightingZone.All));
|
||||
if (response is null) return;
|
||||
|
||||
LightingZone[] lz = SupportedLightingZones();
|
||||
for (int i = 0; i < lz.Length; ++i)
|
||||
{
|
||||
LightingSetting? ls = ParseLightingSetting(response, lz[i]);
|
||||
if (ls is null)
|
||||
{
|
||||
Logger.WriteLine(GetDisplayName() + ": Failed to read RGB Setting for Zone " + lz[i].ToString());
|
||||
continue;
|
||||
}
|
||||
ls.AnimationDirection = SupportsAnimationDirection(ls.LightingMode)
|
||||
? (AnimationDirection)response[32]
|
||||
: AnimationDirection.Clockwise;
|
||||
|
||||
ls.RandomColor = SupportsRandomColor(ls.LightingMode) && response[33] == 0x01;
|
||||
|
||||
//Rainbow uses different speed values for whatever reason
|
||||
if (response[12] == 0x03)
|
||||
{
|
||||
byte speed = response[34];
|
||||
|
||||
switch (speed)
|
||||
{
|
||||
case 0x3F:
|
||||
ls.AnimationSpeed = AnimationSpeed.Fast;
|
||||
break;
|
||||
|
||||
case 0x64:
|
||||
ls.AnimationSpeed = AnimationSpeed.Medium;
|
||||
break;
|
||||
|
||||
case 0x8C:
|
||||
ls.AnimationSpeed = AnimationSpeed.Slow;
|
||||
break;
|
||||
|
||||
default:
|
||||
ls.AnimationSpeed = AnimationSpeed.Medium;
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ls.AnimationSpeed = SupportsAnimationSpeed(ls.LightingMode)
|
||||
? (AnimationSpeed)response[34]
|
||||
: AnimationSpeed.Medium;
|
||||
|
||||
if (ls.AnimationSpeed != AnimationSpeed.Fast
|
||||
&& ls.AnimationSpeed != AnimationSpeed.Medium
|
||||
&& ls.AnimationSpeed != AnimationSpeed.Slow)
|
||||
{
|
||||
ls.AnimationSpeed = AnimationSpeed.Medium;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Logger.WriteLine(GetDisplayName() + ": Read RGB Setting for Zone " + lz[i].ToString() + ": " + ls.ToString());
|
||||
LightingSetting[i] = ls;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
namespace GHelper.Peripherals.Mouse.Models
|
||||
{
|
||||
//P706_Wireless
|
||||
public class GladiusIII : AsusMouse
|
||||
public class GladiusIIIWireless : AsusMouse
|
||||
{
|
||||
public GladiusIII() : base(0x0B05, 0x197F, "mi_00", true)
|
||||
public GladiusIIIWireless() : base(0x0B05, 0x197F, "mi_00", true)
|
||||
{
|
||||
}
|
||||
|
||||
protected GladiusIII(ushort vendorId, bool wireless) : base(0x0B05, vendorId, "mi_00", wireless)
|
||||
protected GladiusIIIWireless(ushort vendorId, bool wireless) : base(0x0B05, vendorId, "mi_00", wireless)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
public class GladiusIIIWired : GladiusIII
|
||||
public class GladiusIIIWired : GladiusIIIWireless
|
||||
{
|
||||
public GladiusIIIWired() : base(0x197d, false)
|
||||
{
|
||||
@@ -88,4 +88,43 @@
|
||||
return "ROG Gladius III (Wired)";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//P514
|
||||
public class GladiusIII : GladiusIIIWireless
|
||||
{
|
||||
public GladiusIII() : base(0x197B, false)
|
||||
{
|
||||
}
|
||||
|
||||
public override string GetDisplayName()
|
||||
{
|
||||
return "ROG Gladius III";
|
||||
}
|
||||
|
||||
public override bool HasAutoPowerOff()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool HasLowBatteryWarning()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool HasBattery()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool IsLightingModeSupported(LightingMode lightingMode)
|
||||
{
|
||||
return lightingMode == LightingMode.Static
|
||||
|| lightingMode == LightingMode.Breathing
|
||||
|| lightingMode == LightingMode.ColorCycle
|
||||
|| lightingMode == LightingMode.Rainbow
|
||||
|| lightingMode == LightingMode.React
|
||||
|| lightingMode == LightingMode.Comet;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -99,6 +99,18 @@
|
||||
{
|
||||
return true;
|
||||
}
|
||||
// 3.00.06 - 4.00.01 or newer firmware
|
||||
protected override PollingRate ParsePollingRate(byte[] packet)
|
||||
{
|
||||
if (packet[1] == 0x12 && packet[2] == 0x04 && packet[3] == 0x00)
|
||||
{
|
||||
if ((int)packet[13] > 7)
|
||||
return (PollingRate)packet[13] - 96;
|
||||
return (PollingRate)packet[13];
|
||||
}
|
||||
|
||||
return PollingRate.PR125Hz;
|
||||
}
|
||||
}
|
||||
|
||||
public class KerisWirelssAimpointWired : KerisWirelssAimpoint
|
||||
|
||||
@@ -159,15 +159,31 @@
|
||||
}
|
||||
}
|
||||
|
||||
public class ROGKerisWirelessWiredC : ROGKerisWireless
|
||||
//P509
|
||||
public class ROGKeris : ROGKerisWireless
|
||||
{
|
||||
public ROGKerisWirelessWiredC() : base(0x195C, false)
|
||||
public ROGKeris() : base(0x195C, false)
|
||||
{
|
||||
}
|
||||
|
||||
public override string GetDisplayName()
|
||||
{
|
||||
return "ROG Keris (Wired)";
|
||||
return "ROG Keris";
|
||||
}
|
||||
|
||||
public override bool HasBattery()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool HasLowBatteryWarning()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool HasAutoPowerOff()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -188,18 +188,20 @@ namespace GHelper.Peripherals
|
||||
DetectMouse(new GladiusIIIAimpoint());
|
||||
DetectMouse(new GladiusIIIAimpointWired());
|
||||
DetectMouse(new GladiusIIOrigin());
|
||||
DetectMouse(new GladiusIIOriginPink());
|
||||
DetectMouse(new GladiusII());
|
||||
DetectMouse(new ROGKerisWireless());
|
||||
DetectMouse(new ROGKerisWirelessWired());
|
||||
DetectMouse(new ROGKerisWirelessWiredC());
|
||||
DetectMouse(new ROGKeris());
|
||||
DetectMouse(new ROGKerisWirelessEvaEdition());
|
||||
DetectMouse(new ROGKerisWirelessEvaEditionWired());
|
||||
DetectMouse(new TUFM4Wirelss());
|
||||
DetectMouse(new TUFM4WirelssCN());
|
||||
DetectMouse(new StrixImpactIIWireless());
|
||||
DetectMouse(new StrixImpactIIWirelessWired());
|
||||
DetectMouse(new GladiusIII());
|
||||
DetectMouse(new GladiusIIIWireless());
|
||||
DetectMouse(new GladiusIIIWired());
|
||||
DetectMouse(new GladiusIII());
|
||||
DetectMouse(new GladiusIIIAimpointEva2());
|
||||
DetectMouse(new GladiusIIIAimpointEva2Wired());
|
||||
DetectMouse(new HarpeAceAimLabEdition());
|
||||
|
||||
@@ -740,6 +740,12 @@ Vil du stadig fortsætte?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Slå skærmen til/fra</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Trotzdem fortfahren?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Bildschirm umschalten</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Alternar pantalla</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Alternar pantalla táctil</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Voulez-vous continuer ?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Allumer l'écran</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Do you still want to continue?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Képernyő ki-/bekapcsolása</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbó</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Hidupkan/Matikan Layar</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Sei sicuro di voler continuare?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Alterna Schermo</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>화면 전환 키</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>터보</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Vis tiek norite tęsti?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Perjungti ekraną</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Nadal chcesz kontynuować?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Przełącz ekran</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Do you still want to continue?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Alternar Tela</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Quer prosseguir?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Alternar Ecrã</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -624,7 +624,7 @@ Do you still want to continue?</value>
|
||||
<value>Optimized</value>
|
||||
</data>
|
||||
<data name="OptimizedGPUTooltip" xml:space="preserve">
|
||||
<value>Switch to Eco on battery and to Standard when plugged</value>
|
||||
<value>Switch to Eco on battery and to Standard when plugged in</value>
|
||||
</data>
|
||||
<data name="OptimizedUSBC" xml:space="preserve">
|
||||
<value>Keep GPU disabled on USB-C charger in Optimized mode</value>
|
||||
@@ -800,4 +800,4 @@ Do you still want to continue?</value>
|
||||
<data name="Zoom" xml:space="preserve">
|
||||
<value>Zoom</value>
|
||||
</data>
|
||||
</root>
|
||||
</root>
|
||||
|
||||
@@ -740,6 +740,12 @@
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Toggle Ecran</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Yine de devam etmek istiyor musunuz?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Ekranı Değiştir</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Dokunmatik Ekranı Değiştir</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -507,7 +507,7 @@
|
||||
<value>Ілюмінація</value>
|
||||
</data>
|
||||
<data name="LockScreen" xml:space="preserve">
|
||||
<value>Lock Screen</value>
|
||||
<value>Блокування екрану</value>
|
||||
</data>
|
||||
<data name="Logo" xml:space="preserve">
|
||||
<value>Лого</value>
|
||||
@@ -740,6 +740,12 @@
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Вимкнути екран</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Сенсорний екран</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Турбо</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@ Do you still want to continue?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Bật tắt màn hình</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>Turbo</value>
|
||||
</data>
|
||||
|
||||
@@ -740,6 +740,12 @@
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>关闭屏幕</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>Toggle Touchscreen</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>增强模式</value>
|
||||
</data>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
<value>滑鼠加速</value>
|
||||
</data>
|
||||
<data name="ACPIError" xml:space="preserve">
|
||||
<value>無法連結到華碩 ACPI。 没有它,應用程式將無法執行。 嘗試安裝Asus System Control Interface</value>
|
||||
<value>無法連結到華碩 ACPI,應用程式無法執行。 請嘗試安裝 Asus System Control Interface</value>
|
||||
</data>
|
||||
<data name="AlertAPUMemoryRestart" xml:space="preserve">
|
||||
<value>重新啟動裝置以套用變更</value>
|
||||
@@ -130,7 +130,7 @@
|
||||
<value>現在重新啟動?</value>
|
||||
</data>
|
||||
<data name="AlertDGPU" xml:space="preserve">
|
||||
<value>看起来 GPU 正在大量使用,是否禁用它?</value>
|
||||
<value>看起來 GPU 正在被重度使用,是否禁用?</value>
|
||||
</data>
|
||||
<data name="AlertDGPUTitle" xml:space="preserve">
|
||||
<value>節能模式</value>
|
||||
@@ -139,10 +139,10 @@
|
||||
<value>關閉獨顯需要重新啟動</value>
|
||||
</data>
|
||||
<data name="AlertUltimateOn" xml:space="preserve">
|
||||
<value>獨顯直連需要重啟</value>
|
||||
<value>獨顯輸出需要重新啟動</value>
|
||||
</data>
|
||||
<data name="AlertUltimateTitle" xml:space="preserve">
|
||||
<value>現在重新啟動嗎?</value>
|
||||
<value>立即重新啟動?</value>
|
||||
</data>
|
||||
<data name="AllyController" xml:space="preserve">
|
||||
<value>Ally控制器</value>
|
||||
@@ -151,13 +151,13 @@
|
||||
<value>動畫速度</value>
|
||||
</data>
|
||||
<data name="AnimeMatrix" xml:space="preserve">
|
||||
<value>AniMeMatrix</value>
|
||||
<value>AniMeMatrix™</value>
|
||||
</data>
|
||||
<data name="AppAlreadyRunning" xml:space="preserve">
|
||||
<value>程式已正在執行</value>
|
||||
<value>程式正在執行</value>
|
||||
</data>
|
||||
<data name="AppAlreadyRunningText" xml:space="preserve">
|
||||
<value>G-Helper已經在執行。 請確認右下工作列中的圖示。</value>
|
||||
<value>G-Helper正在執行。 請檢查右下系統匣。</value>
|
||||
</data>
|
||||
<data name="Apply" xml:space="preserve">
|
||||
<value>套用</value>
|
||||
@@ -187,7 +187,7 @@
|
||||
<value>順時針</value>
|
||||
</data>
|
||||
<data name="AuraColorCycle" xml:space="preserve">
|
||||
<value>彩色循環</value>
|
||||
<value>色彩循環</value>
|
||||
</data>
|
||||
<data name="AuraComet" xml:space="preserve">
|
||||
<value>彗星</value>
|
||||
@@ -244,7 +244,7 @@
|
||||
<value>自動</value>
|
||||
</data>
|
||||
<data name="AutoRefreshTooltip" xml:space="preserve">
|
||||
<value>電池模式時自動60Hz</value>
|
||||
<value>使用電池時設定為 60Hz,並在插上電源時恢復</value>
|
||||
</data>
|
||||
<data name="Awake" xml:space="preserve">
|
||||
<value>喚醒時</value>
|
||||
@@ -271,7 +271,7 @@
|
||||
<value>閒置時關閉燈光(充電模式)</value>
|
||||
</data>
|
||||
<data name="Balanced" xml:space="preserve">
|
||||
<value>平衡模式</value>
|
||||
<value>效能</value>
|
||||
</data>
|
||||
<data name="BatteryCharge" xml:space="preserve">
|
||||
<value>充電</value>
|
||||
@@ -346,13 +346,13 @@
|
||||
<value>停用控制器</value>
|
||||
</data>
|
||||
<data name="DisableOnLidClose" xml:space="preserve">
|
||||
<value>Disable on lid close</value>
|
||||
<value>蓋上螢幕時取消</value>
|
||||
</data>
|
||||
<data name="DisableOverdrive" xml:space="preserve">
|
||||
<value>禁用螢幕加速OD</value>
|
||||
</data>
|
||||
<data name="Discharging" xml:space="preserve">
|
||||
<value>正在釋放電力</value>
|
||||
<value>使用電池中</value>
|
||||
</data>
|
||||
<data name="DownloadColorProfiles" xml:space="preserve">
|
||||
<value>下載色彩設定檔</value>
|
||||
@@ -370,7 +370,7 @@
|
||||
<value>節能模式</value>
|
||||
</data>
|
||||
<data name="EnableGPUOnShutdown" xml:space="preserve">
|
||||
<value>關機前啟動顯卡(解決切換顯卡節能模式&標準模式和亮度的某些問題)</value>
|
||||
<value>關機前啟動顯卡(解決切換顯卡節能模式&混合輸出和亮度的某些問題)</value>
|
||||
</data>
|
||||
<data name="EnableOptimusText" xml:space="preserve">
|
||||
<value>「Nvidia控制面板」中的顯示模式未設置為自動切換時,透過G-Helper的節能模式禁用獨顯可能導致螢幕亮度控制出現問題直到下次重新開機後。
|
||||
@@ -405,10 +405,10 @@
|
||||
<value>GPU 風扇設定檔</value>
|
||||
</data>
|
||||
<data name="FanProfileMid" xml:space="preserve">
|
||||
<value>中等風扇設置</value>
|
||||
<value>小風扇設定檔</value>
|
||||
</data>
|
||||
<data name="FanProfiles" xml:space="preserve">
|
||||
<value>風扇設置</value>
|
||||
<value>風扇設定檔</value>
|
||||
</data>
|
||||
<data name="FansAndPower" xml:space="preserve">
|
||||
<value>風扇和電源</value>
|
||||
@@ -417,13 +417,13 @@
|
||||
<value>風扇</value>
|
||||
</data>
|
||||
<data name="FansPower" xml:space="preserve">
|
||||
<value>自定義設置</value>
|
||||
<value>自定義</value>
|
||||
</data>
|
||||
<data name="FlickerFreeDimming" xml:space="preserve">
|
||||
<value>不閃屏調光(Flicker-free Dimming)</value>
|
||||
</data>
|
||||
<data name="FnLock" xml:space="preserve">
|
||||
<value>使用Fn+F1~F12功能時免按下Fn鍵</value>
|
||||
<value>使用 Fn + F1~F12 功能時無須按下Fn鍵</value>
|
||||
</data>
|
||||
<data name="FnLockOff" xml:space="preserve">
|
||||
<value>Fn鎖定解除</value>
|
||||
@@ -432,7 +432,7 @@
|
||||
<value>Fn鎖定</value>
|
||||
</data>
|
||||
<data name="GPUBoost" xml:space="preserve">
|
||||
<value>動態加速</value>
|
||||
<value>動態加速 (Dynamic Boost)</value>
|
||||
</data>
|
||||
<data name="GPUChanging" xml:space="preserve">
|
||||
<value>切換中...</value>
|
||||
@@ -489,7 +489,7 @@
|
||||
<value>背光</value>
|
||||
</data>
|
||||
<data name="LaptopKeyboard" xml:space="preserve">
|
||||
<value>鍵盤背光:</value>
|
||||
<value>鍵盤背光</value>
|
||||
</data>
|
||||
<data name="LaptopScreen" xml:space="preserve">
|
||||
<value>螢幕顯示</value>
|
||||
@@ -621,13 +621,13 @@
|
||||
<value>開啟G-Helper視窗</value>
|
||||
</data>
|
||||
<data name="Optimized" xml:space="preserve">
|
||||
<value>自動模式</value>
|
||||
<value>自動調節</value>
|
||||
</data>
|
||||
<data name="OptimizedGPUTooltip" xml:space="preserve">
|
||||
<value>使用電池切換到節能模式,插入電源時切換到標準模式</value>
|
||||
<value>使用電池切換到整合式顯卡,插入電源時切換到獨立顯卡</value>
|
||||
</data>
|
||||
<data name="OptimizedUSBC" xml:space="preserve">
|
||||
<value>自動模式下,使用USB-C充電時持續關閉獨顯</value>
|
||||
<value>自動調節模式下,使用USB-C充電時持續關閉獨顯</value>
|
||||
</data>
|
||||
<data name="Other" xml:space="preserve">
|
||||
<value>其他</value>
|
||||
@@ -636,7 +636,7 @@
|
||||
<value>OD</value>
|
||||
</data>
|
||||
<data name="PerformanceMode" xml:space="preserve">
|
||||
<value>性能模式:</value>
|
||||
<value>性能模式</value>
|
||||
</data>
|
||||
<data name="Peripherals" xml:space="preserve">
|
||||
<value>週邊設備</value>
|
||||
@@ -648,7 +648,7 @@
|
||||
<value>播放/暫停</value>
|
||||
</data>
|
||||
<data name="PollingRate" xml:space="preserve">
|
||||
<value>輪循率</value>
|
||||
<value>輪詢率</value>
|
||||
</data>
|
||||
<data name="PowerLimits" xml:space="preserve">
|
||||
<value>功率限制</value>
|
||||
@@ -669,10 +669,10 @@
|
||||
<value>重設</value>
|
||||
</data>
|
||||
<data name="RestartGPU" xml:space="preserve">
|
||||
<value>有其他程式正在使用獨顯導致無法切換至節能模式. 是否讓G-Helper重新啟動獨顯? * 請自行評估風險</value>
|
||||
<value>有其他程式正在使用獨顯導致無法切換至節能模式. 是否讓 G-Helper 於裝置管理員重新啟動獨顯? (請自行評估風險)</value>
|
||||
</data>
|
||||
<data name="RPM" xml:space="preserve">
|
||||
<value>每分鐘轉數</value>
|
||||
<value>RPM</value>
|
||||
</data>
|
||||
<data name="RSDeadzones" xml:space="preserve">
|
||||
<value>右搖桿死區</value>
|
||||
@@ -681,7 +681,7 @@
|
||||
<value>右扳機(RT)死區</value>
|
||||
</data>
|
||||
<data name="RunOnStartup" xml:space="preserve">
|
||||
<value>開機自動開啟</value>
|
||||
<value>開機時自動執行</value>
|
||||
</data>
|
||||
<data name="ScalingQuality" xml:space="preserve">
|
||||
<value>縮放品質</value>
|
||||
@@ -696,19 +696,19 @@
|
||||
<value>關機時</value>
|
||||
</data>
|
||||
<data name="Silent" xml:space="preserve">
|
||||
<value>安靜模式</value>
|
||||
<value>靜音</value>
|
||||
</data>
|
||||
<data name="Sleep" xml:space="preserve">
|
||||
<value>睡眠時</value>
|
||||
</data>
|
||||
<data name="StandardGPUTooltip" xml:space="preserve">
|
||||
<value>標準模式會啟用獨顯</value>
|
||||
<value>自動切換獨立顯卡以及整合式顯卡 (MS-Hybrid)</value>
|
||||
</data>
|
||||
<data name="StandardMode" xml:space="preserve">
|
||||
<value>標準模式</value>
|
||||
</data>
|
||||
<data name="Start" xml:space="preserve">
|
||||
<value>開始</value>
|
||||
<value>啟動</value>
|
||||
</data>
|
||||
<data name="StartingServices" xml:space="preserve">
|
||||
<value>正在啟動服務</value>
|
||||
@@ -726,22 +726,28 @@
|
||||
<value>正在停止服務</value>
|
||||
</data>
|
||||
<data name="ToggleAura" xml:space="preserve">
|
||||
<value>切換Aura</value>
|
||||
<value>切換 Aura 模式</value>
|
||||
</data>
|
||||
<data name="ToggleClamshellMode" xml:space="preserve">
|
||||
<value>翻蓋模式 (蓋上筆電但有外接螢幕時,系統仍會持續運行)</value>
|
||||
</data>
|
||||
<data name="ToggleFnLock" xml:space="preserve">
|
||||
<value>免按Fn鍵使用Fn+F1~F12功能</value>
|
||||
<value>切換 Fn-Lock</value>
|
||||
</data>
|
||||
<data name="ToggleMiniled" xml:space="preserve">
|
||||
<value>切換Miniled(若有支援)</value>
|
||||
<value>切換 mini-LED (若有支援)</value>
|
||||
</data>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>切換螢幕</value>
|
||||
</data>
|
||||
<data name="ToggleTouchscreen" xml:space="preserve">
|
||||
<value>切換螢幕觸控</value>
|
||||
</data>
|
||||
<data name="Touchscreen" xml:space="preserve">
|
||||
<value/>
|
||||
</data>
|
||||
<data name="Turbo" xml:space="preserve">
|
||||
<value>極速模式</value>
|
||||
<value>極速</value>
|
||||
</data>
|
||||
<data name="TurnedOff" xml:space="preserve">
|
||||
<value>已關閉</value>
|
||||
@@ -750,10 +756,10 @@
|
||||
<value>電池模式時關閉</value>
|
||||
</data>
|
||||
<data name="UltimateGPUTooltip" xml:space="preserve">
|
||||
<value>開啟獨顯直連獲得最佳幀數</value>
|
||||
<value>開啟獨顯輸出獲得最佳幀數</value>
|
||||
</data>
|
||||
<data name="UltimateMode" xml:space="preserve">
|
||||
<value>獨顯直連</value>
|
||||
<value>獨顯輸出</value>
|
||||
</data>
|
||||
<data name="UndervoltingRisky" xml:space="preserve">
|
||||
<value>降壓是一項實驗性且有風險的功能,若設定的值過低,可能造成系統不穩定甚至無預警關機,建議可先嘗試較小的降壓數值,並點擊"套用"來測試適合你的使用狀況</value>
|
||||
|
||||
75
app/Settings.Designer.cs
generated
75
app/Settings.Designer.cs
generated
@@ -68,6 +68,7 @@ namespace GHelper
|
||||
panelGPU = new Panel();
|
||||
labelTipGPU = new Label();
|
||||
tableAMD = new TableLayoutPanel();
|
||||
buttonAutoTDP = new RButton();
|
||||
buttonOverlay = new RButton();
|
||||
buttonFPS = new RButton();
|
||||
tableGPU = new TableLayoutPanel();
|
||||
@@ -94,6 +95,7 @@ namespace GHelper
|
||||
pictureScreen = new PictureBox();
|
||||
labelSreen = new Label();
|
||||
panelKeyboard = new Panel();
|
||||
labelDynamicLighting = new Label();
|
||||
tableLayoutKeyboard = new TableLayoutPanel();
|
||||
buttonKeyboard = new RButton();
|
||||
panelColor = new Panel();
|
||||
@@ -135,7 +137,6 @@ namespace GHelper
|
||||
labelGamma = new Label();
|
||||
pictureGamma = new PictureBox();
|
||||
labelGammaTitle = new Label();
|
||||
buttonAutoTDP = new RButton();
|
||||
panelMatrix.SuspendLayout();
|
||||
panelMatrixAuto.SuspendLayout();
|
||||
tableLayoutMatrix.SuspendLayout();
|
||||
@@ -370,7 +371,7 @@ namespace GHelper
|
||||
panelBattery.Controls.Add(sliderBattery);
|
||||
panelBattery.Controls.Add(panelBatteryTitle);
|
||||
panelBattery.Dock = DockStyle.Top;
|
||||
panelBattery.Location = new Point(11, 1725);
|
||||
panelBattery.Location = new Point(11, 1765);
|
||||
panelBattery.Margin = new Padding(0);
|
||||
panelBattery.Name = "panelBattery";
|
||||
panelBattery.Padding = new Padding(20, 20, 20, 11);
|
||||
@@ -462,7 +463,7 @@ namespace GHelper
|
||||
panelFooter.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
panelFooter.Controls.Add(tableButtons);
|
||||
panelFooter.Dock = DockStyle.Top;
|
||||
panelFooter.Location = new Point(11, 1901);
|
||||
panelFooter.Location = new Point(11, 1941);
|
||||
panelFooter.Margin = new Padding(0);
|
||||
panelFooter.Name = "panelFooter";
|
||||
panelFooter.Padding = new Padding(20);
|
||||
@@ -780,6 +781,28 @@ namespace GHelper
|
||||
tableAMD.TabIndex = 24;
|
||||
tableAMD.Visible = false;
|
||||
//
|
||||
// buttonAutoTDP
|
||||
//
|
||||
buttonAutoTDP.Activated = false;
|
||||
buttonAutoTDP.BackColor = SystemColors.ControlLightLight;
|
||||
buttonAutoTDP.BorderColor = Color.Transparent;
|
||||
buttonAutoTDP.BorderRadius = 5;
|
||||
buttonAutoTDP.Dock = DockStyle.Fill;
|
||||
buttonAutoTDP.FlatAppearance.BorderSize = 0;
|
||||
buttonAutoTDP.FlatStyle = FlatStyle.Flat;
|
||||
buttonAutoTDP.ForeColor = SystemColors.ControlText;
|
||||
buttonAutoTDP.Image = Properties.Resources.icons8_gauge_32;
|
||||
buttonAutoTDP.ImageAlign = ContentAlignment.MiddleRight;
|
||||
buttonAutoTDP.Location = new Point(528, 4);
|
||||
buttonAutoTDP.Margin = new Padding(4);
|
||||
buttonAutoTDP.Name = "buttonAutoTDP";
|
||||
buttonAutoTDP.Secondary = false;
|
||||
buttonAutoTDP.Size = new Size(255, 72);
|
||||
buttonAutoTDP.TabIndex = 13;
|
||||
buttonAutoTDP.Text = "AutoTDP";
|
||||
buttonAutoTDP.TextImageRelation = TextImageRelation.ImageBeforeText;
|
||||
buttonAutoTDP.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// buttonOverlay
|
||||
//
|
||||
buttonOverlay.Activated = false;
|
||||
@@ -1077,6 +1100,7 @@ namespace GHelper
|
||||
tableScreen.Name = "tableScreen";
|
||||
tableScreen.RowCount = 1;
|
||||
tableScreen.RowStyles.Add(new RowStyle(SizeType.Absolute, 80F));
|
||||
tableScreen.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
|
||||
tableScreen.Size = new Size(787, 100);
|
||||
tableScreen.TabIndex = 23;
|
||||
//
|
||||
@@ -1229,6 +1253,7 @@ namespace GHelper
|
||||
panelKeyboard.AccessibleRole = AccessibleRole.Grouping;
|
||||
panelKeyboard.AutoSize = true;
|
||||
panelKeyboard.AutoSizeMode = AutoSizeMode.GrowAndShrink;
|
||||
panelKeyboard.Controls.Add(labelDynamicLighting);
|
||||
panelKeyboard.Controls.Add(tableLayoutKeyboard);
|
||||
panelKeyboard.Controls.Add(panelKeyboardTitle);
|
||||
panelKeyboard.Dock = DockStyle.Top;
|
||||
@@ -1236,10 +1261,25 @@ namespace GHelper
|
||||
panelKeyboard.Margin = new Padding(0);
|
||||
panelKeyboard.Name = "panelKeyboard";
|
||||
panelKeyboard.Padding = new Padding(20);
|
||||
panelKeyboard.Size = new Size(827, 132);
|
||||
panelKeyboard.Size = new Size(827, 172);
|
||||
panelKeyboard.TabIndex = 4;
|
||||
panelKeyboard.TabStop = true;
|
||||
//
|
||||
// labelDynamicLighting
|
||||
//
|
||||
labelDynamicLighting.Cursor = Cursors.Hand;
|
||||
labelDynamicLighting.Dock = DockStyle.Top;
|
||||
labelDynamicLighting.Font = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
||||
labelDynamicLighting.ForeColor = SystemColors.GrayText;
|
||||
labelDynamicLighting.Location = new Point(20, 112);
|
||||
labelDynamicLighting.Margin = new Padding(4, 0, 4, 0);
|
||||
labelDynamicLighting.Name = "labelDynamicLighting";
|
||||
labelDynamicLighting.Padding = new Padding(4);
|
||||
labelDynamicLighting.Size = new Size(787, 40);
|
||||
labelDynamicLighting.TabIndex = 43;
|
||||
labelDynamicLighting.Text = "Please disable Windows > Dynamic Lighting";
|
||||
labelDynamicLighting.Visible = false;
|
||||
//
|
||||
// tableLayoutKeyboard
|
||||
//
|
||||
tableLayoutKeyboard.AutoSize = true;
|
||||
@@ -1416,7 +1456,7 @@ namespace GHelper
|
||||
panelVersion.Controls.Add(labelCharge);
|
||||
panelVersion.Controls.Add(checkStartup);
|
||||
panelVersion.Dock = DockStyle.Top;
|
||||
panelVersion.Location = new Point(11, 1845);
|
||||
panelVersion.Location = new Point(11, 1885);
|
||||
panelVersion.Margin = new Padding(4);
|
||||
panelVersion.Name = "panelVersion";
|
||||
panelVersion.Size = new Size(827, 56);
|
||||
@@ -1442,7 +1482,7 @@ namespace GHelper
|
||||
panelPeripherals.Controls.Add(tableLayoutPeripherals);
|
||||
panelPeripherals.Controls.Add(panelPeripheralsTile);
|
||||
panelPeripherals.Dock = DockStyle.Top;
|
||||
panelPeripherals.Location = new Point(11, 1526);
|
||||
panelPeripherals.Location = new Point(11, 1566);
|
||||
panelPeripherals.Margin = new Padding(0);
|
||||
panelPeripherals.Name = "panelPeripherals";
|
||||
panelPeripherals.Padding = new Padding(20, 20, 20, 11);
|
||||
@@ -1895,28 +1935,6 @@ namespace GHelper
|
||||
labelGammaTitle.TabIndex = 37;
|
||||
labelGammaTitle.Text = "Flicker-free Dimming";
|
||||
//
|
||||
// buttonAutoTDP
|
||||
//
|
||||
buttonAutoTDP.Activated = false;
|
||||
buttonAutoTDP.BackColor = SystemColors.ControlLightLight;
|
||||
buttonAutoTDP.BorderColor = Color.Transparent;
|
||||
buttonAutoTDP.BorderRadius = 5;
|
||||
buttonAutoTDP.Dock = DockStyle.Fill;
|
||||
buttonAutoTDP.FlatAppearance.BorderSize = 0;
|
||||
buttonAutoTDP.FlatStyle = FlatStyle.Flat;
|
||||
buttonAutoTDP.ForeColor = SystemColors.ControlText;
|
||||
buttonAutoTDP.Image = Properties.Resources.icons8_gauge_32;
|
||||
buttonAutoTDP.ImageAlign = ContentAlignment.MiddleRight;
|
||||
buttonAutoTDP.Location = new Point(528, 4);
|
||||
buttonAutoTDP.Margin = new Padding(4);
|
||||
buttonAutoTDP.Name = "buttonAutoTDP";
|
||||
buttonAutoTDP.Secondary = false;
|
||||
buttonAutoTDP.Size = new Size(255, 72);
|
||||
buttonAutoTDP.TabIndex = 13;
|
||||
buttonAutoTDP.Text = "AutoTDP";
|
||||
buttonAutoTDP.TextImageRelation = TextImageRelation.ImageBeforeText;
|
||||
buttonAutoTDP.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// SettingsForm
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(192F, 192F);
|
||||
@@ -2120,5 +2138,6 @@ namespace GHelper
|
||||
private Label labelVisual;
|
||||
private RButton buttonFHD;
|
||||
private RButton buttonAutoTDP;
|
||||
private Label labelDynamicLighting;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace GHelper
|
||||
|
||||
public GPUModeControl gpuControl;
|
||||
public AllyControl allyControl;
|
||||
ScreenControl screenControl = new ScreenControl();
|
||||
ScreenControl screenControl = new ScreenControl();
|
||||
AutoUpdateControl updateControl;
|
||||
|
||||
AsusMouseSettings? mouseSettings;
|
||||
@@ -224,6 +224,7 @@ namespace GHelper
|
||||
|
||||
sliderBattery.MouseUp += SliderBattery_MouseUp;
|
||||
sliderBattery.KeyUp += SliderBattery_KeyUp;
|
||||
sliderBattery.ValueChanged += SliderBattery_ValueChanged;
|
||||
|
||||
Program.trayIcon.MouseMove += TrayIcon_MouseMove;
|
||||
|
||||
@@ -251,7 +252,7 @@ namespace GHelper
|
||||
|
||||
buttonFPS.Click += ButtonFPS_Click;
|
||||
buttonOverlay.Click += ButtonOverlay_Click;
|
||||
|
||||
|
||||
buttonAutoTDP.Click += ButtonAutoTDP_Click;
|
||||
buttonAutoTDP.BorderColor = colorTurbo;
|
||||
|
||||
@@ -268,15 +269,27 @@ namespace GHelper
|
||||
labelVisual.Click += LabelVisual_Click;
|
||||
labelCharge.Click += LabelCharge_Click;
|
||||
|
||||
labelDynamicLighting.Click += LabelDynamicLighting_Click;
|
||||
|
||||
panelPerformance.Focus();
|
||||
InitVisual();
|
||||
}
|
||||
|
||||
private void LabelDynamicLighting_Click(object? sender, EventArgs e)
|
||||
{
|
||||
DynamicLightingHelper.OpenSettings();
|
||||
}
|
||||
|
||||
private void ButtonFHD_Click(object? sender, EventArgs e)
|
||||
{
|
||||
screenControl.ToogleFHD();
|
||||
}
|
||||
|
||||
private void SliderBattery_ValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
VisualiseBatteryTitle(sliderBattery.Value);
|
||||
}
|
||||
|
||||
private void SliderBattery_KeyUp(object? sender, KeyEventArgs e)
|
||||
{
|
||||
BatteryControl.SetBatteryChargeLimit(sliderBattery.Value);
|
||||
@@ -319,7 +332,8 @@ namespace GHelper
|
||||
sliderGamma.ValueChanged += SliderGamma_ValueChanged;
|
||||
sliderGamma.MouseUp += SliderGamma_ValueChanged;
|
||||
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
labelGammaTitle.Text = Properties.Strings.VisualMode;
|
||||
}
|
||||
@@ -331,7 +345,8 @@ namespace GHelper
|
||||
{
|
||||
tableVisual.ColumnCount = 3;
|
||||
buttonInstallColor.Visible = false;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
// If it's possible to retrieve color profiles
|
||||
if (ColorProfileHelper.ProfileExists())
|
||||
@@ -391,7 +406,7 @@ namespace GHelper
|
||||
public void CycleVisualMode()
|
||||
{
|
||||
|
||||
if (comboVisual.Items.Count < 1) return ;
|
||||
if (comboVisual.Items.Count < 1) return;
|
||||
|
||||
if (comboVisual.SelectedIndex < comboVisual.Items.Count - 1)
|
||||
comboVisual.SelectedIndex += 1;
|
||||
@@ -409,14 +424,11 @@ namespace GHelper
|
||||
|
||||
private void ComboGamut_SelectedValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("gamut", (int)comboGamut.SelectedValue);
|
||||
VisualControl.SetGamut((int)comboGamut.SelectedValue);
|
||||
}
|
||||
|
||||
private void ComboVisual_SelectedValueChanged(object? sender, EventArgs e)
|
||||
{
|
||||
AppConfig.Set("visual", (int)comboVisual.SelectedValue);
|
||||
AppConfig.Set("color_temp", (int)comboColorTemp.SelectedValue);
|
||||
VisualControl.SetVisual((SplendidCommand)comboVisual.SelectedValue, (int)comboColorTemp.SelectedValue);
|
||||
}
|
||||
|
||||
@@ -797,7 +809,7 @@ namespace GHelper
|
||||
|
||||
private void ButtonFHD_MouseHover(object? sender, EventArgs e)
|
||||
{
|
||||
labelTipScreen.Text = "Switch to "+ ((buttonFHD.Text == "FHD") ? "UHD" : "FHD") + " Mode";
|
||||
labelTipScreen.Text = "Switch to " + ((buttonFHD.Text == "FHD") ? "UHD" : "FHD") + " Mode";
|
||||
}
|
||||
|
||||
private void Button120Hz_MouseHover(object? sender, EventArgs e)
|
||||
@@ -1074,21 +1086,26 @@ namespace GHelper
|
||||
});
|
||||
}
|
||||
|
||||
private void _VisualiseAura()
|
||||
{
|
||||
pictureColor.BackColor = Aura.Color1;
|
||||
pictureColor2.BackColor = Aura.Color2;
|
||||
pictureColor2.Visible = Aura.HasSecondColor();
|
||||
|
||||
if (AppConfig.IsDynamicLighting())
|
||||
{
|
||||
labelDynamicLighting.Visible = DynamicLightingHelper.IsEnabled();
|
||||
labelDynamicLighting.ForeColor = colorStandard;
|
||||
this.OnResize(null);
|
||||
}
|
||||
}
|
||||
|
||||
public void VisualiseAura()
|
||||
{
|
||||
if (InvokeRequired)
|
||||
Invoke(delegate
|
||||
{
|
||||
pictureColor.BackColor = Aura.Color1;
|
||||
pictureColor2.BackColor = Aura.Color2;
|
||||
pictureColor2.Visible = Aura.HasSecondColor();
|
||||
});
|
||||
Invoke(_VisualiseAura);
|
||||
else
|
||||
{
|
||||
pictureColor.BackColor = Aura.Color1;
|
||||
pictureColor2.BackColor = Aura.Color2;
|
||||
pictureColor2.Visible = Aura.HasSecondColor();
|
||||
}
|
||||
_VisualiseAura();
|
||||
}
|
||||
|
||||
public void InitMatrix()
|
||||
@@ -1269,7 +1286,8 @@ namespace GHelper
|
||||
labelVisual.Width = tableVisual.Width;
|
||||
labelVisual.Height = tableVisual.Height;
|
||||
labelVisual.Visible = true;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
labelVisual.Visible = false;
|
||||
}
|
||||
@@ -1296,6 +1314,8 @@ namespace GHelper
|
||||
if (updatesForm != null && updatesForm.Text != "") updatesForm.Close();
|
||||
if (matrixForm != null && matrixForm.Text != "") matrixForm.Close();
|
||||
if (handheldForm != null && handheldForm.Text != "") handheldForm.Close();
|
||||
if (mouseSettings != null && mouseSettings.Text != "") mouseSettings.Close();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1713,9 +1733,14 @@ namespace GHelper
|
||||
but.BackColor = but.Enabled ? Color.FromArgb(255, but.BackColor) : Color.FromArgb(100, but.BackColor);
|
||||
}
|
||||
|
||||
public void VisualiseBattery(int limit)
|
||||
public void VisualiseBatteryTitle(int limit)
|
||||
{
|
||||
labelBatteryTitle.Text = Properties.Strings.BatteryChargeLimit + ": " + limit.ToString() + "%";
|
||||
}
|
||||
|
||||
public void VisualiseBattery(int limit)
|
||||
{
|
||||
VisualiseBatteryTitle(limit);
|
||||
sliderBattery.Value = limit;
|
||||
|
||||
sliderBattery.AccessibleName = Properties.Strings.BatteryChargeLimit + ": " + limit.ToString() + "%";
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using GHelper.Gpu;
|
||||
using GHelper.Helpers;
|
||||
using GHelper.Input;
|
||||
using GHelper.Peripherals;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Runtime.InteropServices;
|
||||
@@ -83,7 +82,7 @@ namespace GHelper.USB
|
||||
static bool isACPI = AppConfig.IsTUF() || AppConfig.IsVivoZenbook() || AppConfig.IsProArt();
|
||||
static bool isStrix = AppConfig.IsStrix() && !AppConfig.IsNoDirectRGB();
|
||||
|
||||
static bool isStrix4Zone = AppConfig.IsStrixLimitedRGB();
|
||||
static bool isStrix4Zone = AppConfig.Is4ZoneRGB();
|
||||
static bool isStrixNumpad = AppConfig.IsStrixNumpad();
|
||||
|
||||
static public bool isSingleColor = false;
|
||||
@@ -184,7 +183,7 @@ namespace GHelper.USB
|
||||
return _modes;
|
||||
}
|
||||
|
||||
if (AppConfig.IsStrix() && !AppConfig.IsStrixLimitedRGB())
|
||||
if (AppConfig.IsStrix() && !AppConfig.Is4ZoneRGB())
|
||||
{
|
||||
return _modesStrix;
|
||||
}
|
||||
@@ -768,12 +767,6 @@ namespace GHelper.USB
|
||||
{
|
||||
if (isStrix) ApplyDirect(AmbientData.result, init);
|
||||
else ApplyDirect(AmbientData.result[0], init);
|
||||
|
||||
foreach (var mouse in PeripheralsProvider.ConnectedMice)
|
||||
{
|
||||
mouse.SetColor(AmbientData.result[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -60,14 +60,16 @@ namespace GHelper
|
||||
ClearTable(tableBios);
|
||||
ClearTable(tableDrivers);
|
||||
|
||||
string rogParam = AppConfig.IsROG() ? "&systemCode=rog" : "";
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDBIOS?website=global&model={model}&cpu={model}", 1, tableBios);
|
||||
DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDBIOS?website=global&model={model}&cpu={model}{rogParam}", 1, tableBios);
|
||||
});
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDDrivers?website=global&model={model}&cpu={model}&osid=52", 0, tableDrivers);
|
||||
DriversAsync($"https://rog.asus.com/support/webapi/product/GetPDDrivers?website=global&model={model}&cpu={model}&osid=52{rogParam}", 0, tableDrivers);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ Works with all popular models, such as ROG Zephyrus G14, G15, G16, M16, Flow X13
|
||||
- [Troubleshooting](https://github.com/seerge/g-helper/wiki/Troubleshooting)
|
||||
- [Power User Settings](https://github.com/seerge/g-helper/wiki/Power-user-settings)
|
||||
|
||||
### Support project : [:euro: Paypal EUR](https://www.paypal.com/donate/?hosted_button_id=4HMSHS4EBQWTA) | [💵 Paypal USD](https://www.paypal.com/donate/?hosted_button_id=SRM6QUX6ACXDY)
|
||||
|
||||
[](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
|
||||
|
||||
@@ -23,8 +22,8 @@ Works with all popular models, such as ROG Zephyrus G14, G15, G16, M16, Flow X13
|
||||
| [Josh Cravey](https://www.youtube.com/watch?v=hqe-PjuE-K8) | [cbutters Tech](https://www.youtube.com/watch?v=6aVdwJKZSSc) |
|
||||
|
||||
## 📰 Articles
|
||||
1. https://binaryfork.com/ghelper-armoury-crate-alternative-10216/
|
||||
2. https://www.digitaltrends.com/computing/g-helper-armoury-crate-alternative/
|
||||
1. https://www.digitaltrends.com/computing/g-helper-armoury-crate-alternative/
|
||||
2. https://binaryfork.com/ghelper-armoury-crate-alternative-10216/
|
||||
|
||||
## :gift: Advantages
|
||||
|
||||
@@ -44,7 +43,7 @@ Works with all popular models, such as ROG Zephyrus G14, G15, G16, M16, Flow X13
|
||||
4. Custom fan curve editor, power limits and turbo boost selection for every performance mode
|
||||
5. Anime Matrix or Slash Lighting control including animated GIFs, clock and Audio visualizer
|
||||
6. Backlight animation modes and colors
|
||||
7. Custom hotkeys (M-keys, FN+X keys)
|
||||
7. Hotkey handling
|
||||
8. Monitor CPU and GPU temperature, fan speeds and battery status
|
||||
9. Battery charge limit to preserve battery health
|
||||
10. NVidia GPU overclocking and undervolting
|
||||
@@ -95,6 +94,7 @@ Each BIOS mode is paired with matching Windows Power Mode. You can adjust this s
|
||||
- ROG Gladius III
|
||||
- ROG Gladius III Wireless
|
||||
- ROG Harpe Ace Aim Lab Edition
|
||||
- ROG Keris (P509)
|
||||
- ROG Keris Wireless
|
||||
- ROG Strix Carry (P508)
|
||||
- ROG Strix III Gladius III Aimpoint Wireless (P711)
|
||||
@@ -137,13 +137,6 @@ Huge thanks to [@IceStormNG](https://github.com/IceStormNG) 👑 for contributio
|
||||
- ``M + X`` - Screenshot
|
||||
- ``M + Right Stick Click`` - Controller Mode
|
||||
|
||||
------------------
|
||||
#### If you like the app you can make a Donation
|
||||
|
||||
| [Paypal in EUR](https://www.paypal.com/donate/?hosted_button_id=4HMSHS4EBQWTA) | [Paypal in USD](https://www.paypal.com/donate/?hosted_button_id=SRM6QUX6ACXDY) |
|
||||
| ------------------------------------------ | ----------------------------------------------- |
|
||||
| [](https://www.paypal.com/donate/?hosted_button_id=4HMSHS4EBQWTA) | [](https://www.paypal.com/donate/?hosted_button_id=SRM6QUX6ACXDY) |
|
||||
|
||||
------------------
|
||||
|
||||
### 🔖 Important Notice
|
||||
|
||||
Reference in New Issue
Block a user