This would be better accomplished with the Hotkey
command. This way whatever is entered in your input box as the TriggerKey
will fire whatever code is under the label.
InputBox, TriggerKey, Input Trigger Here ; Custom turbo trigger
InputBox, TurboKey, Input Turbo Button Here ; and custom turbo key
Hotkey, % TriggerKey, TriggerKey
Return
TriggerKey:
While ! GetKeyState("F12", "P")
{
Send, %TurboKey%
Sleep 50
}
Return