❗ Need help with Logitech G series coding

Posts 1–6 of 6 · Page 1 of 1
❗ Need help with Logitech G series coding
Im Currently trying to script in my Logitech Gaming Software and coming across this message


event = PROFILE_ACTIVATED, arg = 0
[string "LuaVM"]:8: attempt to call global 'EnablePrimaryMouseButtonEvents' (a nil value)

Here is the Script

function OnEvent(event, arg)
--OutputLogMessage("event = %s, arg = %s\n", event, arg);
end

function OnEvent(event, arg)
OutputLogMessage("event = %s, arg = %d\n", event, arg)
if (event == "PROFILE_ACTIVATED") then
EnablePrimaryMouseButtonEvents(true)
elseif event == "PROFILE_DEACTIVATED" then
ReleaseMouseButton(2) -- to prevent it from being stuck on
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 9) then
recoil = not recoil
spot = not spot
end
if (event == "MOUSE_BUTTON_PRESSED" and arg == 1 and recoil) then
if recoil then
repeat
--Sleep(35)
Sleep(8)
MoveMouseRelative(0, 3)

until not IsMouseButtonPressed(1)
end
end
end


Side Notes: friend is on a mac trying to do this, dont know if that makes a difference. Im not big into coding and trying to help him. It works fine on my PC but for some reason his mac isnt letting him do this, any help would be greatly appreciated.
What is this intended to do?
its a recoil script i use for Pubg. It works fine on my comp but my friend has a mac and it doesnt like the 8th line i guess? im not big into coding i just looked around on this site and you guys are geniuses on the comp. Hes on a mac if that makes a difference.
EnablePrimaryMouseButtonEvents is broken on Mac, logitech needs to fix it.
Wow thats annoying, thanks for the info. Is this something they will do and how will we know when they update/fix it.
The thread I found on google was from 2016, so I doubt it's on their schedule.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us