View Full Version : Getting Filename or Title of current playing song
Dutchtux
1st April 2002, 07:09
What must I do get the filename or Title of the song current playing.
I got this but it doesnt work.
WMFilename = SendMessage(hwnd_winamp, WM_WA_IPC, 0, IPC_ISPLAYING)
Is this the good line or must it totally diffrent?
Gourou
3rd April 2002, 15:05
*sighs* search this thread, it's in here 5 times
Dutchtux
3rd April 2002, 15:48
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.
Gourou
4th April 2002, 11:07
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.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.