For example with Trout what I would have done is selected Add files and then used the code for LibreOffice but changing the part TITLE:Open to TITLE:Select audio files. So the code would then be >>
Code:
#include <GuiComboBoxEx.au3>
_Main()
Func _Main()
Local $aArray, $aSplit, $hComboBox = ControlGetHandle("[TITLE:Select audio files; CLASS:#32770]", "", "[CLASS:ComboBox; INSTANCE:2]"), _
$sFilePath = @ScriptDir & "\Config.txt", $sReturn = "", $sUnique = ""
$aArray = StringSplit(_GUICtrlComboBoxEx_GetList($hComboBox), "|")
For $i = 1 To $aArray[0]
$aSplit = StringSplit($aArray[$i], "(")
If @error Then
ContinueLoop
EndIf
$aArray[$i] = StringReplace($aSplit[$aSplit[0]], "*.", "")
$aArray[$i] = StringReplace($aArray[$i], ")", "")
$aSplit = StringSplit($aArray[$i], ";")
For $j = 1 To $aSplit[0]
If $aSplit[$j] = "*" Then
ContinueLoop
EndIf
$aSplit[$j] = StringStripWS($aSplit[$j], 3)
If StringInStr($sUnique, $aSplit[$j] & ";", 1) = 0 Then
$sUnique &= $aSplit[$j] & ";"
$sReturn &= $aSplit[$j] & "=Trout.exe" & @CRLF
EndIf
Next
Next
_SetFile($sReturn, $sFilePath, 1)
EndFunc ;==>_Main
Func _SetFile($sString, $sFile, $iOverwrite = 0) ; By guinness.
Local $hFileOpen
$hFileOpen = FileOpen($sFile, $iOverwrite + 1)
FileWrite($hFileOpen, $sString)
FileClose($hFileOpen)
If @error Then
Return SetError(1, 0, $sString)
EndIf
Return $sString
EndFunc ;==>_SetFile
See how easy AutoIt can be
