Go Back   Winamp Forums > Developer Center > Winamp Development

Reply
Thread Tools Search this Thread Display Modes
Old 1st April 2002, 07:09   #1
Dutchtux
Junior Member
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 19
Getting Filename or Title of current playing song

What must I do get the filename or Title of the song current playing.
I got this but it doesnt work.
code:

WMFilename = SendMessage(hwnd_winamp, WM_WA_IPC, 0, IPC_ISPLAYING)


Is this the good line or must it totally diffrent?
Dutchtux is offline   Reply With Quote
Old 3rd April 2002, 15:05   #2
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
*sighs* search this thread, it's in here 5 times
Gourou is offline   Reply With Quote
Old 3rd April 2002, 15:48   #3
Dutchtux
Junior Member
 
Join Date: Mar 2002
Location: The Netherlands
Posts: 19
I Find only 3 threads.
1 is for C++.I dont realy understand that language.
And 2 others I dont understand one thing about it.
Dutchtux is offline   Reply With Quote
Old 4th April 2002, 11:07   #4
Gourou
Senior Member
 
Gourou's Avatar
 
Join Date: Feb 2002
Location: The backside of the universe on the trailing edge of eternity
Posts: 238
you dont understand it because it's not as simple as a simple send message command. What it returns as you know is a Long value, 8 digit number, what that is is a pointer in memory, it's the memory location of where the title is stored. C++ uses a simple thing to allow you to directly read the string given the pointer, VB is not so easy. You must make string, find the pointer to the string, then use either CopyMemory, or lstrcpy to copy the data from the pointer winamp gave you, to the pointer of your own string, then when you use the string in VB, the data should be there.
Gourou 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