I have an audio switcher that has an image for a headset and speakers, the image would default to speaker even if the audio device was the headset
In this sample code the devicename is measured, if it doesn't match its copied to the clipboard, i added a clipboard variable for an easy destination to paste to.
This match always returns false and I don't know why
swagginnate wrote:I have an audio switcher that has an image for a headset and speakers, the image would default to speaker even if the audio device was the headset
In this sample code the devicename is measured, if it doesn't match its copied to the clipboard, i added a clipboard variable for an easy destination to paste to.
This match always returns false and I don't know why
I'm not very sure what you'd like to accomplish. The code does the following: when refreshed, the [MeasureAudioLevel] measure returns the name of the audio device. The (otherwise useless) [measurestring] String measure gets the same value (name). If this matches the value of the clipboard variable, the IfMatchAction option sets the color of the [BG] meter to green, otherwise the IfNotMatchAction option sets it to red and copies the name of the audio device to clipboard. Note that this isn't the same thing as setting the same value to the clipboard variable. This variable doesn't get the name of the device. This name will only be copied to clipboard.
I know the clipboard variable isnt updated unless you edit the program
What i want is for the BG to turn green, but i cannot get the ifmatch to return true
swagginnate wrote:I know the clipboard variable isnt updated unless you edit the program
What i want is for the BG to turn green, but i cannot get the ifmatch to return true
Not sure. What the [MeasureAudioLevel] measure returns, in different situations?
Also note that I wouldn't use the AudioLevel plugin, but the Win7AudioPlugin. Just try to replace the Plugin option of the [MeasureAudioLevel] measure with Plugin=Win7AudioPlugin.