Skip to content

Instantly share code, notes, and snippets.

@fuxoft
Last active February 8, 2016 21:22
Show Gist options
  • Save fuxoft/323ba0125c320b08eb10 to your computer and use it in GitHub Desktop.
Save fuxoft/323ba0125c320b08eb10 to your computer and use it in GitHub Desktop.
Logitech keys.lua
function OnEvent (event, arg)
if (event == "G_PRESSED" and arg == 5) then
for num = 0, 9999 do
PressAndReleaseKey ("e")
Sleep(1)
for chr in string.gmatch(string.format("%04d",num),".") do
PressAndReleaseKey(chr)
Sleep(1)
end
if IsModifierPressed("rshift") then
break
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment