Last active
February 8, 2016 21:22
-
-
Save fuxoft/323ba0125c320b08eb10 to your computer and use it in GitHub Desktop.
Logitech keys.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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