Error Produced
Code: Select all
; What It Does: If Shift is double tapped, press the insert key and run P2T-8F-2560x1440.ahk
;Variables
P2T_8F_PATH_PARTIAL := "\Eight Frames (Colorized)" ;
P2T_8F_PATH_FULL := A_ScriptDir P2T_8F_PATH_PARTIAL
; MsgBox, %P2T_8F_PATH_FULL% ; Uncomment to verify varible contents.
~Shift::
if (A_PriorHotkey <> "~Shift" or A_TimeSincePriorHotkey > 500)
{
KeyWait, LShift
Return
}
If toggle := !toggle ; Enables a toggle for Push-To-Talk between On/Off
{
Send, {Insert down}
Run, P2T-8F-2560x1440.ahk, %P2T_8F_PATH_FULL%,, P2T_8F_2560x1440
}
Else
{
Send, {Insert up}
Process, Close, %P2T_8F_2560x1440%
}
Return