I'm having a trouble figuring out this code, I'm trying to press F1 single time for toggling Wi-Fi on, and a double press for toggling it off.
but with no luck, it said (error, double hotkey!)
Code: Select all
F1::run,C:\Windows\System32\cmd.exe /c (netsh interface set interface Wi-Fi enabled)
~F1::
If (A_ThisHotkey == A_PriorHotkey && A_TimeSincePriorHotkey <= 300)
send {Launch_App1}
return
Launch_App1::run,C:\Windows\System32\cmd.exe /c (netsh interface set interface Wi-Fi disable)
any ideas?
thanks