So I have the Mic skin ToolTip working correctly and when the Mic is connected/disconnected, the ToolTip now works perfectly. Adjusting it's name to match the Mic or Line In. Trouble is, no matter what I do, I can't get my other skin, Volume skin, to activate/deactivate the Mic skin when the name changes.
As a test, I made a temporary button on the Mic skin to change colour when the name changes. So if "Microphone" is in the name, it lights green, and red for not connected. But it just stays red! In the About window, the Mic skin shows [mDeviceName] and [mDeviceID] change with each connect/disconnect. But the [mDeviceList] always shows Line In Name and ID. How do I get that to change? But when I monitor the [mDeviceName] to change the colour of [TempButton] it doesn't work. Even though the ToolTip changes.
Thanks for your help.
As a test, I made a temporary button on the Mic skin to change colour when the name changes. So if "Microphone" is in the name, it lights green, and red for not connected. But it just stays red! In the About window, the Mic skin shows [mDeviceName] and [mDeviceID] change with each connect/disconnect. But the [mDeviceList] always shows Line In Name and ID. How do I get that to change? But when I monitor the [mDeviceName] to change the colour of [TempButton] it doesn't work. Even though the ToolTip changes.
I'm also getting a problem now with the Mic volume percentage. It always shows zero. If you scroll to increase, it constantly resets to zero. It was working perfect until recent, I have no idea what's going on with it.EDIT: After reading 10 pages of the original thread, I found out about the RegEx:But no matter what I tried, just the * alone never worked, until I used .* and RegExpSubstitute=1. Now the Button changes colour and the ToolTip works perfectly using:
- @Yincognito: The * are just wildcards, so *Microphone* can mean SomePrefixHere Microphone or Microphone SomeSuffixHere, or just plain Microphone without any pre- or post- additional characters. It's the simpler equivalent of .* from regex, basically.
This part of the problem finally solved!!!Code:
Substitute="(Realtek(R) Audio)":"(R)","(USB Audio)":"USB",".*Microphone":"Mic"IfMatch="Mic"IfMatchAction=[!SetOption TempButton FillAlpha "FillColor #Green#"][!UpdateMeter *] [!Redraw]IfNotMatchAction=[!SetOption TempButton FillAlpha "FillColor #Red#"][!UpdateMeter *] [!Redraw]
In JSMorley's Input/Output skin, I am getting an output device shown as Speakers (USB Audio) when connecting Mic, why is this?EDIT: I realised that the Mic skin I was working on was the old RoundVolume one which had both Input and Output combined into one skin and also the Powershell script. But now I've removed the Output code from the skin and script, all good with this!
Thanks for your help.
Statistics: Posted by sl23 — Yesterday, 4:08 pm