The .bat file does it's job correctly when ran directly, but if I run it with a bind from AutoHotKey, it pops up, goes through it's stuff and closes as normal, but after it's closed none of the stuff it was meant to do actually got done.
This is the .bat file
IF EXIST TEST.TXT (GOTO SPEAKERS) ELSE (GOTO MICROPHONE) :SPEAKERS REGEDIT /s StereoMix.reg ECHO Stereo Mix is now the default input device! DEL TEST.TXT GOTO END :MICROPHONE REGEDIT /s Microphone.REG ECHO Microphone is now the default input device! ECHO The current input device is the Microphone > TEST.TXT :END
As you can see the main function is to apply some registry entries, but they don't get applied. I think it might be an authorisation issue, although I am using an administrator account on a Windows XP SP3 system. Is there a way I can give AutoHotKey administrative rights so it can apply some registry entries? (Assuming that's the problem)