[REBOL] Re: Skinz 0.1
From: info:id-net:ch at: 23-Feb-2002 8:20
If Rebollers want to take advance in the direction of working on winamp,
people should know that winamp is expected to release a winamp 3 that is
of winamp1.x and 2.x, specially for skins. The old skins wont work with this
----- Original Message -----
From: "Terry Brownell" <[tbrownell--shaw--ca]>
Sent: Saturday, February 23, 2002 6:04 AM
Subject: [REBOL] Skinz 0.1
> So, can't find an mp3 API (xaudio had/has one coming this quarter
www.xaudio.com), but what I did find was the API for winamp. So for this
experiment we'll have View control Winamp.
> First thing is determining the winamp window, then we can pass messages to
> Question: How do we get the Winamp handle using this excerpt below as a
guide... What I don't get is how do we search a window title to find a name
with a particular string in it, in this case "Winamp v1.x"
> Heres a start..
> TheLib: %user32.dll
> LoadLib: load/library TheLib
> ; Your code here. hehe
> (The complete winamp api article is here...
> External applications can find the Winamp window using the following
pieces of code:
> HWND hwndWinamp = FindWindow("Winamp v1.x",NULL);
> Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal
lpClassName As String, ByVal lpWindowName As String) As Long
> Dim hwndWinamp as long
> hwndWinamp = FindWindow("Winamp v1.x",vbNullString)
> Delphi Pascal:
> var hwndWinamp : THandle;
> hwndWinamp := FindWindow('Winamp v1.x', nil);
> Note that this code uses the FindWindow() function to find a window of any
title whose class name is "Winamp v1.x". All versions of Winamp 1.x and 2.x
have the class "Winamp v1.x", unless changed using the /CLASS= switch (see
above). Note that if you want to run multiple Winamp's and easily tell the
difference between them, you can use the /CLASS= switch.