What should I use to program that kind of Macro ?
|
feedback
|
|
Look up the "SoundSet" function to achieve what you want here. | |||||||||||
feedback
|
|
You may use devcon from Microsoft
the page contain a detailed set of information about how to use it, for your case, just put
To lists device instances of all devices that are present on the local computer.then,
to disable devices that match the specific hardware or instance ID,you can use wildcard (*) | |||
|
feedback
|
|
Find what registry values your particular Macro queries, you can do this with Sysinternals Process Monitor. For me, the calculator key on my keyboard queries the value of HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18\ShellExecute which is set to "calc.exe". Change that value to use NirCmd to mute the device or the previously mentioned DevCon to disable the device. example: to mute C:\path\to\nircmd.exe mutesysvolume 1 to unmute C:\path\to\nircmd.exe mutesysvolume 0 or to disable devcon disable [hardware_id] and re-enable devcon enable [hardware_id] | |||
|
feedback
|