Think Caver and I are having the same problem evdev didn't work for me unfortunately. I'm using an external usb soundcard to have clear sound and I'm using the HDMI monitor. I'm not sure if this is doing anything to do with the problem.
cool, I didn't know that it could handle that. yes, the script would break that. You would need to alter the regular expression (regex) in order to account for that. I don't have time right now to look into it, but here's a quick reference guide if you want to take a look. regex doesn't require programming know-how, but it does require patience because it's very easy to accidentally put an extra symbol somewhere or forget a backslash :) https://autohotkey.com/docs/misc/RegEx-QuickRef.htm