Is any a way to detect if headphones are plugged in or not via VBScript?
This link doesnt help Switching current active sound device using VBScript?
Is any a way to detect if headphones are plugged in or not via VBScript?
This link doesnt help Switching current active sound device using VBScript?
You should be able to use the
Win32_SoundDeviceWMI class. Here is a sample script that might be a good starting point:(source)
I would do some comparison runs before and after plugging in your headphones and go from there.