P
P
Peter2018-01-28 21:47:20
C++ / C#
Peter, 2018-01-28 21:47:20

How to programmatically get the current track from Winamp?

Good afternoon. I want to write a program that would broadcast the current track from Winamp to Vk.
Actually how to get the data I need from Winamp? Without resorting to tricks with first saving to a file and then transferring it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-01-29
@Morpheus_God

forums.winamp.com/showthread.php?s=&threadid=180297

There are a number of other things you can do to query/control Winamp. For example, this C/C++ code fragment will get the title of the current song playing in Winamp. A simple explanation is that it retrieves Winamp's window title, removes the trailing ' - Winamp'.
code:
char this_title[2048],*p;
GetWindowText(hwndWinamp,this_title,sizeof(this_title));
p = this_title+strlen(this_title)-8;
while (p >= this_title)
{
if (!strnicmp(p,"- Winamp",8)) break;
p--;
}
if (p >= this_title) p--;
while (p >= this_title && *p == ' ') p--;
*++p=0;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question