-
-
Save MartinHarding/3155be5e286e3f483223a1e21024c554 to your computer and use it in GitHub Desktop.
Parzehlli
commented
Jan 14, 2021
I may figure this out on my own a few days from now cause im a noob, but man would help be appreciated greatly.
to find what buttons map to what number, use this in the script window and start pressing stuff
function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %s\n", event, arg);
end
to find what buttons map to what number, use this in the script window and start pressing stuff
function OnEvent(event, arg) OutputLogMessage("event = %s, arg = %s\n", event, arg); end
Actually yeah i figured that out BUT! what if i don't even need the buttons mapped in the script cause the goal is only to have my left or right click held in. How bout a Toggle ON-OFF button for the left or right click mouse buttons held on. For example, i can just press J and the script is on and holding the left click in for me. Than when i want it off just press J again, Is that possible?
No, not with logitech scripting. https://douile.github.io/logitech-toggle-keys/APIDocs.pdf
AutoHotkey is what you want to use
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"
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?