Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 19th May 2003, 15:25   #1
CapticProtonic
Junior Member
 
Join Date: Aug 2002
Posts: 2
How to get skin file or folder with Delphi?

Hi,

I'm using Delphi and need the path and filename to the skin-file (*.wsz) currently in use.
How can I do this?

Thank you!
CapticProtonic is offline   Reply With Quote
Old 24th May 2003, 00:56   #2
Hill-Groover
Junior Member
 
Join Date: May 2003
Posts: 3
you could use the following code to get the path to the winamp skins folder using the registry,

uses
Registry;

function GetWinampSkinsDir: String;
var
Reg: TRegistry;
begin
Reg := TRegistry.Create;
if Reg.OpenKey('\Software\Winamp', false) then
begin
Result := Reg.ReadString('') + '\Skins';
Reg.CloseKey;
Reg.Free;
end
else
ShowMessage('Unable to locate winamp!');
end;

still working on the Current Skin but i'll let you know when i come up with something.
Hill-Groover is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump