Ok so for a while I've ran a script to have one of my G Keys (Logitech G510s) on my keyboard serve as my PTT button for Teamspeak.
I recently started using the whisper feature and I'm able to get a script working for one whisper target but I cannot make it work with mutliples (ie: G10 whispers person A, G11 whispers person B). I also cannot get any combination of the whisper script to work with the PTT script.
I have searched various places and cannot seem to find my answer. I have read the readme for the G Key Plugin app and the examples are great but like I said I can't get multiple scripts to work together.
Here is the current script located under my keyboard profile. Any help is greatly appreciated.
Code:
function OnEvent(event, gkey, family)
mkey = GetMKeyState()
if gkey == 11 and mkey == 1 then
if event == "G_PRESSED" then
OutputDebugMessage("TS3_WHISPER_CLIENT [6L73] Evan")
OutputDebugMessage("TS3_WHISPER_ACTIVATE")
OutputDebugMessage("TS3_PTT_ACTIVATE")
end
if event == "G_RELEASED" then
OutputDebugMessage("TS3_PTT_DEACTIVATE")
OutputDebugMessage("TS3_WHISPER_CLEAR")
end
end
end
function OnEvent(event, gkey, family)
mkey = GetMKeyState()
if gkey == 10 and mkey == 1 then
if event == "G_PRESSED" then
OutputDebugMessage("TS3_WHISPER_CLIENT [7S87] MSKI8877")
OutputDebugMessage("TS3_WHISPER_ACTIVATE")
OutputDebugMessage("TS3_PTT_ACTIVATE")
end
if event == "G_RELEASED" then
OutputDebugMessage("TS3_PTT_DEACTIVATE")
OutputDebugMessage("TS3_WHISPER_CLEAR")
end
end
end
function OnEvent(event, gkey, family)
mkey = GetMKeyState()
if gkey == 12 and mkey == 1 then
if event == "G_PRESSED" then
OutputDebugMessage("TS3_PTT_ACTIVATE")
end
if event == "G_RELEASED" then
OutputDebugMessage("TS3_PTT_DEACTIVATE")
end
end
end