Video of my ambient lighting setup
(2015-09-23, 20:42)velkrosmaak Wrote: Can you elaborate on how you get Winamp to launch as a separate player in order to get Milkdrop to work please? This is the main reason I built my boblight setup!

In short, this isn't easy and it's quirky and not a smooth experience. Nonetheless, here we go.

Assuming you have winamp installed:

Run Winamp directly from windows.
Under options set:
Visualization - Select plugin to Milkdrop 2...
Visualization (lower in menu) to Open in Big Component View
Maximize Winamp
Close Winamp

If you don't already have it, install Autohotkey.

Create a blank ahk script called KodiWinamp.ahk and paste the following into it:
Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Enable warnings to assist with detecting common errors.
SendMode Event  
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
DetectHiddenWindows, On
DetectHiddenText, On
FN = %1%
Run "C:\Program Files (x86)\Winamp\winamp.exe" "%FN%",,Max, PID
WinActivate ahk_pid %PID%
WinWaitActive ahk_pid %PID%
Sleep 500
Send, ^+k
Sleep 500
MouseClick, Left, 500, 500
Send, !{Enter}
Sleep 500
Loop
{
    IfWinExist  - Winamp [Stopped]
    {
        break        
    }
    Sleep 250    
}
Sleep 1000
WinActivate - Winamp [Stopped]
WinWaitActive - Winamp [Stopped]
Sleep 500
Send, !{F4}

Now compile that into an exe by right clicking the file and clicking compile.
Move the exe file into the Winamp directory in Program Files (x86) or Program Files (depending whether you are using 64 bit or 32 bit windows).

Next create an external player by creating playercorefactory.xml under your userdata directory.
Code:
<playercorefactory>
  <players>
    <player name="WinAmp" type="ExternalPlayer" audio="true" video="false">
      <filename>C:\Program Files (x86)\Winamp\KodiWinamp.exe</filename>
      <args>"{1}"</args>
      <hidexbmc>false</hidexbmc>
      <hideconsole>false</hideconsole>
      <warpcursor>none</warpcursor>
    </player>
  </players>
  <rules action="prepend">
    <rule filetypes="mp3" player="WinAmp" />
  </rules>
</playercorefactory>

Make sure the directories in both the above match the directories in your system.

By default now Kodi will run mp3s using the script which launches Winamp.

Warning: look at all those sleep commands in the ahk script. The amount of time will you need to sleep WILL vary from system to system. You'll have to play around with it.
Is short, the script:

1) Launches Winamp with one and only one song.
2) Opens the Visualization window
3) Maximizes it
4) Waits until the song is done
5) Closes Winamp

If you don't do 4 and 5, Winamp stays open on top of Kodi.
Reply


Messages In This Thread
RE: Video of my ambient lighting setup - by KenV99 - 2015-09-24, 13:41


Logout Mark Read Team Forum Stats Members Help
Video of my ambient lighting setup0