Here is some code i wrote for controlling winamp from inside quake. This is just for the tittle, if people want full control, ill paste the rest.
This is for qrack.
1) goto cmd.c right under the Cmd_PrintLoc_F code paste this code
2) Under Cmd_AddCommand ("spot", Cmd_PrintLoc_f);//R00k
Add
3) Bind a key to "winamp"
Enjoy!
This is for qrack.
1) goto cmd.c right under the Cmd_PrintLoc_F code paste this code
Code:
void Cmd_GetWinampTitle_f (void) // neil { HWND hwndWinamp = FindWindow("Winamp v1.x",NULL); 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; //Con_Printf ("Song: %s", this_title); Cbuf_AddText (va("say MP3: %s\n", this_title)); Cbuf_Execute (); }
Add
Code:
Cmd_AddCommand ("winamp", Cmd_GetWinampTitle_f); //Neil
Enjoy!
Comment