Control Lucidamp

Beginning with version 2.1, Lucidamp provides an API that's available via standard win32 messaging. To use the API, a handle to Lucidamp's API window is neccessary. This handle can be retrieved in several ways. For instance, if you have a handle to the main Winamp window (for instance, from inside a plugin), you can use the following:

    HWND hAPI = FindWindowEx(hWinampWindow, NULL, TEXT("Lucidamp Interface"), NULL);
Alternatively, you could use FindWindow in the same manner (FindWindow doesn't require knowing the parent window's handle).

Once you have a handle to the API window, you can then send messages to it to retrieve information and set different values. All messages that return a value should be sent using SendMessage, such as:

    int ret = SendMessage(hAPI, WM_USER, 0, id);
Messages that change data values should be sent with SendNotifyMessage, as in the following example:
    int ret = SendNotifyMessage(hAPI, WM_USER, data, id);

Data Retrieval Messages
IDDescription
0 Is translucency enabled for the main Winamp window? Returns 1 if true, 0 otherwise.
1 Is translucency enabled for Winamp's Playlist Editor? Returns 1 if true, 0 otherwise.
2 Is translucency enabled for Winamp's Equalizer? Returns 1 if true, 0 otherwise.
3 Is translucency enabled for Winamp's Mini Browser? Returns 1 if true, 0 otherwise.
4 Is translucency enabled for MikroAMP? Returns 1 if true, 0 otherwise. If MikroAMP isn't installed, this will always return 0.
5 Is translucency enabled for Winamp dialog windows? Returns 1 if true, 0 otherwise. (2.2)
10 Is opaque movement enabled for the main Winamp window?
11 Is opaque movement enabled for Winamp's Playlist Editor?
12 Is opaque movement enabled for Winamp's Equalizer?
13 Is opaque movement enabled for Winamp's Mini Browser?
 - Opaque movement is not supported for MikroAMP
 - Opaque movement is not supported for Winamp dialog windows
50 Is fading enabled for the main Winamp window? (2.5)
51 Is fading enabled for Winamp's Playlist Editor? (2.5)
52 Is fading enabled for Winamp's Equalizer? (2.5)
53 Is fading enabled for Winamp's Mini Browser? (2.5)
 - Fading is not supported for MikroAMP
 - Fading is not supported for Winamp dialog windows
200 Get active transparency level for the main Winamp window. The return value ranges from 0 to 100, where 0 is completely transparent, while 100 is completely opaque.
201 Get active ttransparency level for Winamp's Playlist Editor.
202 Get active ttransparency level for Winamp's Equalizer.
203 Get active ttransparency level for Winamp's Mini Browser.
204 Get transparency level for MikroAMP.
205 Get transparency level for Winamp dialog windows. (2.2)
250 Get transparency level for the main Winamp window. The return value ranges from 0 to 100, where 0 is completely transparent, while 100 is completely opaque. (2.5)
251 Get transparency level for Winamp's Playlist Editor. (2.5)
252 Get transparency level for Winamp's Equalizer. (2.5)
253 Get transparency level for Winamp's Mini Browser. (2.5)
  Inactive translucency is not supported for MikroAMP
  Inactive translucency is not supported for Winamp dialog windows.
5000 Get Fade delay in milliseconds, range 200-2000. (2.5)
9999 Return Lucidamp's current version number. The high WORD is the major number and the low WORD is the minor number. (2.2)

Data Modifying Messages
IDDescription
100 Enable or disable active translucency for the main Winamp window. To enable, set data = 1, and data = 0 to disable.
101 Enable or disable active translucency for Winamp's Playlist Editor.
102 Enable or disable active translucency for Winamp's Equalizer.
103 Enable or disable active translucency for Winamp's Mini Browser.
104 Enable or disable translucency for MikroAMP.
105 Enable or disable translucency for Winamp dialog windows. (2.2)
150 Enable or disable inactive translucency for Winamp's main window. (2.5)
151 Enable or disable inactive translucency for Winamp's Playlist Editor. (2.5)
152 Enable or disable inactive translucency for Winamp's Equalizer. (2.5)
153 Enable or disable inactive translucency for Winamp's Mini Browser. (2.5)
  Inactive translucency is not supported for MikroAMP
  Inactive translucency is not supported for Winamp dialog windows.
300 Set active transparency level for the main Winamp window. The data value ranges from 0 to 100, where 0 is completely transparent, while 100 is completely opaque.
301 Set active transparency level for Winamp's Playlist Editor.
302 Set active transparency level for Winamp's Equalizer.
303 Set active transparency level for Winamp's Mini Browser.
304 Set transparency level for MikroAMP.
305 Set transparency level for Winamp dialog windows. (2.2)
350 Set inactive translucency for Winamp's main window. (2.5)
351 Set inactive translucency for Winamp's Playlist Editor. (2.5)
352 Set inactive translucency for Winamp's Equalizer. (2.5)
353 Set inactive translucency for Winamp's Mini Browser. (2.5)
  Inactive translucency is not supported for MikroAMP
  Inactive translucency is not supported for Winamp dialog windows.
1000 Save the current Lucidamp configuration.
2000 Load the last saved Lucidamp configuration.
3000 Open Lucidamp's configuration dialog. (2.2)
5500 Set Fade delay in milliseconds, range 200-2000. (2.5)

© 2001, Todd Ostermeier