G6 = {"1","2","3","4","5","6","7","8"}
G7 = {"1","2","3","4","5","6","7","8"}
G14 = {"1","2","3","4","5"}
G13 = {"2","3","4"}
G19 = {"7","6"}
G11 = {}
G12 = {"6","5","1"}
function OnEvent(event, arg, family)
if event == "G_PRESSED" and arg == 13 and family == "lhc" then
i13 = (i13 or 0) + 1
if i13 > #G13 then i13 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G13[i13])
Sleep(40)
ReleaseKey(G13[i13])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 14 and family == "lhc" then
i14 = (i14 or 0) + 1
if i14 > #G14 then i14 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G14[i14])
Sleep(40)
ReleaseKey(G14[i14])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 7 and family == "lhc" then
i7 = (i7 or 0) + 1
if i7 > #G7 then i7 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G7[i7])
Sleep(40)
ReleaseKey(G7[i7])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 6 and family == "lhc" then
i6 = (i6 or 0) + 1
if i6 > #G6 then i6 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G6[i6])
Sleep(40)
ReleaseKey(G6[i6])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 19 and family == "lhc" then
i19 = (i19 or 0) + 1
if i19 > #G19 then i19 = 1 end
PressKey("lctrl")
Sleep(40)
PressKey(G19[i19])
Sleep(40)
ReleaseKey(G19[i19])
ReleaseKey("lctrl")
elseif event == "G_PRESSED" and arg == 11 and family == "lhc" then
i11 = (i11 or 0) + 1
if i11 > #G11 then i11 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G11[i11])
Sleep(40)
ReleaseKey(G11[i11])
ReleaseKey("lalt")
elseif event == "G_PRESSED" and arg == 12 and family == "lhc" then
i12 = (i12 or 0) + 1
if i12 > #G12 then i12 = 1 end
PressKey("lalt")
Sleep(40)
PressKey(G12[i12])
Sleep(40)
ReleaseKey(G12[i12])
ReleaseKey("lalt")
end
end