What I want to add to this is a just SoundPlay to play on toggle state 1 and then another sound on state 0, thats I'm trying to do anyway, so when it switches between F2 and F3 it plays one sound for f2 and another for f3.
Any advice would be mucho appreciated!
Code: Select all
Toggle := 1
^+f1::Send, % Toggle = 1 ? ( "^+{F2}", Toggle := 0 ) : ( "^+{F3}", Toggle := 1 )
if Toggle := 1 ( SoundPlay, "d:\speakers.mp3", wait )
if Toggle := 0 ( SoundPlay, "d:\headphones.mp3", wait )