Windows 1909 - Macro - System.Execute no longer working
Posted: Wed May 06, 2020 3:14 am
Hi
Reformatted and updated my computer from Windows 1903 to 1909 - but now one of my macros that I use to switch default audio device in the background isn't working.
Have tried all sorts and can't fix it.
I use a VBS file triggered from wscript.exe to execute a bat file in the background so that the game I am in doesn't lose focus and tab me out. It seems I am unable to use System.Execute to do anything such as execute files?
This is the code:
One is for the ON and the other OFF - and when the macro button is pressed, the VBS launches a bat file that points to a nircmd script to change the default audio device.
As I say, it worked flawlessly before re-installing. Any help appreicated.
Reformatted and updated my computer from Windows 1903 to 1909 - but now one of my macros that I use to switch default audio device in the background isn't working.
Have tried all sorts and can't fix it.
I use a VBS file triggered from wscript.exe to execute a bat file in the background so that the game I am in doesn't lose focus and tab me out. It seems I am unable to use System.Execute to do anything such as execute files?
This is the code:
Code: Select all
System.Execute("%windir%\System32\wscript.exe","S:\Dropbox\Streaming\OBS Assets\Overlay Assets","/C StuPC_Set_Default_Audio_Device_-_Game_(Realtek_Optical_Out).vbs 36 1");
Code: Select all
System.Execute("%windir%\System32\wscript.exe","S:\Dropbox\Streaming\OBS Assets\Overlay Assets","/C StuPC_Set_Default_Audio_Device_-_Voicemeeter_Aux_Input.vbs 36 1");
As I say, it worked flawlessly before re-installing. Any help appreicated.