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();
|
||||
//Debug.WriteLine($"{power}: {fps}");
|
||||
|
||||
if (fps <= fpsLimit * 0.8) _upCount++;
|
||||
if (fps <= Math.Min(fpsLimit * 0.9, fpsLimit - 4)) _upCount++;
|
||||
else _upCount = 0;
|
||||
|
||||
if (fps >= fpsLimit * 0.90) _downCount++;
|
||||
if (fps >= Math.Min(fpsLimit * 0.95, fpsLimit - 2)) _downCount++;
|
||||
else _downCount = 0;
|
||||
|
||||
var tdp = GetTDP();
|
||||
@@ -424,9 +424,15 @@ namespace GHelper.Ally
|
||||
switch (fpsLimit)
|
||||
{
|
||||
case 30:
|
||||
fpsLimit = 40;
|
||||
break;
|
||||
case 40:
|
||||
fpsLimit = 45;
|
||||
break;
|
||||
case 45:
|
||||
fpsLimit = 50;
|
||||
break;
|
||||
case 50:
|
||||
fpsLimit = 60;
|
||||
break;
|
||||
case 60:
|
||||
|
||||
@@ -615,6 +615,11 @@ public static class AppConfig
|
||||
return Is("bw_icon");
|
||||
}
|
||||
|
||||
public static bool IsStopAC()
|
||||
{
|
||||
return IsAlly() || Is("stop_ac");
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -159,7 +159,13 @@ namespace GHelper.Display
|
||||
AppConfig.Set("miniled", miniled);
|
||||
}
|
||||
|
||||
hdr = ScreenCCD.GetHDRStatus();
|
||||
try
|
||||
{
|
||||
hdr = ScreenCCD.GetHDRStatus();
|
||||
} catch (Exception ex)
|
||||
{
|
||||
Logger.WriteLine(ex.Message);
|
||||
}
|
||||
|
||||
bool screenEnabled = (frequency >= 0);
|
||||
|
||||
|
||||
10
app/Extra.cs
10
app/Extra.cs
@@ -36,6 +36,7 @@ namespace GHelper
|
||||
{"brightness_down", Properties.Strings.BrightnessDown},
|
||||
{"brightness_up", Properties.Strings.BrightnessUp},
|
||||
{"visual", Properties.Strings.VisualMode},
|
||||
{"touchscreen", Properties.Strings.ToggleTouchscreen },
|
||||
{"ghelper", Properties.Strings.OpenGHelper},
|
||||
{"custom", Properties.Strings.Custom}
|
||||
};
|
||||
@@ -398,7 +399,10 @@ namespace GHelper
|
||||
checkGpuApps.Checked = AppConfig.Is("kill_gpu_apps");
|
||||
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;
|
||||
|
||||
var statusLed = Program.acpi.DeviceGet(AsusACPI.StatusLed);
|
||||
@@ -536,7 +540,9 @@ namespace GHelper
|
||||
|
||||
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)
|
||||
|
||||
@@ -13,6 +13,7 @@ namespace GHelper.Helpers
|
||||
"ASUSLinkNear",
|
||||
"ASUSLinkRemote",
|
||||
"ASUSSoftwareManager",
|
||||
"ASUSLiveUpdateAgent",
|
||||
"ASUSSwitch",
|
||||
"ASUSSystemAnalysis",
|
||||
"ASUSSystemDiagnosis",
|
||||
@@ -21,11 +22,13 @@ namespace GHelper.Helpers
|
||||
|
||||
static List<string> processesAC = new() {
|
||||
"ArmouryCrateSE.Service",
|
||||
"ArmouryCrate.Service",
|
||||
"LightingService",
|
||||
};
|
||||
|
||||
static List<string> servicesAC = new() {
|
||||
"ArmouryCrateSEService",
|
||||
"ArmouryCrateService",
|
||||
"LightingService",
|
||||
};
|
||||
|
||||
@@ -48,7 +51,7 @@ namespace GHelper.Helpers
|
||||
if (Process.GetProcessesByName(service).Count() > 0) count++;
|
||||
}
|
||||
|
||||
if (AppConfig.IsAlly())
|
||||
if (AppConfig.IsStopAC())
|
||||
foreach (string service in processesAC)
|
||||
{
|
||||
if (Process.GetProcessesByName(service).Count() > 0)
|
||||
@@ -69,7 +72,7 @@ namespace GHelper.Helpers
|
||||
ProcessHelper.StopDisableService(service);
|
||||
}
|
||||
|
||||
if (AppConfig.IsAlly())
|
||||
if (AppConfig.IsStopAC())
|
||||
{
|
||||
foreach (string service in servicesAC)
|
||||
{
|
||||
@@ -87,7 +90,7 @@ namespace GHelper.Helpers
|
||||
ProcessHelper.StartEnableService(service);
|
||||
}
|
||||
|
||||
if (AppConfig.IsAlly())
|
||||
if (AppConfig.IsStopAC())
|
||||
{
|
||||
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":
|
||||
Program.settingsForm.BeginInvoke(Program.settingsForm.allyControl.ToggleModeHotkey);
|
||||
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:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using GHelper.AnimeMatrix.Communication;
|
||||
using GHelper.AnimeMatrix.Communication.Platform;
|
||||
using GHelper.Input;
|
||||
using System.Runtime.CompilerServices;
|
||||
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)
|
||||
{
|
||||
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>
|
||||
/// Looks up a localized string similar to Turbo.
|
||||
/// </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>
|
||||
</data>
|
||||
<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 name="AlertAPUMemoryRestartTitle" xml:space="preserve">
|
||||
<value>Restart now?</value>
|
||||
<value>Mulai ulang sekarang?</value>
|
||||
</data>
|
||||
<data name="AlertDGPU" xml:space="preserve">
|
||||
<value>Tampaknya GPU sedang digunakan intensif, nonaktifkan?</value>
|
||||
@@ -250,16 +250,16 @@
|
||||
<value>Bangun</value>
|
||||
</data>
|
||||
<data name="BacklightLow" xml:space="preserve">
|
||||
<value>Low</value>
|
||||
<value>Lemah</value>
|
||||
</data>
|
||||
<data name="BacklightMax" xml:space="preserve">
|
||||
<value>Max</value>
|
||||
<value>Kuat</value>
|
||||
</data>
|
||||
<data name="BacklightMid" xml:space="preserve">
|
||||
<value>Mid</value>
|
||||
<value>Sedang</value>
|
||||
</data>
|
||||
<data name="BacklightOff" xml:space="preserve">
|
||||
<value>Off</value>
|
||||
<value>Mati</value>
|
||||
</data>
|
||||
<data name="BacklightTimeout" xml:space="preserve">
|
||||
<value>Waktu tunggu dicolokan / menggunakan baterai (0 - Hidup)</value>
|
||||
@@ -289,10 +289,10 @@
|
||||
<value>Binding</value>
|
||||
</data>
|
||||
<data name="BindingPrimary" xml:space="preserve">
|
||||
<value>Primary</value>
|
||||
<value>Utama</value>
|
||||
</data>
|
||||
<data name="BindingSecondary" xml:space="preserve">
|
||||
<value>Secondary</value>
|
||||
<value>Sekunder</value>
|
||||
</data>
|
||||
<data name="BiosAndDriverUpdates" xml:space="preserve">
|
||||
<value>Pembaruan BIOS dan Driver</value>
|
||||
@@ -325,7 +325,7 @@
|
||||
<value>Warna</value>
|
||||
</data>
|
||||
<data name="Contrast" xml:space="preserve">
|
||||
<value>Contrast</value>
|
||||
<value>Kontras</value>
|
||||
</data>
|
||||
<data name="Controller" xml:space="preserve">
|
||||
<value>Controller</value>
|
||||
@@ -352,7 +352,7 @@
|
||||
<value>Nonaktifkan screen overdrive</value>
|
||||
</data>
|
||||
<data name="Discharging" xml:space="preserve">
|
||||
<value>Discharging</value>
|
||||
<value>Tidak mengisi</value>
|
||||
</data>
|
||||
<data name="DownloadColorProfiles" xml:space="preserve">
|
||||
<value>Download Color Profiles</value>
|
||||
@@ -384,7 +384,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Pengaturan Energi</value>
|
||||
</data>
|
||||
<data name="Export" xml:space="preserve">
|
||||
<value>Export Profile</value>
|
||||
<value>Ekspor Profil</value>
|
||||
</data>
|
||||
<data name="Extra" xml:space="preserve">
|
||||
<value>Ekstra</value>
|
||||
@@ -471,10 +471,10 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Tinggi</value>
|
||||
</data>
|
||||
<data name="ImageRotation" xml:space="preserve">
|
||||
<value>Image Rotation</value>
|
||||
<value>Rotasi Gambar</value>
|
||||
</data>
|
||||
<data name="Import" xml:space="preserve">
|
||||
<value>Import Profile</value>
|
||||
<value>Impor Profil</value>
|
||||
</data>
|
||||
<data name="KeyBindings" xml:space="preserve">
|
||||
<value>Pintasan Keyboard</value>
|
||||
@@ -507,7 +507,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Lighting</value>
|
||||
</data>
|
||||
<data name="LockScreen" xml:space="preserve">
|
||||
<value>Lock Screen</value>
|
||||
<value>Layar Kunci</value>
|
||||
</data>
|
||||
<data name="Logo" xml:space="preserve">
|
||||
<value>Logo</value>
|
||||
@@ -591,7 +591,7 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Multi Zone Strong</value>
|
||||
</data>
|
||||
<data name="Muted" xml:space="preserve">
|
||||
<value>Muted</value>
|
||||
<value>Di Bisukan</value>
|
||||
</data>
|
||||
<data name="MuteMic" xml:space="preserve">
|
||||
<value>Bisukan Mic</value>
|
||||
@@ -609,10 +609,10 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Tidak Tersambung</value>
|
||||
</data>
|
||||
<data name="Off" xml:space="preserve">
|
||||
<value>Off</value>
|
||||
<value>Mati</value>
|
||||
</data>
|
||||
<data name="On" xml:space="preserve">
|
||||
<value>On</value>
|
||||
<value>Hidup</value>
|
||||
</data>
|
||||
<data name="OneZone" xml:space="preserve">
|
||||
<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>
|
||||
</data>
|
||||
<data name="Unmuted" xml:space="preserve">
|
||||
<value>Unmuted</value>
|
||||
<value>Bunyikan</value>
|
||||
</data>
|
||||
<data name="Updates" xml:space="preserve">
|
||||
<value>Pembaruan</value>
|
||||
@@ -768,16 +768,16 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Versi</value>
|
||||
</data>
|
||||
<data name="VibrationStrength" xml:space="preserve">
|
||||
<value>Vibration Strength</value>
|
||||
<value>Kekuatan Getaran</value>
|
||||
</data>
|
||||
<data name="VisualMode" xml:space="preserve">
|
||||
<value>Visual Mode</value>
|
||||
<value>Mode Visual</value>
|
||||
</data>
|
||||
<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 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 name="VolumeDown" xml:space="preserve">
|
||||
<value>Volume Turun</value>
|
||||
@@ -792,6 +792,6 @@ Apakah Anda masih ingin melanjutkan?</value>
|
||||
<value>Jaga agar jendela aplikasi selalu di atas</value>
|
||||
</data>
|
||||
<data name="Zoom" xml:space="preserve">
|
||||
<value>Zoom</value>
|
||||
<value>Perbesar</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -247,7 +247,7 @@
|
||||
<value>배터리 사용 중에만 60Hz 설정</value>
|
||||
</data>
|
||||
<data name="Awake" xml:space="preserve">
|
||||
<value>절전 모드 해제</value>
|
||||
<value>활성</value>
|
||||
</data>
|
||||
<data name="BacklightLow" xml:space="preserve">
|
||||
<value>낮음</value>
|
||||
@@ -693,13 +693,13 @@
|
||||
<value>Screenpad 밝기 증가</value>
|
||||
</data>
|
||||
<data name="Shutdown" xml:space="preserve">
|
||||
<value>시스템 종료</value>
|
||||
<value>종료</value>
|
||||
</data>
|
||||
<data name="Silent" xml:space="preserve">
|
||||
<value>조용</value>
|
||||
</data>
|
||||
<data name="Sleep" xml:space="preserve">
|
||||
<value>절전 모드</value>
|
||||
<value>절전</value>
|
||||
</data>
|
||||
<data name="StandardGPUTooltip" xml:space="preserve">
|
||||
<value>Standard 모드에서 dGPU 켜기</value>
|
||||
|
||||
@@ -740,6 +740,12 @@ Do you still want to continue?</value>
|
||||
<data name="ToggleScreen" xml:space="preserve">
|
||||
<value>Toggle Screen</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>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using GHelper.Gpu;
|
||||
using GHelper.Helpers;
|
||||
using GHelper.Input;
|
||||
using GHelper.Peripherals;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Runtime.InteropServices;
|
||||
@@ -767,6 +768,12 @@ 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]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
3
app/Updates.Designer.cs
generated
3
app/Updates.Designer.cs
generated
@@ -30,6 +30,7 @@ namespace GHelper
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
tableBios = new TableLayoutPanel();
|
||||
labelBIOS = new Label();
|
||||
pictureBios = new PictureBox();
|
||||
@@ -47,6 +48,7 @@ namespace GHelper
|
||||
labelLegendGray = new Label();
|
||||
labelLegendRed = new Label();
|
||||
labelLegend = new Label();
|
||||
toolTip = new ToolTip(components);
|
||||
((System.ComponentModel.ISupportInitialize)pictureBios).BeginInit();
|
||||
panelBiosTitle.SuspendLayout();
|
||||
panelBios.SuspendLayout();
|
||||
@@ -339,5 +341,6 @@ namespace GHelper
|
||||
private Label labelLegendRed;
|
||||
private Label labelLegendGray;
|
||||
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(versionLabel, 3, 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;
|
||||
if (label != null)
|
||||
{
|
||||
toolTip.SetToolTip(label, tip);
|
||||
|
||||
if (newer == DRIVER_NEWER)
|
||||
{
|
||||
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)
|
||||
{
|
||||
Invoke(delegate
|
||||
{
|
||||
_VisualiseNewDriver(position, newer, table);
|
||||
_VisualiseNewDriver(position, newer, tip, table);
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
_VisualiseNewDriver(position, newer, table);
|
||||
_VisualiseNewDriver(position, newer, tip, table);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -300,6 +303,8 @@ namespace GHelper
|
||||
foreach (var driver in drivers)
|
||||
{
|
||||
int newer = DRIVER_NOT_FOUND;
|
||||
string tip = driver.version;
|
||||
|
||||
if (type == 0 && driver.hardwares.ToString().Length > 0)
|
||||
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)));
|
||||
Logger.WriteLine(driver.title + " " + deviceID + " " + driver.version + " vs " + localVersion + " = " + newer);
|
||||
tip = "Download: " + driver.version + "\n" + "Installed: " + localVersion;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (type == 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)
|
||||
{
|
||||
|
||||
@@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</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>
|
||||
@@ -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)
|
||||
- [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)
|
||||
|
||||
@@ -115,6 +115,7 @@ Huge thanks to [@IceStormNG](https://github.com/IceStormNG) 👑 for contributio
|
||||
- ``Ctrl + M1 / M2`` - Screen brightness Down / Up
|
||||
- ``Shift + M1 / M2`` - Backlight brightness Down / Up
|
||||
- ``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`` - Screenpad brightness Down / Up
|
||||
- ``Ctrl + Shift + F20`` - Mute Microphone
|
||||
|
||||
@@ -257,31 +257,28 @@ G-helper是一个单文件的exe文件, 而且它不会向系统中安装任何
|
||||
|
||||
---
|
||||
|
||||
# 安装指南
|
||||
### 如何开始
|
||||
|
||||
1. 从 [**Releases Page**](https://github.com/seerge/g-helper/releases) 下载最新版本
|
||||
2. 解压到你选择的文件夹
|
||||
3. 运行 **GHelper.exe**
|
||||
1.下载[**最新版本**](https://github.com/seerge/g-helper/releases/latest/download/GHelper.zip)
|
||||
2. 解压到您选择的文件夹_(不要直接从zip运行exe,因为Windows会将其放入临时文件夹并在之后删除)_
|
||||
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