Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OldskoolOrion/b32987d21cd357672e562adf9a30282c to your computer and use it in GitHub Desktop.
Save OldskoolOrion/b32987d21cd357672e562adf9a30282c to your computer and use it in GitHub Desktop.
Lua script for logitech gaming software to emulate F13-24 with G1-G12 || works in Putty as F13-F24
keymap = {
[1]="f13",
[2]="f14",
[3]="f15",
[4]="f16",
[5]="f17",
[6]="f18",
[7]="f19",
[8]="f20",
[9]="f21",
[10]="f22",
[11]="f23",
[12]="f24",
}
function OnEvent(event, gkey, family)
mkey = GetMKeyState()
if mkey == 3 then
key = keymap[gkey]
if event == "G_PRESSED" then
PressKey(key)
end
if event == "G_RELEASED" then
ReleaseKey(key)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment