Je ne sais pas comment fonctionne ce code.
Code : Tout sélectionner
char *file = "C:\\download\\booga.mp3";
int x;
for (x = 0; x <= strlen(file); x ++)
PostMessage(hwnd_winamp,WM_WA_IPC,(LPARAM)file[x],IPC_PLAYFILE);
Code : Tout sélectionner
#WM_WA_IPC = #WM_USER
#IPC_PLAYFILE = 100
Code : Tout sélectionner
HwND_Winamp=FindWindow_("Winamp v1.x",#Null)

Ah si, j'allais oublier. Voilà un code proposé par Dri quand je lui est demandé s'il pouvait traduir ce code. à partir de la structure, c plus moi (en gros j'ai rien fais moi appart changer le nom du fichier lol) c sa traduction.
Code : Tout sélectionner
HwND_Winamp=FindWindow_("Winamp v1.x",#Null)
If hwnd_winamp=0
MessageBeep_(#MB_ICONASTERISK)
EndIf
Structure Bytes
b.b[0]
EndStructure
file.s = "E:\Téléchargements\Les Experts.mp3"
*ptr.Bytes = @file
x = 0
While *ptr\b[x]
PostMessage_(hWnd_Winamp, #WM_WA_IPC, *ptr\b[x], #IPC_PLAYFILE)
x + 1
Wend
Merci d'avance.