Changing audio sound on google chrome with trackbar/button


  • Hello,

    I have one question i'm making my own soundboard with favourite rappers so i can choose quickly a track. but my question could i change with a trackbar or button the audio of google chrome, like when i listen i put the trackbar/button down and only google chrome's audio goes down?! Could someone send the code then :D

    Or a button or something else when i press it it close all google chrome's tabs! 

    Greetings from holland

    Have a nice day,

    - Euroknaller

    • Edited by Euroknaller Sunday, December 11, 2016 8:04 AM
    Sunday, December 11, 2016 8:00 AM

All replies

  • Hello,

    I'm making my own Music "app" like for a dj i click on button it opend website but now i want if i scroll the the volume down or going up could someone help me 

    If someone can make if i can do it with google chrome that i can down music google chrome give me code plz

    Have a nice day :D


    Saturday, December 10, 2016 4:46 PM
  • Hi Euroknaller,

    This forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    Please tell us which language do you want to use?

    You could close the Chrome tabs with following C# code, which will get all Chrome related process and close them. Hope that can help you.

    Please add references for UIAutomationClient.dll and UIAutomationTypes.dll into your project.

    using System.Diagnostics;
    using System.Windows.Automation; 
    foreach (Process process in Process.GetProcessesByName("chrome"))
                    if (process.MainWindowHandle == IntPtr.Zero) // some have no UI
                    AutomationElement element = AutomationElement.FromHandle(process.MainWindowHandle);
                    if (element != null)

    Best Regards,

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Tuesday, December 13, 2016 5:26 AM