hotkey to disable an audio device of choice

Page 2 of 2 FirstFirst 12

  1. Posts : 9
    Windows 7 x64
    Thread Starter
       #11

    N00berG00ber said:
    No.

    I can't emphasis this enough. keyword: "Disable"

    In other words. I'm looking for a way to "Disable" (turn off) a device. I mentioned twice that I have a hotkey to switch audio devices already using NirCmd in which from that command-line tool i'm able to set between (or all) which device I want as default device and communication device, etc.
      My Computer


  2. Posts : 9
    Windows 7 x64
    Thread Starter
       #12

    Ztruker said:
    You would have to write the batch file to apply the registry changes, then setup a hotkey to invoke the batch file.

    The Open and Set registry actions indicate the key you need to modify. After disabling, go into regedit and export that key. Do it again after you enable it again.

    That should give you the registry changes you need to apply.
    thanks what I did was found which of the 4 I highlighted made the change and it was the one listed with the description changing the DWORD value. How I made I signed it to a hotkey was sending it to desktop (as shortcut) and right-click properties to define the key combination.

    only problem now is that it's always verifying yes/no if I want to go forth with the action. How do I disable that security? I tested it out and know it's safe.
      My Computer


  3. Posts : 6,285
    Windows 10 Pro X64
       #13

    How are you applying the change? Are you using the reg command? If so, looks like the /F parameter is what you need.

    C:\Users\rrkurtz>reg add /?

    REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]
    [/reg:32 | /reg:64]

    KeyName [\\Machine\]FullKey
    Machine Name of remote machine - omitting defaults to the
    current machine. Only HKLM and HKU are available on remote
    machines.
    FullKey ROOTKEY\SubKey
    ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
    SubKey The full name of a registry key under the selected ROOTKEY.

    /v The value name, under the selected Key, to add.

    /ve adds an empty value name (Default) for the key.

    /t RegKey data types
    [ REG_SZ | REG_MULTI_SZ | REG_EXPAND_SZ |
    REG_DWORD | REG_QWORD | REG_BINARY | REG_NONE ]
    If omitted, REG_SZ is assumed.

    /s Specify one character that you use as the separator in your data
    string for REG_MULTI_SZ. If omitted, use "\0" as the separator.

    /d The data to assign to the registry ValueName being added.

    /f Force overwriting the existing registry entry without prompt.

    /reg:32 Specifies the key should be accessed using the 32-bit registry view.

    /reg:64 Specifies the key should be accessed using the 64-bit registry view.

    Examples:

    REG ADD \\ABC\HKLM\Software\MyCo
    Adds a key HKLM\Software\MyCo on remote machine ABC

    REG ADD HKLM\Software\MyCo /v Data /t REG_BINARY /d fe340ead
    Adds a value (name: Data, type: REG_BINARY, data: fe340ead)

    REG ADD HKLM\Software\MyCo /v MRU /t REG_MULTI_SZ /d fax\0mail
    Adds a value (name: MRU, type: REG_MULTI_SZ, data: fax\0mail\0\0)

    REG ADD HKLM\Software\MyCo /v Path /t REG_EXPAND_SZ /d ^%systemroot^%
    Adds a value (name: Path, type: REG_EXPAND_SZ, data: %systemroot%)
    Notice: Use the caret symbol ( ^ ) inside the expand string
      My Computer


  4. Posts : 9
    Windows 7 x64
    Thread Starter
       #14

    I see, so forcing it using /f command.

    Problem is skype doesn't recognize the change and I have to still manually switch the output so it doesn't matter. I ended up not needing this method.

    Appreciate the help, hopefully others read and value that.
      My Computer


  5. Posts : 6,285
    Windows 10 Pro X64
       #15

    Ah well, it was worth a try.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:40.
Find Us