Last active
October 28, 2023 10:35
-
-
Save MartinHarding/3155be5e286e3f483223a1e21024c554 to your computer and use it in GitHub Desktop.
Logitech Gaming Software Mouse Button Toggle script
Is there any way to apply this profile to a Logitech Ergo MX?
https://github.com/RavenBHK/DBD-Left-Hold-and-Auto-Run
I used to above macro and am trying to combine with this one. Can anyone help?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figured it OUT! AutoHotKey can get you banned tho in some games? Here- for any future people who come across this your welcome! This is working in the LGS Software with a Logitech G502 or G502 Hero. Hmu for more details on what it does, thanks @johnwang16
"function OnEvent(event, arg)
if IsKeyLockOn ("capslock") then
if event == "MOUSE_BUTTON_PRESSED" and arg == 8 then
PressKey("B")
end
if event == "MOUSE_BUTTON_RELEASED" and arg == 2 then
ReleaseKey("B")
end
elseif IsMouseButtonPressed(3)then
repeat
if IsMouseButtonPressed(1) then
repeat
MoveMouseRelative(0,1)
Sleep(8)
until not IsMouseButtonPressed(1)
end
until not IsMouseButtonPressed(3)
end
end"