Long time no see - hope you're all fine.
I got a new mouse (Logitech G502 LS) and needed to install GHub and uninstall the Logitech Gaming Software.
Unfortunately I can't control the LEDs with AHK anymore.
It didn't work, then it worked and now it does not work again - and I have no clue why.
When I turn in the "LED control by AHK" inside of the GHub, both my mouse and my keyboard show no light anymore.
This is my LED script in AHK:
Code: Select all
LGS_Farbe_Initialisieren()
F1::
LGS_Farbe_Festlegen(100, 0, 100)
return
LGS_Farbe_Initialisieren()
{
hModule := DllCall("LoadLibrary", "Str", "C:\Users\USER\Documents\Logitech Gaming Software\AutoHotKey-Scripts\LogitechLedEnginesWrapper.dll", "Ptr")
if hModule = 0
{
MsgBox, LogitechLedEnginesWrapper.dll konnte nicht gefunden werden!
}
DllCall("LogitechLedEnginesWrapper\LogiLedInit")
}
LGS_Farbe_Festlegen(rot, grün, blau)
{
DllCall("LogitechLedEnginesWrapper\LogiLedSetLighting", "Int", rot, "Int", grün, "Int", blau)
}
Does anybody know what the problem could be?
For me it's important to change the LED, because it's an optical feedback which mode I am (I toggle buttons and keys).
Thanks for any help and best regards