<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The “not so“ nice things about sound and Horizon in a healthcare environment. in Dynamic Environment Manager</title>
    <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865955#M4121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Ok, wow! What an extensive and detailed post! Great work and thanks for sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;I agree that it is best to have this fixed/adjusted in the product. Have you done a feature request for this? --&amp;gt; &lt;A class="jive-link-external-small" href="https://www.vmware.com/company/contact/contactus.html?department=prod_request" rel="nofollow" style="color: #3399cc;"&gt;https://www.vmware.com/company/contact/contactus.html?department=prod_request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 2px; margin-right: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Thanks again!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yeah i could do that &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's a known issue and that for now there wasn't much of a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a&amp;nbsp; look at the page you linked to see I can fill in a feature request, maybe they can also find a way based on event handling from a DEM agent or something. since that service is used a lot in Horizon environments anyway and runs. or maybe even the horizon agent itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Jul 2020 09:24:11 GMT</pubDate>
    <dc:creator>MiMenl</dc:creator>
    <dc:date>2020-07-01T09:24:11Z</dc:date>
    <item>
      <title>The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865950#M4116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Ok as the tile suggest I would like to elaborate a bit about sound issues within a horizon environment within a healthcare setting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;But first things first, this might be a different type of post than the usual ones, I might make some strange and wrong assumptions, be bold&amp;nbsp; at some times but i still think the story might be interesting and might even help solving some issues for others.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Since English is not my native language please bear with me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Also feel free to correct wrong assumptions and let's try together to make this post as helpful as it can possibly be.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;And since this is my first post let me introduce myself a bit :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Mark Platte&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;36 years old and currently working as an IT architect in a hospital environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;But my roots are in application development.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I like to solve issues and still believe that when it comes to IT everything can be fixed depending on how much effort and endurance (and too bad also money) you are willing to spend on solving issues. Although determination might actually be the real key word here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So enough about me so here we go :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.5pt; font-family: Helvetica, sans-serif;"&gt;It might be i'm not able to finish all of the post so it may come in a couple of posts.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 20:21:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865950#M4116</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2020-06-30T20:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865951#M4117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So here we go Part 1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The post will be setup in the following way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Intro into the environment.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Background story .&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Problem descriptions.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Fixes implemented.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Conclusion.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Intro into the environment&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Since last year we are running a large VDI project within a hospital and we chose VMware Horizon as our main VDI solution, next to Horizon we use DEM for personalization and saving user settings and currently run Window 10 VDI’s. we use Instant clones to provide VDI’s to end users and try to use application virtualization as much as possible. Aslo Tap And go was one of the key points to switch to VDI&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;During the project we had some nice let’s call it challenges and one of the challenges mainly focused around sound, and I mean &lt;STRONG&gt;SOUND&lt;/STRONG&gt; in every aspect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Background story &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;This is just a&amp;nbsp; description (sum up) about the things we encountered here everything looks like it came in at once but in reality things emerged during the project. As always fixing something on the left might always break something at the right.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So there were where after some hard work finally able to roll out VDI’s to the business everything seemed cool, the tests were successful and we had full confidence we build something nice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;But after a short while the first issues started popping up (this article will only focus on sound issues though). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;One of the first issues that we heard of was the fact that sound was inconsistent. Some employees had loud sounds other employees could not get the sound loud enough and the last group didn’t get sound all. The irony here is actually quite fun once you fix the issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So once we fixed this we ran into something else the sound was always to loud, well just reset it or change it after log on this worked but settings didn’t get saved (many things about this already on the internet). So we went for the log on log of task approach, this seemed to work fine for a while, at least for the people that worked all day at the same desktop from which they never disconnected to their VDI. This was basically the type of user that we started rolling out VDI’s too at start. But then we started rolling out VDI’s to nurses , and if you can say one thing here is that they don’t stay at one spot for a long time. They switch clients a lot since the VDI moves with them. The nursing PC’s are all turned to Kiosk PC’s and there the new issue came up. On every reconnect to the VDI session the sound level was increased to 100%. This might not really look like a big issue and during the day it didn’t matter that much but imagine the following scenario.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;You are sleeping as a patient the nurse comes to check on you. But since it’s the night shift in which they also spend a lot of time waiting the nurse decided to watch a nice action movie on Netflix. She turned her sound to 20 % so no one can hear it before she started doing her checkups. She swipes out (tap and go / disconnect her session oh and leaves Netflix running just before that action scene were a bomb explodes) She than takes a mobile card moves it to the patients room, swipes her card connects to her session, sounds are raised to 100 % Netflix still playing bomb explodes and all patients are awake. Not really the wakeup call you would like. So this needs to be fixed (I hear you think but NO blocking Netflix is not an option). &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;And then&amp;nbsp; for the final part of the story corona happened, nothing too big since the VDI’s can be used from home too so this was quite easy except for the part were video conferencing became hot. So there come the microphones and webcams, and the issues of the microphone not being loud enough and still some devices not playing sound on the wanted levels. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So see here the challenge we had to face, and even the answers on some things that they could not be fixed (which for now doesn’t seem true) but depends on policies since the solution will involve some programming and making use of third party tools some of them were already mentioned in prior posts but I will name them again. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Below I will try to list the different issues in a more point like manner.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Problem descriptions pointed :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 45px; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;High/low sound volume, no sound at all.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Microphone not boosted.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;100% sound level reset at reconnect.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fixes Implemented:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;General notice : a lot of my solutions are programmed in VB.net I just like it and it saves me time compared to finding my way around in PowerShell. I do think the solutions can also be achieved in PowerShell but this is something you need to do yourself, at least the VB code might give you some general ideas about how to script it.&lt;/P&gt;&lt;P&gt;I will add the source code to the projects were possible so it can be changed and compiled, the community edition of VB.net should be sufficient. I can also provide the compiled binaries but I rather not due to the fact they are .exe files and that always is tricky. (and I didn’t fully read the rules so it might not even be allowed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;&lt;BR clear="all" /&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;High/low sound volume, no sound at all.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Trouble shooting this issue was actually quite easy, apparently horizon takes over settings&amp;nbsp; from the base system when it comes to sound, making the VDI sound relative to current level of the sound volume settings of the client PC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Ex. You put your base system om 50 % in this case sound in the VDI at 100 % is still 50 % of the systems possible volume. Same goes for muting muting your base system will not give you sound trough VDI. And since we run kiosk pc’s users cannot change this themselves. So this needed to be changed by IT.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Our approach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Since we needed to change a lot of systems it needed to be done in a scripted way. We run W10 as base OS and sound is not easily managed programmatically due to the fact settings are stored in driver classes and not in registry luckily there is a nice tool from &lt;STRONG&gt;NirSoft&lt;/STRONG&gt; called &lt;STRONG&gt;SoundVolumeView&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;.(&lt;/STRONG&gt; &lt;A href="https://www.nirsoft.net/utils/sound_volume_view.html"&gt;https://www.nirsoft.net/utils/sound_volume_view.html&lt;/A&gt;)&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;this tool allows you to set the volume of different devices.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Even though the tool can do a lot for you it would still ask a lot of manual work at least in our environment. We are using a lot of different hardware and drivers so the sound device might be called different on different machines, it is not always clear were sound devices are connected (back port / front port) so lots of options to tackle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The tool however also has a nice option &lt;STRONG&gt;/scomma &amp;lt;Filename&lt;/STRONG&gt;&amp;gt; which lets you export all the devices on a machine to a csv file, this file can then be used to set all the devices to a certain level 100 % in our case. The tool however does not have an option to do this by itself so here we need to create a custom application/ script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15935488712826633 jive_text_macro" data-renderedposition="1784.5625_8_1232_1824" jivemacro_uid="_15935488712826633"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Module&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Module1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Main()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'declare variables and prepare some things for later use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strsourcepath &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\\test-path\\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strAppname &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"SoundVolumeView.exe"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strIstFolder &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strSolFolder &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strCompname &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;My&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Computer.Name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; commandlimeargs &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;() = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strfilename &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; srFilereader &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; p &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Process&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; pStartInfo &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;ProcessStartInfo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; pset &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Process&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; psetStartInfo &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;ProcessStartInfo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strLine &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strsplit &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;() = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strDeviceName &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;""&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Boolean&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'create a filename to use for saving the csv file (computername_date_without spaces and &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.vmware.com/html/@7651DD0E8772B3B5D93ADA9ABA2E067C/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strfilename = strCompname &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"_Audio_"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Now&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strfilename = Replace(strfilename, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"_"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, 1,, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CompareMethod&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strfilename = Replace(strfilename, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;":"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"-"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, 1,, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CompareMethod&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; commandlimeargs = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.GetCommandLineArgs()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'check for arguments and take proper action&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;For&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; i = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;To&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; commandlimeargs.Length - 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; commandlimeargs(i).ToLower.ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"-path"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strsourcepath = commandlimeargs(i + 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; commandlimeargs(i).ToLower.ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"-debug"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Next&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; i&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set folder location for file storage&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strIstFolder = strsourcepath &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Ist\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strSolFolder = strsourcepath &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Sol\"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'peroare process to launch SoundVolumeView.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pStartInfo.FileName = strsourcepath &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strAppname&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Creating file : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strIstFolder &amp;amp; strfilename &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;".csv"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set parameters for SoundVolumeView.exe to create csv file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pStartInfo.Arguments = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"/scomma "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strIstFolder &amp;amp; strfilename &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;".csv"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'hide SoundVolumeView.exe window&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.StartInfo.CreateNoWindow = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.StartInfo = pStartInfo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;' start process&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.Start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.WaitForExit(60000) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;' wait for the process to finish and continue after 60 seconds if process isn't finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'prepare cvs file for reading&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srFilereader = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strIstFolder &amp;amp; strfilename &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;".csv"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'read cvs file to prefprm actions&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; srFilereader.Peek &amp;gt; -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strLine = srFilereader.ReadLine&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strsplit = Split(strLine, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;","&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, , &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CompareMethod&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'check for device entries&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strsplit(1).ToLower.ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"device"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Found device : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strsplit(0).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'prepare process to set volume based on csvfile entries&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psetStartInfo.FileName = strsourcepath &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strAppname&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Settig volume to 100 % for device : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strsplit(0).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set volume of device&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psetStartInfo.Arguments = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"/setvolume "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; Chr(34) &amp;amp; strsplit(0).ToString &amp;amp; Chr(34) &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"100"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pset.StartInfo = psetStartInfo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pset.Start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pset.WaitForExit(60000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuting device : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strsplit(0).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'unmute device&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psetStartInfo.FileName = strsourcepath &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strAppname&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; psetStartInfo.Arguments = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"/Unmute "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; Chr(34) &amp;amp; strsplit(0).ToString &amp;amp; Chr(34)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;pset.StartInfo = psetStartInfo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pset.Start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pset.WaitForExit(60000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Finished configuring device : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strsplit(0).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; bDebug = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Creating file : "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strSolFolder &amp;amp; strfilename &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;".csv"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'create csv file containing results&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pStartInfo.Arguments = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"/scomma "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; strSolFolder &amp;amp; strfilename &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;".csv"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.StartInfo.CreateNoWindow = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.StartInfo = pStartInfo&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.Start()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p.WaitForExit(60000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threading.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Thread&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Sleep(10000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; srFilereader.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Catch&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ex &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Something went wrong see error description below :"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Console&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WriteLine(ex.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threading.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Thread&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Sleep(10000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Module&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;To create this program start a new console application in vb.net call it SetBaseVolumes and copy the above code to module1.vb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The application has a couple of command line arguments and needs some setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;-path &amp;lt;path&amp;gt;&amp;nbsp; the specified path will be used as path to look for the &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;SoundVolumeView&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515;"&gt;.exe &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;-debug will show information in the command prompt else it will just stay black till the process is finished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Setup:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;In the folder that is specified with the path parameter create 2 subfolders :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Sol and Ist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Your folder setup would look like this :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Path\sol&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Path\ist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The folders are used to store the csv file prior to setting values and after so you can check if things changed from a central location.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The application will be compiled to SetBaseVolumes.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;It is advised to store the executable on a network share and also create a network folder to store the &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;SoundVolumeView&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515;"&gt;.exe &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;also create the ist and sol folder in this directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Make sure the program runs under a user with network access we use Altiris with a service account to achieve this, and push a job to all machines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The syntax could be something like this &lt;A&gt;\\appfolder\setbasevolumes.exe&lt;/A&gt; -path &lt;A&gt;\\destfolder\csv&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Don’t add the final \ to the destination path this is added by the program.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Working :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The first part of the code is used to declare some variables and prepare some things to launch the processes in a proper way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Step 1 create a filename based on computer name and time stamp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Step 2 create csv file with all devices for the machine it is run on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Step 3 read csv and set volumes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Step 4 create file with results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;I added some minor comments to the code but feel free to ask questions if needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;The end result will be that all connect devices on the base (client kiosk pc) will have the volume level set to 100 % and if the device was muted it will be unmuted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;This will only work for connected devices so make sure all the things needed by the end user are plugged in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So that was part 1 of the solution covering the sound levels of the base machine which seem to be used by horizon as relative sound levels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Microphone not boosted.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;So after we fixed the sound issues of the base system the microphone issue popped up. This also seems related to the base system since VMWare uses the microphone array in the VDI which basically seems to use the local machine settings for the microphone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;We would also like to set this scripted but this device is not listed in the CSV.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Apparently the “Microphone Boost” or “Microfoonversterking” is a virtual device which can be set by &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;SoundVolumeView&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515;"&gt;.exe &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;but with a slightly different command line option.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;In this case we used : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15935487374637513" data-renderedposition="4616.5625_8_1232_16" jivemacro_uid="_15935487374637513"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;soundvolumeview.exe /setvolumedecibel “[device name]” 24&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This will set it to the maximum boost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Keep in mind that depending of the OS language this device name will change in this case&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Microfoonversterking = Dutch&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Microphone Boost = English&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;This command should also be run from the pc that needs the setting and the microphone should be plugged in.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Once these setting are done you can manage your sound levels within the VDI by using the master volume and in applications the microphone array settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;This kind off covered the first two issues from the issue list (for us) so up to the next one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif;"&gt;The sound reset on reconnect. (part 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 20:26:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865951#M4117</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2020-06-30T20:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865952#M4118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Part 2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;100% sound level reset at reconnect.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This was a hard one and actually the one issue that started it all. Trying to find a solution on the internet never got me anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Lots of recommendations of doing something during log on and log off events but no real solution to the reset of the sound levels to 100 % when reconnecting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Even asking around at lots of places never got my any further than learn to live with this cannot be fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: upper-alpha;"&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;And that just is an answer I don’t like, and don’t believe (see me introduction&amp;nbsp; :smileylaugh:&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt; )&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;So yes it was quite some work it involves some 3rth party libraries but in the end I got something that works, only downside due to the way windows manages events it sometimes lags for 1 to 3 seconds before changing the settings but this is always better than not changing them at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;In this case the user should be able to set the volume themselves so I created a vb.net Form application which resides in the system tray to fix the sound issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;The application uses &lt;A href="https://github.com/xenolightning"&gt;&lt;SPAN style="color: windowtext;"&gt;xenolightning&lt;/SPAN&gt;&lt;/A&gt; / &lt;STRONG&gt;&lt;A href="https://github.com/xenolightning/AudioSwitcher"&gt;&lt;SPAN style="color: windowtext; font-weight: normal;"&gt;AudioSwitcher&lt;/SPAN&gt;&lt;/A&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #0070c0;"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/xenolightning/AudioSwitcher/blob/master/LICENSE" rel="nofollow"&gt;https://github.com/xenolightning/AudioSwitcher/blob/master/LICENSE&lt;/A&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;as wrapper&lt;STRONG&gt; &lt;/STRONG&gt;dll to implement some fdunctions to change the sound settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;These dll’s can be downloaded trough the NuGet function in visual studio :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nuget.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/21180iD42E5CCF0231AA38/image-size/large?v=v2&amp;amp;px=999" role="button" title="nuget.png" alt="nuget.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;These DLL’s really made things a lot easier.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;And are under a &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-family: 'Segoe UI',sans-serif; color: #24292e; background: white;"&gt;Microsoft Public License&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;So for the program :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;What do we have to fix ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Well mainly the fact that when you reconnect to a VDI the sound will reset to 100 % and the settings cannot be saved anywhere, since there is no logon or logoff event a logon or logoff DEM script will not fix this either. But it would be nice if the user preferences could be saved and restored trough DEM so let’s keep that in mind.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;So what is it I can use to actually know when to change the sound levels, let’s see if there is something triggered when I reconnect back to my VDI. And this seems to be the case. Apparently at least in our environment a reconnect is seen as a &lt;STRONG&gt;session logon&lt;/STRONG&gt; or a &lt;STRONG&gt;session unlock &lt;/STRONG&gt;two events that can be handled by a VB.net application so let’s try to (ab)use that, and this turned out to become the main part of the program :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Adding an event handler &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15935559309022287 jive_text_macro" data-renderedposition="1126.59375_8_1232_16" jivemacro_uid="_15935559309022287"&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;AddHandler&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Microsoft.Win32.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SystemEvents&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionSwitch, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;AddressOf&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; SessionSwitch&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;And adding a function that triggers &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15935559372036508 jive_text_macro" data-renderedposition="1205.59375_8_1232_144" jivemacro_uid="_15935559372036508"&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; SessionSwitch(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;ByVal&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;ByVal&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Microsoft.Win32.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchEventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e.Reason = e.Reason = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchReason&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionLogon &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Or&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e.Reason = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchReason&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionUnlock &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;Some code to change sound settings and done&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;End if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue;"&gt;End sub&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This up here looks easy but after adding some code it just wasn’t working right somehow sound could not be set at once. I read in a post that increasing sound level by 1 and decreasing it again triggers a change with a different NirSoft tool so we had to work from there. And that became the code below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;I added some comments (and if you compile it this way you will have a paypal link to me in the about form but feel free to delete it, although it was quite some work getting this stuff working)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Since the forms contain some element it might be smart to download the source file since it will be easier to recreate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Setup from scratch :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Add two forms to the project (Form1 and Form 2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Here is a screenshot of the controls and names on form 1 and form 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="F1.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/21181i85A64D0D5BD0FA15/image-size/large?v=v2&amp;amp;px=999" role="button" title="F1.png" alt="F1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="F2.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/21182i8D3BA4A96B1F23F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="F2.png" alt="F2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Add the components to the right forms and take over the right names for the code to work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Now add the code below to Form1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Form1 &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_159355590594176 jive_text_macro" data-renderedposition="2232.59375_8_1232_4832" jivemacro_uid="_159355590594176" modifiedtitle="true"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'imports some needed libraries dont forget to also reference the dlls into your solution&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Imports&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.ComponentModel&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Imports&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.Runtime.InteropServices&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Imports&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AudioSwitcher&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Imports&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Microsoft.Win32&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Public&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Class&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Form1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'create a sound device to use&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Public&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AudioSwitcher.AudioApi.CoreAudio.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CoreAudioDevice&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Public&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strappdata &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'hide the close button on the form&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Const&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; CP_NOCLOSE_BUTTON &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Integer&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &amp;amp;H200&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Protected&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Overloads&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Overrides&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;ReadOnly&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Property&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; CreateParams() &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CreateParams&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'make the close button dissapear&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Get&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; myCp &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CreateParams&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;MyBase&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.CreateParams&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCp.ClassStyle = myCp.ClassStyle &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Or&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; CP_NOCLOSE_BUTTON&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Return&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; myCp&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Get&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Property&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Form1_Load(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;MyBase&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'add an event handler to catch the logon and unlock events&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;AddHandler&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Microsoft.Win32.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SystemEvents&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionSwitch, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;AddressOf&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; SessionSwitch&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'get the appdata folder for teh user&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strappdata = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.GetFolderPath(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SpecialFolder&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.ApplicationData)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'get the default playback device usually the master volume when no other devices are present&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AudioApi.CoreAudio.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CoreAudioController&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;().DefaultPlaybackDevice&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'print info on a label on the form and resize properly&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label1.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Current volume level of: "&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.FullName.ToString&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblvolume.Left = Label1.Left + Label1.Width + 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HScrollBar1.Left = lblvolume.Left + lblvolume.Width + 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Left = HScrollBar1.Left&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button1.Left = btnmute.Left + btnmute.Width - Button1.Width&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Width = HScrollBar1.Left + HScrollBar1.Width + 25&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'check for setting file and if its present read values from it to set the master volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;File&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Exists(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sReader &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead() &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sReader = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sReader.Peek &amp;lt;&amp;gt; -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRead = Split(sReader.ReadLine, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(0).ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = Val(strRead(1).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(0).ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set mute state&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(1).ToString.ToUpper = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"FALSE"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(1).ToString.ToUpper = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"TRUE"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sReader.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'create the appdata folder if tit is not there to save ini file and store current volume settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Directory&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Exists(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Directory&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.CreateDirectory(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;File&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Create(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;).Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'store settings in ini file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;File&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Create(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;).Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set lebels on primary form&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'change value of scrollbar to show current volume level&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblvolume.Text = device.Volume &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" %"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HScrollBar1.Value = device.Volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set interval of timer to 30 seconds and let it write the ini file every 30 seconds to preserve changes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Interval = 30000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Enabled = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; SessionSwitch(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;ByVal&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;ByVal&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Microsoft.Win32.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchEventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'check for event logon or unlock&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e.Reason = e.Reason = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchReason&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionLogon &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Or&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; e.Reason = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;SessionSwitchReason&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.SessionUnlock &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'diabel timer so settings cannot be written and prevent sound setting mechanism to mess up user settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Enabled = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set volume to 1 and to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;For&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; a = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;To&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 10&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'make the device go to mute state by reapeating the setting (it needs to be repeated to work)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'device will always start in mute state to prevent loud noises.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threading.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Thread&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Sleep(5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Next&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; a&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'start reading user settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sReader &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead() &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;String&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sReader = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamReader&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sReader.Peek &amp;lt;&amp;gt; -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; strRead = Split(sReader.ReadLine, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;For&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; i = 0 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;To&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 25 &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'repest settings 25 times&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'check for volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(0).ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threading.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Thread&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Sleep(5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'decrease volume by 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = Val(strRead(1).ToString) - 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Threading.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Thread&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Sleep(5)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set volume to desired level&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = Val(strRead(1).ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(0).ToString = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set mute sate &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(1).ToString.ToUpper = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"FALSE"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; strRead(1).ToString.ToUpper = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"TRUE"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Next&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; i&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;While&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sReader.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'enable timer to save user changes&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Enabled = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Protected&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Overrides&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Finalize()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;MyBase&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Finalize()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; btnmute_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; btnmute.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'add mute button actions i know GOTO but it's so easy could have used a case instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;GoTo&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Mute(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;btnmute.Text = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;GoTo&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'write new state to ini&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; HScrollBar1_ValueChanged(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; HScrollBar1.ValueChanged&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'handle scrollbar and settings saving&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = HScrollBar1.Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblvolume.Text = device.Volume &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" %"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;btnmute.Text = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Catch&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; NotifyIcon1_MouseDoubleClick(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;MouseEventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; NotifyIcon1.MouseDoubleClick&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'set low interval so when the form becomes visible it will also show the changes made trough the windows sound control&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Interval = 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Enabled = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Show()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WindowState = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;FormWindowState&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Normal&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;lblmute.Text = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;btnmute.Text = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Catch&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Button1_Click_1(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Button1.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'hide the program again &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Hide()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.ShowInTaskbar = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Interval = 45000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Timer1_Tick(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Timer1.Tick&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'save settings in the background every 45 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;lblvolume.Text = device.Volume &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" %"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HScrollBar1.Value = device.Volume&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;lblmute.Text = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'make me jump in font of all windows when i am visible (!update this might make you loose focus on other apps comment it out to prevent this by adding ' in front)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Visible = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Activate()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AboutToolStripMenuItem_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AboutToolStripMenuItem.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'handle about menu item&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Form2&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.ShowDialog()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ExitProgramToolStripMenuItem_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ExitProgramToolStripMenuItem.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'handle exit menu item&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Form1_Closing(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;CancelEventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Closing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'save settings befor closing the app&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; sWriter &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; System.IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;New&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; IO.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;StreamWriter&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;(strappdata.ToString &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"\SetVolume\Volume.ini"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;False&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; device.Volume = HScrollBar1.Value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblvolume.Text = device.Volume &amp;amp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;" %"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Volume="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.Volume.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.WriteLine(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute="&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; &amp;amp; device.IsMuted.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sWriter.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Catch&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; OpenAppDataToolStripMenuItem1_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; OpenAppDataToolStripMenuItem1.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'handle open appdata menu item&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Process&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Start(&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"c:\windows\explorer.exe"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, strappdata.ToString)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AboutToolStripMenuItem1_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; AboutToolStripMenuItem1.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Form2&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.StartPosition = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;FormStartPosition&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.CenterScreen&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Form2&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.ShowDialog()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Activate()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ShowFormToolStripMenuItem_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; ShowFormToolStripMenuItem.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Interval = 300&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timer1.Enabled = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Show()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;' Me.ShowInTaskbar = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.WindowState = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;FormWindowState&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Normal&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; device.IsMuted = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmuted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Mute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lblmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Muted"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnmute.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Unmute"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Class&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;This is the main program &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Add yor own text to the label on form2 currently it is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;Program to store the default audio device volume settings&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;within a VDI session.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;The program will restore the sound level of the default sound device &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;on a session reconnect.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;Settings are stored in %AppData%\SetVolume\Volume.ini&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;© Mark Platte 2020&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 8.0pt; font-family: 'Helvetica',sans-serif;"&gt;&lt;A href="mailto:mimenl@gmail.com"&gt;mimenl@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Helvetica',sans-serif;"&gt;I would appreciate it if you would leave this in.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Add the following code to Form2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;:smileyinfo: This is the about stuff but since code from Form1 needs it I added it here too&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;From2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15935560276229548 jive_text_macro" data-renderedposition="7440.59375_8_1232_466" jivemacro_uid="_15935560276229548"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Public&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Class&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Form2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Button1_Click(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Button1.Click&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Me&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Hide()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; lbldonate_LinkClicked(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;LinkLabelLinkClickedEventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; lbldonate.LinkClicked&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Diagnostics.&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Process&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Start(e.Link.LinkData.ToString())&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Private&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; Form2_Load(sender &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Object&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;, e &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;EventArgs&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;) &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Handles&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;MyBase&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Links.Clear()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: green; background: white;"&gt;'jkust a check to take out the label when running i a known domain environment&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.UserDomainName.ToUpper.ToString &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"somedomain"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;.UserDomainName.ToUpper.ToString &amp;lt;&amp;gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"somedomain1"&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Then&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Visible = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label2.Visible = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Donate"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Links.Add(0, 6, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://paypal.me/mimenl" rel="nofollow"&gt;https://paypal.me/mimenl&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;If&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Catch&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt; a &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;As&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #2b91af; background: white;"&gt;Exception&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Visible = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Label2.Visible = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;True&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Text = &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;"Donate"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lbldonate.Links.Add(0, 6, &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: #a31515; background: white;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://paypal.me/mimenl" rel="nofollow"&gt;https://paypal.me/mimenl&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: black; background: white;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Try&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;End&lt;/SPAN&gt; &lt;SPAN lang="EN-US" style="font-size: 9.5pt; font-family: Consolas; color: blue; background: white;"&gt;Class&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Taking this out will have some impact on changing the code and the components when you build it from scratch based on the provided code samples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;If you download the source it can be changed quite easy. But I would like / appreciate it if you would keep mentioning me in some way. I just decide&amp;nbsp; to share since this problem was really bugging me and can be quite an inconvenience for people around you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Well I hope it will also work for you, running in debug mode from Visual studio might not always work. Compiling and running the compiled exe seems to work better.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;There is not much error handling and I could only test it in our environment so let me know if things don’t work out so I can see if I can fix it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;The user settings are stored in the roaming appdata folder and can easily be saved using DEM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Basically the flow of the application is like this&amp;nbsp; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Save usersettings -&amp;gt; user disconnects-&amp;gt; user reconnects -&amp;gt; unlock/reconnect event is triggers-&amp;gt; Load usersettings-&amp;gt; restore settings -&amp;gt; volume is on desired level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;As mentioned before the reconnect / unlock event is not always trigger before actual sound is played, which might still cause the sound to be at 100 % for a short while.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Conclusion&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Well it seems that something as simple as sound is not so simple after all. I still think that it’s fundamentally wrong that we see the 100 % behavior happening, and still feel it should be fixed in a different way. Maybe by letting the horizon agent interact with the base system and make it able to change sound setting there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Also it seems that windows 10 itself has some weird behavior too. Try muting your VDI without the program running, while playing something on youtube, now reconnect sound will be at 100% you hear YouTube w10 will still show your device is muted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;The fixes in this post seem to work in our environment but might still not be the best but for now we don’t have much choice.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;The fun part is that even when a lot of people stated it couldn’t be done there is still something that does the trick !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Let me know what you think, and if you need any help or want to get a discussion going on sound and horizon I would be happy to join.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;In the end I hope that all these things are not necessary and that we are doing something totally wrong and that someone could tell me how to fix it without any self-build tools just by using what’s available in DEM and Horizon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;But is sure was a great learning experience.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;Well time to log off again, a&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif;"&gt;nd in case the code doesn't appeal to you : "It isn't code it's spaghetti &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 22:28:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865952#M4118</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2020-06-30T22:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865953#M4119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok, wow! What an extensive and detailed post! Great work and thanks for sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree that it is best to have this fixed/adjusted in the product. Have you done a feature request for this? --&amp;gt; &lt;A href="https://www.vmware.com/company/contact/contactus.html?department=prod_request" title="https://www.vmware.com/company/contact/contactus.html?department=prod_request"&gt;https://www.vmware.com/company/contact/contactus.html?department=prod_request&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:07:09 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865953#M4119</guid>
      <dc:creator>ijdemes</dc:creator>
      <dc:date>2020-07-01T07:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865954#M4120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow, what a nice post! Thanks for sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question, I work also in a large hospital in the south, same country as you.&lt;/P&gt;&lt;P&gt;We are going to implement a Horizon environment W10 with DEM and App Volumes (2 or 4), within the next 6 months. At the moment we use Citrix XenDesktop, that will be migrated to Horizon. We use around 2000 concurrent VDI's and a lot of fat clients. At the moment we are designing (together with a third party) our environment. Is it possible to make an appointment with you, so we can come to your hospital and see how your environment is set-up, problems, lessons learned, etc. Let me know if that is possible for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 07:22:53 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865954#M4120</guid>
      <dc:creator>pieterheijms</dc:creator>
      <dc:date>2020-07-01T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865955#M4121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Ok, wow! What an extensive and detailed post! Great work and thanks for sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;I agree that it is best to have this fixed/adjusted in the product. Have you done a feature request for this? --&amp;gt; &lt;A class="jive-link-external-small" href="https://www.vmware.com/company/contact/contactus.html?department=prod_request" rel="nofollow" style="color: #3399cc;"&gt;https://www.vmware.com/company/contact/contactus.html?department=prod_request&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 2px; margin-right: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Thanks again!&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yeah i could do that &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's a known issue and that for now there wasn't much of a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a&amp;nbsp; look at the page you linked to see I can fill in a feature request, maybe they can also find a way based on event handling from a DEM agent or something. since that service is used a lot in Horizon environments anyway and runs. or maybe even the horizon agent itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 09:24:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865955#M4121</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2020-07-01T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865956#M4122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Wow, what a nice post! Thanks for sharing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;I have a question, I work also in a large hospital in the south, same country as you.&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;We are going to implement a Horizon environment W10 with DEM and App Volumes (2 or 4), within the next 6 months. At the moment we use Citrix XenDesktop, that will be migrated to Horizon. We use around 2000 concurrent VDI's and a lot of fat clients. At the moment we are designing (together with a third party) our environment. Is it possible to make an appointment with you, so we can come to your hospital and see how your environment is set-up, problems, lessons learned, etc. Let me know if that is possible for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 2px; margin-right: 2px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Pieter&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I send you PM,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 09:25:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865956#M4122</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2020-07-01T09:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865957#M4123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;B&gt;Mark&lt;/B&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First off, thank you for providing these tools and the extensive write-up. Much appreciated! Maybe also worth posting (a link to) this in the &lt;A _jive_internal="true" href="https://communities.vmware.com/community/vmtn/horizon/content?filterID=contentstatus[published]~objecttype~objecttype[thread]" title="https://communities.vmware.com/community/vmtn/horizon/content?filterID=contentstatus[published]~objecttype~objecttype[thread]"&gt;VMware Horizon®&lt;/A&gt; forum?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for filing a feature request, please use &lt;A href="https://wsone-horizon.ideas.aha.io/" title="https://wsone-horizon.ideas.aha.io/"&gt;https://wsone-horizon.ideas.aha.io/&lt;/A&gt;​, as that seems to be the &lt;A href="https://kb.vmware.com/s/article/2960048"&gt;new process&lt;/A&gt; for EUC products.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2020 10:13:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/1865957#M4123</guid>
      <dc:creator>DEMdev</dc:creator>
      <dc:date>2020-07-01T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2924766#M7757</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for the detailed post and great sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Which Horizon version did you use?&lt;/P&gt;&lt;P&gt;&amp;nbsp; And I heard that there were some fixes in recent&amp;nbsp;&lt;SPAN&gt;Horizon&amp;nbsp;&lt;/SPAN&gt;regarding audio out volume level. Would you please help to take a try with the latest Horizon? thank you in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 14:15:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2924766#M7757</guid>
      <dc:creator>zhi</dc:creator>
      <dc:date>2022-08-19T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2928086#M7769</link>
      <description>&lt;P&gt;Hi zhi,&lt;/P&gt;&lt;P&gt;This is a colleague of Mark, we are currently using Horizon 7.13.1...&lt;BR /&gt;&lt;BR /&gt;We are not ready to transition to 8 yet...,&amp;nbsp;it sounds promising that there are fixes in recent Horizon versions.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 12:53:43 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2928086#M7769</guid>
      <dc:creator>RobinHarmsen</dc:creator>
      <dc:date>2022-09-09T12:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2928103#M7770</link>
      <description>&lt;P&gt;I still find issues with audio in 8. The volume and mute keys not doing anything even though windows is shows the volume going up and down. This seems to be tied to the HTLM5 redirected stuff though. Work around is just use the volume controls in sites like YouTube instead.&lt;/P&gt;&lt;P&gt;The bigger issue we are running into is if you use Laptops as your terminal. We have discovered that if you undock a laptop while on Horizon and then dock back up, Teams will no longer work with your audio devices. It will refuse to pickup or connect to meetings till you completely close the Horizon Client and then relaunch it on the laptop. You don't have to restart your VDI machine. This seems to "unstuck" the audio hooks built into the Horizon Client for Teams and lets Teams behave as expected. I REALY miss S4B.... it worked SOOO much better in VDI.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 13:47:38 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2928103#M7770</guid>
      <dc:creator>NickTT</dc:creator>
      <dc:date>2022-09-09T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2933593#M7821</link>
      <description>&lt;P&gt;hi Zhi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A late reply,&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&lt;SPAN&gt;7.13.1.. is seems that sound works ok, atleast trough client when it comes to store the sound level properly when disconnecting en reconnecting. (no&amp;nbsp; boost to 100 %) also the mute status is properly handled (it used to unmute)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As Robin mentioned we are not yet at horizon 8. once we are I'll&amp;nbsp;also update this post once we are.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 08:17:01 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2933593#M7821</guid>
      <dc:creator>MiMenl</dc:creator>
      <dc:date>2022-10-14T08:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: The “not so“ nice things about sound and Horizon in a healthcare environment.</title>
      <link>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2989774#M8145</link>
      <description>&lt;P&gt;Just stubbled across this when looking into a very minor audio issue for our small Horizon VDI solution.&lt;/P&gt;&lt;P&gt;Its not related to anything we are seeing but I wanted to add a comment to say that is some very nice work. I love seeing IT experts putting in the extra effort to fix all those little issues that drive users crazy. It really helps instil trust and professionalism in the work we do in IT. It also really helped me appreciate how complex Horizon can get as you scale up to large desktop pools. Something I'll keep in mind as we grow our solution.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 10:48:11 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Dynamic-Environment-Manager/The-not-so-nice-things-about-sound-and-Horizon-in-a-healthcare/m-p/2989774#M8145</guid>
      <dc:creator>JamesETaylor</dc:creator>
      <dc:date>2023-10-05T10:48:11Z</dc:date>
    </item>
  </channel>
</rss>

