mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Compare commits
19 Commits
v0.170
...
Peripheral
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6b2291586 | ||
|
|
c7d3b4ea3a | ||
|
|
a0c15e6732 | ||
|
|
6ab48b1540 | ||
|
|
5b383b2884 | ||
|
|
df56e2af23 | ||
|
|
a618866804 | ||
|
|
877feeab02 | ||
|
|
b697ed5a66 | ||
|
|
e642c550f9 | ||
|
|
660aae0f3e | ||
|
|
ed41766108 | ||
|
|
a43479dbba | ||
|
|
43c71b833d | ||
|
|
2948a29b71 | ||
|
|
8f2a13b1ad | ||
|
|
b75471a052 | ||
|
|
c8bd2a9c1c | ||
|
|
9eb853d8b2 |
@@ -353,10 +353,10 @@ namespace GHelper.Ally
|
|||||||
int power = (int)amdControl.GetGpuPower();
|
int power = (int)amdControl.GetGpuPower();
|
||||||
//Debug.WriteLine($"{power}: {fps}");
|
//Debug.WriteLine($"{power}: {fps}");
|
||||||
|
|
||||||
if (fps <= fpsLimit * 0.8) _upCount++;
|
if (fps <= Math.Min(fpsLimit * 0.9, fpsLimit - 4)) _upCount++;
|
||||||
else _upCount = 0;
|
else _upCount = 0;
|
||||||
|
|
||||||
if (fps >= fpsLimit * 0.90) _downCount++;
|
if (fps >= Math.Min(fpsLimit * 0.95, fpsLimit - 2)) _downCount++;
|
||||||
else _downCount = 0;
|
else _downCount = 0;
|
||||||
|
|
||||||
var tdp = GetTDP();
|
var tdp = GetTDP();
|
||||||
@@ -424,9 +424,15 @@ namespace GHelper.Ally
|
|||||||
switch (fpsLimit)
|
switch (fpsLimit)
|
||||||
{
|
{
|
||||||
case 30:
|
case 30:
|
||||||
|
fpsLimit = 40;
|
||||||
|
break;
|
||||||
|
case 40:
|
||||||
fpsLimit = 45;
|
fpsLimit = 45;
|
||||||
break;
|
break;
|
||||||
case 45:
|
case 45:
|
||||||
|
fpsLimit = 50;
|
||||||
|
break;
|
||||||
|
case 50:
|
||||||
fpsLimit = 60;
|
fpsLimit = 60;
|
||||||
break;
|
break;
|
||||||
case 60:
|
case 60:
|
||||||
|
|||||||
@@ -615,6 +615,11 @@ public static class AppConfig
|
|||||||
return Is("bw_icon");
|
return Is("bw_icon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool IsStopAC()
|
||||||
|
{
|
||||||
|
return IsAlly() || Is("stop_ac");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -159,7 +159,13 @@ namespace GHelper.Display
|
|||||||
AppConfig.Set("miniled", miniled);
|
AppConfig.Set("miniled", miniled);
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr = ScreenCCD.GetHDRStatus();
|
try
|
||||||
|
{
|
||||||
|
hdr = ScreenCCD.GetHDRStatus();
|
||||||
|
} catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.WriteLine(ex.Message);
|
||||||
|
}
|
||||||
|
|
||||||
bool screenEnabled = (frequency >= 0);
|
bool screenEnabled = (frequency >= 0);
|
||||||
|
|
||||||
|
|||||||
10
app/Extra.cs
10
app/Extra.cs
@@ -36,6 +36,7 @@ namespace GHelper
|
|||||||
{"brightness_down", Properties.Strings.BrightnessDown},
|
{"brightness_down", Properties.Strings.BrightnessDown},
|
||||||
{"brightness_up", Properties.Strings.BrightnessUp},
|
{"brightness_up", Properties.Strings.BrightnessUp},
|
||||||
{"visual", Properties.Strings.VisualMode},
|
{"visual", Properties.Strings.VisualMode},
|
||||||
|
{"touchscreen", Properties.Strings.ToggleTouchscreen },
|
||||||
{"ghelper", Properties.Strings.OpenGHelper},
|
{"ghelper", Properties.Strings.OpenGHelper},
|
||||||
{"custom", Properties.Strings.Custom}
|
{"custom", Properties.Strings.Custom}
|
||||||
};
|
};
|
||||||
@@ -398,7 +399,10 @@ namespace GHelper
|
|||||||
checkGpuApps.Checked = AppConfig.Is("kill_gpu_apps");
|
checkGpuApps.Checked = AppConfig.Is("kill_gpu_apps");
|
||||||
checkGpuApps.CheckedChanged += CheckGpuApps_CheckedChanged;
|
checkGpuApps.CheckedChanged += CheckGpuApps_CheckedChanged;
|
||||||
|
|
||||||
checkBootSound.Checked = (Program.acpi.DeviceGet(AsusACPI.BootSound) == 1);
|
int bootSound = Program.acpi.DeviceGet(AsusACPI.BootSound);
|
||||||
|
if (bootSound < 0 || bootSound > UInt16.MaxValue) bootSound = AppConfig.Get("boot_sound", 0);
|
||||||
|
|
||||||
|
checkBootSound.Checked = (bootSound == 1);
|
||||||
checkBootSound.CheckedChanged += CheckBootSound_CheckedChanged;
|
checkBootSound.CheckedChanged += CheckBootSound_CheckedChanged;
|
||||||
|
|
||||||
var statusLed = Program.acpi.DeviceGet(AsusACPI.StatusLed);
|
var statusLed = Program.acpi.DeviceGet(AsusACPI.StatusLed);
|
||||||
@@ -536,7 +540,9 @@ namespace GHelper
|
|||||||
|
|
||||||
private void CheckBootSound_CheckedChanged(object? sender, EventArgs e)
|
private void CheckBootSound_CheckedChanged(object? sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Program.acpi.DeviceSet(AsusACPI.BootSound, (checkBootSound.Checked ? 1 : 0), "BootSound");
|
int bootSound = checkBootSound.Checked ? 1 : 0;
|
||||||
|
Program.acpi.DeviceSet(AsusACPI.BootSound, bootSound, "BootSound");
|
||||||
|
AppConfig.Set("boot_sound", bootSound);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckGPUFix_CheckedChanged(object? sender, EventArgs e)
|
private void CheckGPUFix_CheckedChanged(object? sender, EventArgs e)
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ namespace GHelper.Helpers
|
|||||||
"ASUSLinkNear",
|
"ASUSLinkNear",
|
||||||
"ASUSLinkRemote",
|
"ASUSLinkRemote",
|
||||||
"ASUSSoftwareManager",
|
"ASUSSoftwareManager",
|
||||||
|
"ASUSLiveUpdateAgent",
|
||||||
"ASUSSwitch",
|
"ASUSSwitch",
|
||||||
"ASUSSystemAnalysis",
|
"ASUSSystemAnalysis",
|
||||||
"ASUSSystemDiagnosis",
|
"ASUSSystemDiagnosis",
|
||||||
@@ -21,11 +22,13 @@ namespace GHelper.Helpers
|
|||||||
|
|
||||||
static List<string> processesAC = new() {
|
static List<string> processesAC = new() {
|
||||||
"ArmouryCrateSE.Service",
|
"ArmouryCrateSE.Service",
|
||||||
|
"ArmouryCrate.Service",
|
||||||
"LightingService",
|
"LightingService",
|
||||||
};
|
};
|
||||||
|
|
||||||
static List<string> servicesAC = new() {
|
static List<string> servicesAC = new() {
|
||||||
"ArmouryCrateSEService",
|
"ArmouryCrateSEService",
|
||||||
|
"ArmouryCrateService",
|
||||||
"LightingService",
|
"LightingService",
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -48,7 +51,7 @@ namespace GHelper.Helpers
|
|||||||
if (Process.GetProcessesByName(service).Count() > 0) count++;
|
if (Process.GetProcessesByName(service).Count() > 0) count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsStopAC())
|
||||||
foreach (string service in processesAC)
|
foreach (string service in processesAC)
|
||||||
{
|
{
|
||||||
if (Process.GetProcessesByName(service).Count() > 0)
|
if (Process.GetProcessesByName(service).Count() > 0)
|
||||||
@@ -69,7 +72,7 @@ namespace GHelper.Helpers
|
|||||||
ProcessHelper.StopDisableService(service);
|
ProcessHelper.StopDisableService(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsStopAC())
|
||||||
{
|
{
|
||||||
foreach (string service in servicesAC)
|
foreach (string service in servicesAC)
|
||||||
{
|
{
|
||||||
@@ -87,7 +90,7 @@ namespace GHelper.Helpers
|
|||||||
ProcessHelper.StartEnableService(service);
|
ProcessHelper.StartEnableService(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (AppConfig.IsAlly())
|
if (AppConfig.IsStopAC())
|
||||||
{
|
{
|
||||||
foreach (string service in servicesAC)
|
foreach (string service in servicesAC)
|
||||||
{
|
{
|
||||||
|
|||||||
23
app/Helpers/TouchscreenHelper.cs
Normal file
23
app/Helpers/TouchscreenHelper.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using GHelper.Helpers;
|
||||||
|
|
||||||
|
public static class TouchscreenHelper
|
||||||
|
{
|
||||||
|
public static bool? ToggleTouchscreen()
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ProcessHelper.RunAsAdmin();
|
||||||
|
|
||||||
|
var status = !ProcessHelper.RunCMD("powershell", "(Get-PnpDevice -FriendlyName '*touch*screen*').Status").Contains("OK");
|
||||||
|
ProcessHelper.RunCMD("powershell", (status ? "Enable-PnpDevice" : "Disable-PnpDevice") + " -InstanceId (Get-PnpDevice -FriendlyName '*touch*screen*').InstanceId -Confirm:$false");
|
||||||
|
|
||||||
|
return status;
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.WriteLine($"Can't toggle touchscreen: {ex.Message}");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -544,6 +544,11 @@ namespace GHelper.Input
|
|||||||
case "controller":
|
case "controller":
|
||||||
Program.settingsForm.BeginInvoke(Program.settingsForm.allyControl.ToggleModeHotkey);
|
Program.settingsForm.BeginInvoke(Program.settingsForm.allyControl.ToggleModeHotkey);
|
||||||
break;
|
break;
|
||||||
|
case "touchscreen":
|
||||||
|
var touchscreenStatus = TouchscreenHelper.ToggleTouchscreen();
|
||||||
|
if (touchscreenStatus is not null)
|
||||||
|
Program.toast.RunToast(Properties.Strings.Touchscreen + " " + ((bool)touchscreenStatus ? Properties.Strings.On : Properties.Strings.Off), ToastIcon.Touchpad);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using GHelper.AnimeMatrix.Communication;
|
using GHelper.AnimeMatrix.Communication;
|
||||||
using GHelper.AnimeMatrix.Communication.Platform;
|
using GHelper.AnimeMatrix.Communication.Platform;
|
||||||
|
using GHelper.Input;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
@@ -1744,6 +1745,17 @@ 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)
|
public void SetLightingSetting(LightingSetting lightingSetting, LightingZone zone)
|
||||||
{
|
{
|
||||||
if (!HasRGB() || lightingSetting is null)
|
if (!HasRGB() || lightingSetting is null)
|
||||||
|
|||||||
18
app/Properties/Strings.Designer.cs
generated
18
app/Properties/Strings.Designer.cs
generated
@@ -1925,6 +1925,24 @@ namespace GHelper.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Toggle Touchscreen.
|
||||||
|
/// </summary>
|
||||||
|
internal static string ToggleTouchscreen {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("ToggleTouchscreen", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to .
|
||||||
|
/// </summary>
|
||||||
|
internal static string Touchscreen {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("Touchscreen", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to Turbo.
|
/// Looks up a localized string similar to Turbo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -124,10 +124,10 @@
|
|||||||
<value>Tidak dapat terhubung ke ASUS ACPI. tanpanya aplikasi tidak dapat berfungsi. Cobalah untuk menginstal Asus System Control Interface</value>
|
<value>Tidak dapat terhubung ke ASUS ACPI. tanpanya aplikasi tidak dapat berfungsi. Cobalah untuk menginstal Asus System Control Interface</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AlertAPUMemoryRestart" xml:space="preserve">
|
<data name="AlertAPUMemoryRestart" xml:space="preserve">
|
||||||
<value>Restart your device to apply changes</value>
|
<value>Muat ulang perangkat anda untuk menerapkan perubahan</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AlertAPUMemoryRestartTitle" xml:space="preserve">
|
<data name="AlertAPUMemoryRestartTitle" xml:space="preserve">
|
||||||
<value>Restart now?</value>
|
<value>Mulai ulang sekarang?</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="AlertDGPU" xml:space="preserve">
|
<data name="AlertDGPU" xml:space="preserve">
|
||||||
<value>Tampaknya GPU sedang digunakan intensif, nonaktifkan?</value>
|
<value>Tampaknya GPU sedang digunakan intensif, nonaktifkan?</value>
|
||||||
@@ -250,16 +250,16 @@
|
|||||||
<value>Bangun</value>
|
<value>Bangun</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightLow" xml:space="preserve">
|
<data name="BacklightLow" xml:space="preserve">
|
||||||
<value>Low</value>
|
<value>Lemah</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightMax" xml:space="preserve">
|
<data name="BacklightMax" xml:space="preserve">
|
||||||
<value>Max</value>
|
<value>Kuat</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightMid" xml:space="preserve">
|
<data name="BacklightMid" xml:space="preserve">
|
||||||
<value>Mid</value>
|
<value>Sedang</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightOff" xml:space="preserve">
|
<data name="BacklightOff" xml:space="preserve">
|
||||||
<value>Off</value>
|
<value>Mati</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightTimeout" xml:space="preserve">
|
<data name="BacklightTimeout" xml:space="preserve">
|
||||||
<value>Waktu tunggu dicolokan / menggunakan baterai (0 - Hidup)</value>
|
<value>Waktu tunggu dicolokan / menggunakan baterai (0 - Hidup)</value>
|
||||||
@@ -289,10 +289,10 @@
|
|||||||
<value>Binding</value>
|
<value>Binding</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BindingPrimary" xml:space="preserve">
|
<data name="BindingPrimary" xml:space="preserve">
|
||||||
<value>Primary</value>
|
<value>Utama</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BindingSecondary" xml:space="preserve">
|
<data name="BindingSecondary" xml:space="preserve">
|
||||||
<value>Secondary</value>
|
<value>Sekunder</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||||
<value>Pembaruan BIOS dan Driver</value>
|
<value>Pembaruan BIOS dan Driver</value>
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
<value>Warna</value>
|
<value>Warna</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Contrast" xml:space="preserve">
|
<data name="Contrast" xml:space="preserve">
|
||||||
<value>Contrast</value>
|
<value>Kontras</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Controller" xml:space="preserve">
|
<data name="Controller" xml:space="preserve">
|
||||||
<value>Controller</value>
|
<value>Controller</value>
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
<value>Nonaktifkan screen overdrive</value>
|
<value>Nonaktifkan screen overdrive</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Discharging" xml:space="preserve">
|
<data name="Discharging" xml:space="preserve">
|
||||||
<value>Discharging</value>
|
<value>Tidak mengisi</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="DownloadColorProfiles" xml:space="preserve">
|
<data name="DownloadColorProfiles" xml:space="preserve">
|
||||||
<value>Download Color Profiles</value>
|
<value>Download Color Profiles</value>
|
||||||
@@ -384,7 +384,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Pengaturan Energi</value>
|
<value>Pengaturan Energi</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Export" xml:space="preserve">
|
<data name="Export" xml:space="preserve">
|
||||||
<value>Export Profile</value>
|
<value>Ekspor Profil</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Extra" xml:space="preserve">
|
<data name="Extra" xml:space="preserve">
|
||||||
<value>Ekstra</value>
|
<value>Ekstra</value>
|
||||||
@@ -471,10 +471,10 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Tinggi</value>
|
<value>Tinggi</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="ImageRotation" xml:space="preserve">
|
<data name="ImageRotation" xml:space="preserve">
|
||||||
<value>Image Rotation</value>
|
<value>Rotasi Gambar</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Import" xml:space="preserve">
|
<data name="Import" xml:space="preserve">
|
||||||
<value>Import Profile</value>
|
<value>Impor Profil</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="KeyBindings" xml:space="preserve">
|
<data name="KeyBindings" xml:space="preserve">
|
||||||
<value>Pintasan Keyboard</value>
|
<value>Pintasan Keyboard</value>
|
||||||
@@ -507,7 +507,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Lighting</value>
|
<value>Lighting</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="LockScreen" xml:space="preserve">
|
<data name="LockScreen" xml:space="preserve">
|
||||||
<value>Lock Screen</value>
|
<value>Layar Kunci</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Logo" xml:space="preserve">
|
<data name="Logo" xml:space="preserve">
|
||||||
<value>Logo</value>
|
<value>Logo</value>
|
||||||
@@ -591,7 +591,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Multi Zone Strong</value>
|
<value>Multi Zone Strong</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Muted" xml:space="preserve">
|
<data name="Muted" xml:space="preserve">
|
||||||
<value>Muted</value>
|
<value>Di Bisukan</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="MuteMic" xml:space="preserve">
|
<data name="MuteMic" xml:space="preserve">
|
||||||
<value>Bisukan Mic</value>
|
<value>Bisukan Mic</value>
|
||||||
@@ -609,10 +609,10 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Tidak Tersambung</value>
|
<value>Tidak Tersambung</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Off" xml:space="preserve">
|
<data name="Off" xml:space="preserve">
|
||||||
<value>Off</value>
|
<value>Mati</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="On" xml:space="preserve">
|
<data name="On" xml:space="preserve">
|
||||||
<value>On</value>
|
<value>Hidup</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="OneZone" xml:space="preserve">
|
<data name="OneZone" xml:space="preserve">
|
||||||
<value>One Zone</value>
|
<value>One Zone</value>
|
||||||
@@ -759,7 +759,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Undervolting adalah fitur eksperimental dan berisiko. Jika nilai yang diterapkan terlalu rendah untuk perangkat keras Anda, ini dapat menjadi tidak stabil, mati mendadak, atau menyebabkan kerusakan data. Jika Anda ingin mencobanya, mulailah dengan nilai kecil terlebih dahulu, klik Terapkan, dan uji apa yang cocok untuk Anda.</value>
|
<value>Undervolting adalah fitur eksperimental dan berisiko. Jika nilai yang diterapkan terlalu rendah untuk perangkat keras Anda, ini dapat menjadi tidak stabil, mati mendadak, atau menyebabkan kerusakan data. Jika Anda ingin mencobanya, mulailah dengan nilai kecil terlebih dahulu, klik Terapkan, dan uji apa yang cocok untuk Anda.</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Unmuted" xml:space="preserve">
|
<data name="Unmuted" xml:space="preserve">
|
||||||
<value>Unmuted</value>
|
<value>Bunyikan</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Updates" xml:space="preserve">
|
<data name="Updates" xml:space="preserve">
|
||||||
<value>Pembaruan</value>
|
<value>Pembaruan</value>
|
||||||
@@ -768,16 +768,16 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Versi</value>
|
<value>Versi</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="VibrationStrength" xml:space="preserve">
|
<data name="VibrationStrength" xml:space="preserve">
|
||||||
<value>Vibration Strength</value>
|
<value>Kekuatan Getaran</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="VisualMode" xml:space="preserve">
|
<data name="VisualMode" xml:space="preserve">
|
||||||
<value>Visual Mode</value>
|
<value>Mode Visual</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="VisualModesHDR" xml:space="preserve">
|
<data name="VisualModesHDR" xml:space="preserve">
|
||||||
<value>Visual Modes are not available when HDR is active</value>
|
<value>Mode Visual tidak tersedia saat HDR aktif</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="VisualModesScreen" xml:space="preserve">
|
<data name="VisualModesScreen" xml:space="preserve">
|
||||||
<value>Visual Modes are not available when laptop screen is off</value>
|
<value>Mode Visual tidak tersedia saat layar laptop mati</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="VolumeDown" xml:space="preserve">
|
<data name="VolumeDown" xml:space="preserve">
|
||||||
<value>Volume Turun</value>
|
<value>Volume Turun</value>
|
||||||
@@ -792,6 +792,6 @@ Apakah Anda masih ingin melanjutkan?</value>
|
|||||||
<value>Jaga agar jendela aplikasi selalu di atas</value>
|
<value>Jaga agar jendela aplikasi selalu di atas</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Zoom" xml:space="preserve">
|
<data name="Zoom" xml:space="preserve">
|
||||||
<value>Zoom</value>
|
<value>Perbesar</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
<value>배터리 사용 중에만 60Hz 설정</value>
|
<value>배터리 사용 중에만 60Hz 설정</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Awake" xml:space="preserve">
|
<data name="Awake" xml:space="preserve">
|
||||||
<value>절전 모드 해제</value>
|
<value>활성</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="BacklightLow" xml:space="preserve">
|
<data name="BacklightLow" xml:space="preserve">
|
||||||
<value>낮음</value>
|
<value>낮음</value>
|
||||||
@@ -693,13 +693,13 @@
|
|||||||
<value>Screenpad 밝기 증가</value>
|
<value>Screenpad 밝기 증가</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Shutdown" xml:space="preserve">
|
<data name="Shutdown" xml:space="preserve">
|
||||||
<value>시스템 종료</value>
|
<value>종료</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Silent" xml:space="preserve">
|
<data name="Silent" xml:space="preserve">
|
||||||
<value>조용</value>
|
<value>조용</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Sleep" xml:space="preserve">
|
<data name="Sleep" xml:space="preserve">
|
||||||
<value>절전 모드</value>
|
<value>절전</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="StandardGPUTooltip" xml:space="preserve">
|
<data name="StandardGPUTooltip" xml:space="preserve">
|
||||||
<value>Standard 모드에서 dGPU 켜기</value>
|
<value>Standard 모드에서 dGPU 켜기</value>
|
||||||
|
|||||||
@@ -740,6 +740,12 @@ Do you still want to continue?</value>
|
|||||||
<data name="ToggleScreen" xml:space="preserve">
|
<data name="ToggleScreen" xml:space="preserve">
|
||||||
<value>Toggle Screen</value>
|
<value>Toggle Screen</value>
|
||||||
</data>
|
</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">
|
<data name="Turbo" xml:space="preserve">
|
||||||
<value>Turbo</value>
|
<value>Turbo</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using GHelper.Gpu;
|
using GHelper.Gpu;
|
||||||
using GHelper.Helpers;
|
using GHelper.Helpers;
|
||||||
using GHelper.Input;
|
using GHelper.Input;
|
||||||
|
using GHelper.Peripherals;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
using System.Drawing.Imaging;
|
using System.Drawing.Imaging;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
@@ -767,6 +768,12 @@ namespace GHelper.USB
|
|||||||
{
|
{
|
||||||
if (isStrix) ApplyDirect(AmbientData.result, init);
|
if (isStrix) ApplyDirect(AmbientData.result, init);
|
||||||
else ApplyDirect(AmbientData.result[0], init);
|
else ApplyDirect(AmbientData.result[0], init);
|
||||||
|
|
||||||
|
foreach (var mouse in PeripheralsProvider.ConnectedMice)
|
||||||
|
{
|
||||||
|
mouse.SetColor(AmbientData.result[0]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
3
app/Updates.Designer.cs
generated
3
app/Updates.Designer.cs
generated
@@ -30,6 +30,7 @@ namespace GHelper
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
|
components = new System.ComponentModel.Container();
|
||||||
tableBios = new TableLayoutPanel();
|
tableBios = new TableLayoutPanel();
|
||||||
labelBIOS = new Label();
|
labelBIOS = new Label();
|
||||||
pictureBios = new PictureBox();
|
pictureBios = new PictureBox();
|
||||||
@@ -47,6 +48,7 @@ namespace GHelper
|
|||||||
labelLegendGray = new Label();
|
labelLegendGray = new Label();
|
||||||
labelLegendRed = new Label();
|
labelLegendRed = new Label();
|
||||||
labelLegend = new Label();
|
labelLegend = new Label();
|
||||||
|
toolTip = new ToolTip(components);
|
||||||
((System.ComponentModel.ISupportInitialize)pictureBios).BeginInit();
|
((System.ComponentModel.ISupportInitialize)pictureBios).BeginInit();
|
||||||
panelBiosTitle.SuspendLayout();
|
panelBiosTitle.SuspendLayout();
|
||||||
panelBios.SuspendLayout();
|
panelBios.SuspendLayout();
|
||||||
@@ -339,5 +341,6 @@ namespace GHelper
|
|||||||
private Label labelLegendRed;
|
private Label labelLegendRed;
|
||||||
private Label labelLegendGray;
|
private Label labelLegendGray;
|
||||||
private Label labelLegendGreen;
|
private Label labelLegendGreen;
|
||||||
|
private ToolTip toolTip;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -153,6 +153,7 @@ namespace GHelper
|
|||||||
table.Controls.Add(new Label { Text = driver.date, Anchor = AnchorStyles.Left, Dock = DockStyle.Fill, Padding = new Padding(5, 5, 5, 5) }, 2, table.RowCount);
|
table.Controls.Add(new Label { Text = driver.date, Anchor = AnchorStyles.Left, Dock = DockStyle.Fill, Padding = new Padding(5, 5, 5, 5) }, 2, table.RowCount);
|
||||||
table.Controls.Add(versionLabel, 3, table.RowCount);
|
table.Controls.Add(versionLabel, 3, table.RowCount);
|
||||||
table.RowCount++;
|
table.RowCount++;
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -166,11 +167,13 @@ namespace GHelper
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void _VisualiseNewDriver(int position, int newer, TableLayoutPanel table)
|
private void _VisualiseNewDriver(int position, int newer, string tip, TableLayoutPanel table)
|
||||||
{
|
{
|
||||||
var label = table.GetControlFromPosition(3, position) as LinkLabel;
|
var label = table.GetControlFromPosition(3, position) as LinkLabel;
|
||||||
if (label != null)
|
if (label != null)
|
||||||
{
|
{
|
||||||
|
toolTip.SetToolTip(label, tip);
|
||||||
|
|
||||||
if (newer == DRIVER_NEWER)
|
if (newer == DRIVER_NEWER)
|
||||||
{
|
{
|
||||||
label.AccessibleName = label.AccessibleName + Properties.Strings.NewUpdates;
|
label.AccessibleName = label.AccessibleName + Properties.Strings.NewUpdates;
|
||||||
@@ -183,18 +186,18 @@ namespace GHelper
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void VisualiseNewDriver(int position, int newer, TableLayoutPanel table)
|
public void VisualiseNewDriver(int position, int newer, string tip, TableLayoutPanel table)
|
||||||
{
|
{
|
||||||
if (InvokeRequired)
|
if (InvokeRequired)
|
||||||
{
|
{
|
||||||
Invoke(delegate
|
Invoke(delegate
|
||||||
{
|
{
|
||||||
_VisualiseNewDriver(position, newer, table);
|
_VisualiseNewDriver(position, newer, tip, table);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_VisualiseNewDriver(position, newer, table);
|
_VisualiseNewDriver(position, newer, tip, table);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -300,6 +303,8 @@ namespace GHelper
|
|||||||
foreach (var driver in drivers)
|
foreach (var driver in drivers)
|
||||||
{
|
{
|
||||||
int newer = DRIVER_NOT_FOUND;
|
int newer = DRIVER_NOT_FOUND;
|
||||||
|
string tip = driver.version;
|
||||||
|
|
||||||
if (type == 0 && driver.hardwares.ToString().Length > 0)
|
if (type == 0 && driver.hardwares.ToString().Length > 0)
|
||||||
for (int k = 0; k < driver.hardwares.GetArrayLength(); k++)
|
for (int k = 0; k < driver.hardwares.GetArrayLength(); k++)
|
||||||
{
|
{
|
||||||
@@ -310,14 +315,18 @@ namespace GHelper
|
|||||||
{
|
{
|
||||||
newer = Math.Min(newer, new Version(driver.version).CompareTo(new Version(localVersion)));
|
newer = Math.Min(newer, new Version(driver.version).CompareTo(new Version(localVersion)));
|
||||||
Logger.WriteLine(driver.title + " " + deviceID + " " + driver.version + " vs " + localVersion + " = " + newer);
|
Logger.WriteLine(driver.title + " " + deviceID + " " + driver.version + " vs " + localVersion + " = " + newer);
|
||||||
|
tip = "Download: " + driver.version + "\n" + "Installed: " + localVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type == 1)
|
if (type == 1)
|
||||||
|
{
|
||||||
newer = Int32.Parse(driver.version) > Int32.Parse(bios) ? 1 : -1;
|
newer = Int32.Parse(driver.version) > Int32.Parse(bios) ? 1 : -1;
|
||||||
|
tip = "Download: " + driver.version + "\n" + "Installed: " + bios;
|
||||||
|
}
|
||||||
|
|
||||||
VisualiseNewDriver(count, newer, table);
|
VisualiseNewDriver(count, newer, tip, table);
|
||||||
|
|
||||||
if (newer == DRIVER_NEWER)
|
if (newer == DRIVER_NEWER)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -117,4 +117,7 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>17, 17</value>
|
||||||
|
</metadata>
|
||||||
</root>
|
</root>
|
||||||
@@ -13,7 +13,7 @@ Works with all popular models, such as ROG Zephyrus G14, G15, G16, M16, Flow X13
|
|||||||
- [Troubleshooting](https://github.com/seerge/g-helper/wiki/Troubleshooting)
|
- [Troubleshooting](https://github.com/seerge/g-helper/wiki/Troubleshooting)
|
||||||
- [Power User Settings](https://github.com/seerge/g-helper/wiki/Power-user-settings)
|
- [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) | [🪙 Stripe](https://buy.stripe.com/00gaFJ9Lf79v7WobII)
|
### 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)
|
[](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
|
||||||
|
|
||||||
@@ -115,6 +115,7 @@ Huge thanks to [@IceStormNG](https://github.com/IceStormNG) 👑 for contributio
|
|||||||
- ``Ctrl + M1 / M2`` - Screen brightness Down / Up
|
- ``Ctrl + M1 / M2`` - Screen brightness Down / Up
|
||||||
- ``Shift + M1 / M2`` - Backlight brightness Down / Up
|
- ``Shift + M1 / M2`` - Backlight brightness Down / Up
|
||||||
- ``Fn + C`` - Fn-Lock
|
- ``Fn + C`` - Fn-Lock
|
||||||
|
- ``Fn + Ctrl + F7 / F8`` - Flicker-free dimming Down / Up
|
||||||
- ``Fn + Shift + F7 / F8`` - Matrix / Slash Lighting brightness Down / Up
|
- ``Fn + Shift + F7 / F8`` - Matrix / Slash Lighting brightness Down / Up
|
||||||
- ``Fn + Shift + F7 / F8`` - Screenpad brightness Down / Up
|
- ``Fn + Shift + F7 / F8`` - Screenpad brightness Down / Up
|
||||||
- ``Ctrl + Shift + F20`` - Mute Microphone
|
- ``Ctrl + Shift + F20`` - Mute Microphone
|
||||||
|
|||||||
@@ -257,31 +257,28 @@ G-helper是一个单文件的exe文件, 而且它不会向系统中安装任何
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# 安装指南
|
### 如何开始
|
||||||
|
|
||||||
1. 从 [**Releases Page**](https://github.com/seerge/g-helper/releases) 下载最新版本
|
1.下载[**最新版本**](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
|
||||||
2. 解压到你选择的文件夹
|
2. 解压到您选择的文件夹_(不要直接从zip运行exe,因为Windows会将其放入临时文件夹并在之后删除)_
|
||||||
3. 运行 **GHelper.exe**
|
3.运行**GHelper.exe**
|
||||||
|
|
||||||
### 运行要求(必须)
|
- 如果您在启动时收到来自 Windows Defender 的警告(Windows 保护了您的电脑)。
|
||||||
|
单击“更多信息”->“仍然运行”。
|
||||||
|
- 如果出现“在商店中搜索应用程序”对话框,则这是 Windows Defender 的一个错误。
|
||||||
|
右键单击 GHelper.exe -> 选择“属性” -> 选择“取消阻止复选框”
|
||||||
|
|
||||||
- Microsoft [.NET7](https://dotnet.microsoft.com/en-us/download)。 你可能已经安装了。 如果没有的话你可以从官方网站 [立即下载](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-7.0.202-windows-x64-installer)。
|
### 要求(强制)
|
||||||
- [Asus System Control Interface](https://dlcdnets.asus.com/pub/ASUS/nb/Image/CustomComponent/ASUSSystemControlInterfaceV3/ASUSSystemControlInterfaceV3.exe)。 如果你安装了或者安装过myASUS, 那么这个"驱动"应当已经安装(即使myASUS已经卸载)。 或者你可以手动下载安装。
|
|
||||||
|
|
||||||
### 推荐配置(可选)
|
- [Microsoft .NET 7](https://download.visualstudio.microsoft.com/download/pr/8091a826-e1c4-424a-b17b-5c10776cd3de/8957f21a279322d8fac9b542c6aba12e/dotnet-sdk-7.0.408-win-x64.exe)
|
||||||
|
- [华硕系统控制界面](https://dlcdnets.asus.com/pub/ASUS/nb/Image/CustomComponent/ASUSSystemControlInterfaceV3/ASUSSystemControlInterfaceV3.exe)
|
||||||
|
|
||||||
- 推荐保持 "Asus Optimization Service" 这个windows服务的运行, 它保证基本的键盘快捷键(比如屏幕或键盘亮度)能够使用。
|
### 建议(可选)
|
||||||
- 可选选项(!) 你可以通过在管理员模式下运行 [这个用于精简的.bat文件](https://raw.githubusercontent.com/seerge/g-helper/main/debloat.bat)来禁用/移除不必要的服务。如果要恢复这些服务,运行 [这个.bat文件](https://raw.githubusercontent.com/seerge/g-helper/main/bloat.bat)。
|
|
||||||
|
|
||||||
-这个应用不建议与Armoury Crate(及其服务)同时运行, 因为它们会调整相同的设置。你可以[使用ASUS官方提供的卸载工具卸载](https://dlcdnets.asus.com/pub/ASUS/mb/14Utilities/Armoury_Crate_Uninstall_Tool.zip?model=armoury%20crate)Armoury Crate。以防万一,你总是可以之后再安装回来。
|
- **不建议**将该应用程序与 Armoury Crate 服务结合使用,因为它们调整相同的设置。 您可以[使用AC自带的卸载工具卸载](https://dlcdnets.asus.com/pub/ASUS/mb/14Utilities/Armoury_Crate_Uninstall_Tool.zip?model=armoury%20crate)。 以防万一,您可以稍后再安装它。
|
||||||
|
- **不建议**运行“ASUS Smart Display Control”应用程序,因为它会尝试更改刷新率并与 g-helper 争夺相同的功能。 您可以安全地卸载它。
|
||||||
|
- 如果您不打算使用 MyASUS,您可以停止/禁用不必要的服务:转到应用程序中的 **Extra**,然后按 Asus 服务部分中的“停止”。 要重新启动/启用服务 - 单击“开始”。
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
为Asus ROG 幻14 2022 (配置了AMD核显和独显)设计和开发。但应当可能在幻14 2021和2020款, 幻15, X FLOW, 以及其他的ROG机型上使用相关且支持的功能。
|
|
||||||
|
|
||||||
我并没有microsoft证书来为这个应用签名,所以如果你在启动时看到windows defender的警告(windows 保护了你的电脑),点击“更多详情” -> 继续运行(不推荐)。作为可选选项,你也可以使用 visual studio自行编译然后运行这个项目 :)
|
|
||||||
|
|
||||||
设置文件保存在 ``%AppData%\GHelper``
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user