Depuis peu j'ai crée ( avec votre aide ) un lecteur de musique basic..
Vous devez vous dire : " Ah.. encore lui

Mais je souhaite en faire un peu plus :
-Avoir comme tout les autre logiciels une barre en haut avec genre Fichier | outils | Affichage | Aide
-Une progress Bar en fonction de la musique ( Je cherche une ressemblance avec d'autre topic )
-Une Boite avec la liste des musique.
Si vous avez d'autre idée assez simple je veux bien que me vous les dites.
Script :
► Afficher le texte
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=/img/sens_interdit.ico
#AutoIt3Wrapper_Res_Description=Lecteur Audio player par GaMeR en Français.
#AutoIt3Wrapper_Res_Language=1036
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;=================================================
;===
;===
;=================================================
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Sound.au3>
;===========================================================================================
;===========================================================================================
$titre = "Média Player Autoit"
Break("enable")
;===========================================================================================
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate($titre, 438, 101, 410, 438)
$Button1 = GUICtrlCreateButton("...", 8, 64, 41, 33, $WS_GROUP)
GUICtrlSetFont(-1, 12, 800, 0, "Comic sans MS")
$Button2 = GUICtrlCreateButton("Play", 56, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Button3 = GUICtrlCreateButton("Pause", 112, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Button4 = GUICtrlCreateButton("Son Favoris", 352, 8, 81, 25, $WS_GROUP)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Button5 = GUICtrlCreateButton("Jouer Son", 352, 40, 81, 25, $WS_GROUP)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Label2 = GUICtrlCreateLabel("Volume :", 224, 72, 53, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Label3 = GUICtrlCreateLabel("Poids Son :", 8, 40, 178, 25)
$Slider1 = GUICtrlCreateSlider(272, 72, 161, 25)
$Button6 = GUICtrlCreateButton("", 168, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Progress1 = GUICtrlCreateProgress(8, 8, 334, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
;===========================================================================================
;===========================================================================================
$size = ""
$souce = ""
$sound = 0
$vol = 100
$volume = ""
;===========================================================================================
;===========================================================================================
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Slider1
SoundSetWaveVolume(GUICtrlRead($slider1))
Case $Button1
$source = FileOpenDialog("Ouvrir:",@DesktopDir&'\',"mp3 (*.mp3)|wav (*.wav)|wma (*.wma)|a52 (*.a52)|acc (*.acc)|ac3 (*.ac3)|ogg (*.ogg)|flac (*.flac)|mp1 (*.mp1)|mp2 (*.mp2)|mp4 (*.mp4)|oga (*.oga)",9)
If $source = "" Then MsgBox(16,"$titre","Erreur, aucun son n'a été choisis !")
If $source <> "" Then
$size = FileGetSize($source)
GUICtrlSetData($Label3,"Poids Son : "& $size & " bytes")
EndIf
Case $Button2
If $sound = 0 Then
$sound = _SoundOpen($source)
_SoundPlay($sound)
ElseIf _SoundStatus($sound) = "paused" Then
_SoundResume($sound)
Endif
Case $Button3
_SoundPause($sound)
Case $Button4
If $source = "" Then MsgBox(16,$titre,"Erreur, aucun son n'a été choisis !")
If $source <> "" Then
FileDelete(@ScriptDir&"\fav.txt")
FileWrite(@ScriptDir&"\fav.txt", $source)
MsgBox(64,$titre,"Votre son à été marqué comme favoris.")
EndIf
Case $Button5
$source = FileRead(@ScriptDir&"\fav.txt")
If FileExists(@ScriptDir&"\fav.txt") = 0 Then MsgBox(16,$titre,"Erreur, aucun son n'est définis comme favoris !")
If FileExists(@ScriptDir&"\fav.txt") = 1 Then
If FileExists($source) = 0 Then MsgBox(16,$titre,"Erreur, le son définis comme favoris n'existe pas ou plus !")
If FileExists($source) = 1 Then
$sound = 0
$sound = $source
SoundPlay($sound)
EndIf
EndIf
If $source = "" Then MsgBox(16,$titre,"Erreur, aucun son n'a été choisis !")
If $source <> "" Then
$size = FileGetSize($source)
GUICtrlSetData($Label3,"Poids Son : "& $size & " bytes")
EndIf
Case $Progress1
;AUCUNE FONCTION TROUVABLE..
EndSwitch
WEnd
#AutoIt3Wrapper_icon=/img/sens_interdit.ico
#AutoIt3Wrapper_Res_Description=Lecteur Audio player par GaMeR en Français.
#AutoIt3Wrapper_Res_Language=1036
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;=================================================
;===
;===
;=================================================
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <SliderConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Sound.au3>
;===========================================================================================
;===========================================================================================
$titre = "Média Player Autoit"
Break("enable")
;===========================================================================================
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate($titre, 438, 101, 410, 438)
$Button1 = GUICtrlCreateButton("...", 8, 64, 41, 33, $WS_GROUP)
GUICtrlSetFont(-1, 12, 800, 0, "Comic sans MS")
$Button2 = GUICtrlCreateButton("Play", 56, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Button3 = GUICtrlCreateButton("Pause", 112, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Button4 = GUICtrlCreateButton("Son Favoris", 352, 8, 81, 25, $WS_GROUP)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Button5 = GUICtrlCreateButton("Jouer Son", 352, 40, 81, 25, $WS_GROUP)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Label2 = GUICtrlCreateLabel("Volume :", 224, 72, 53, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Comic sans MS")
$Label3 = GUICtrlCreateLabel("Poids Son :", 8, 40, 178, 25)
$Slider1 = GUICtrlCreateSlider(272, 72, 161, 25)
$Button6 = GUICtrlCreateButton("", 168, 64, 49, 33, $WS_GROUP)
GUICtrlSetFont(-1, 11, 800, 0, "Comic sans MS")
$Progress1 = GUICtrlCreateProgress(8, 8, 334, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
;===========================================================================================
;===========================================================================================
$size = ""
$souce = ""
$sound = 0
$vol = 100
$volume = ""
;===========================================================================================
;===========================================================================================
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Slider1
SoundSetWaveVolume(GUICtrlRead($slider1))
Case $Button1
$source = FileOpenDialog("Ouvrir:",@DesktopDir&'\',"mp3 (*.mp3)|wav (*.wav)|wma (*.wma)|a52 (*.a52)|acc (*.acc)|ac3 (*.ac3)|ogg (*.ogg)|flac (*.flac)|mp1 (*.mp1)|mp2 (*.mp2)|mp4 (*.mp4)|oga (*.oga)",9)
If $source = "" Then MsgBox(16,"$titre","Erreur, aucun son n'a été choisis !")
If $source <> "" Then
$size = FileGetSize($source)
GUICtrlSetData($Label3,"Poids Son : "& $size & " bytes")
EndIf
Case $Button2
If $sound = 0 Then
$sound = _SoundOpen($source)
_SoundPlay($sound)
ElseIf _SoundStatus($sound) = "paused" Then
_SoundResume($sound)
Endif
Case $Button3
_SoundPause($sound)
Case $Button4
If $source = "" Then MsgBox(16,$titre,"Erreur, aucun son n'a été choisis !")
If $source <> "" Then
FileDelete(@ScriptDir&"\fav.txt")
FileWrite(@ScriptDir&"\fav.txt", $source)
MsgBox(64,$titre,"Votre son à été marqué comme favoris.")
EndIf
Case $Button5
$source = FileRead(@ScriptDir&"\fav.txt")
If FileExists(@ScriptDir&"\fav.txt") = 0 Then MsgBox(16,$titre,"Erreur, aucun son n'est définis comme favoris !")
If FileExists(@ScriptDir&"\fav.txt") = 1 Then
If FileExists($source) = 0 Then MsgBox(16,$titre,"Erreur, le son définis comme favoris n'existe pas ou plus !")
If FileExists($source) = 1 Then
$sound = 0
$sound = $source
SoundPlay($sound)
EndIf
EndIf
If $source = "" Then MsgBox(16,$titre,"Erreur, aucun son n'a été choisis !")
If $source <> "" Then
$size = FileGetSize($source)
GUICtrlSetData($Label3,"Poids Son : "& $size & " bytes")
EndIf
Case $Progress1
;AUCUNE FONCTION TROUVABLE..
EndSwitch
WEnd
Merci d'avance pour toutes vos réponse
