#Requires AutoHotkey v2.0 #SingleInstance Force ; 1) Install AutoHotkey v2 on Windows. ; 2) Replace the token below with the one shown in voice.mayolube.com. ; 3) Set pttKey to your desired global push-to-talk key. pttKey := "F8" token := "PASTE_YOUR_TOKEN_HERE" if (token = "PASTE_YOUR_TOKEN_HERE" || StrLen(token) < 16) { MsgBox "Paste your token from voice.mayolube.com before running this helper." ExitApp } baseUrl := "https://voice.mayolube.com/api/ptt?token=" token "&value=" pttDown := false SendPTT(value) { global baseUrl whr := ComObject("WinHttp.WinHttpRequest.5.1") try { whr.Open("GET", baseUrl value, true) whr.Send() } } PttPress(*) { global pttDown if (pttDown) { return } pttDown := true SendPTT("1") } PttRelease(*) { global pttDown if (!pttDown) { return } pttDown := false SendPTT("0") } Hotkey("*" pttKey, PttPress, "On") Hotkey("*" pttKey " Up", PttRelease, "On") TrayTip "Party Line", "Global PTT helper active on key: " pttKey, 5