Using two hotkey is a solution and what I first used when I discovered this thread.IVWidth wrote: ↑28 Nov 2021, 19:29The code(s) shown in earlier posts show the use of two hotkeys. If it were me, since the toggle command doesn't mesh well with my brain for some reason, I would just include a hotkey reassignment in my hotkey command.
So pressing the hotkey once switches audio AND changes the hotkey assignment, then doing it again switches it back.
But I like the toggle method because it's more efficient (with limited hotkey space)
The toggle method I use relies on If s that check the "toggle" variable if its 0 or 1. The audiotoggle := !audiotoggle is a NOT. It changes the value from 0 to 1 and vice versa.
UPDATE:
I managed to edit the script where I only need one press for the first switch via running the script a few times at startup (simulating the multiple button press).
But this only works for one starting audio output.