hi zusammen ,
also ich habe mir mal so einen player erstellt! (der auch geht)
#include <ButtonConstants.au3>
#include <GUIConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Sound.au3>
opt("guioneventmode",1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("doPe's Player", 596, 469, 317, 144)
GUISetBkColor(0x000000)
$Pic1 = GUICtrlCreatePic("C:\Users\mathias\Pictures\mussik.jpg", 0, 56, 572, 244, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("Song beenden",16, 328, 131, 41)
GUICtrlSetOnEvent(-1,"stop")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 14, 400, 0, "Rage Italic")
$Button2 = GUICtrlCreateButton("Play", 16, 392, 131, 41)
GUICtrlSetOnEvent(-1,"Play")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 14, 400, 0, "Rage Italic")
$Button3 = GUICtrlCreateButton("Pause", 160, 360, 131, 41)
GUICtrlSetOnEvent(-1,"Pause")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 14, 400, 0, "Rage Italic")
$Button4 = GUICtrlCreateButton("Weiter", 368, 360, 131, 41)
GUICtrlSetOnEvent(-1,"Resume")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetFont(-1, 14, 400, 0, "Rage Italic")
$Label1 = GUICtrlCreateLabel("Player by dope³", 8, 8, 388, 33)
GUICtrlSetFont(-1, 14, 400, 0, "Rage Italic")
GUICtrlSetColor(-1, 0xFF0000)
guisetonevent($GUI_EVENT_CLOSE,"_exit")
GUICtrlSetState($Button1, $GUI_DISABLE)
GUICtrlSetState($Button3, $GUI_DISABLE)
GUICtrlSetState($Button4, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
WEnd
func play()
$choosefile=fileopendialog("Choose a sound","C:\Users\" & @username & "\Music","Musik(*.mp3)",1+4)
global $sound=_soundopen($choosefile)
global $play=_SoundPlay($sound)
GUICtrlSetState($Button3, $GUI_Enable)
GUICtrlSetState($Button1, $GUI_Enable)
endfunc
[/autoit][autoit][/autoit][autoit]func stop()
_soundstop($sound)
GUICtrlSetState($Button3, $GUI_DISABLE)
GUICtrlSetState($Button4, $GUI_DISABLE)
GUICtrlSetState($Button1, $GUI_DISABLE)
EndFunc
[/autoit][autoit][/autoit][autoit]func _exit()
_soundclose($sound)
exit
endfunc
func resume()
_soundresume($sound)
GUICtrlSetState($Button3, $GUI_enable)
GUICtrlSetState($Button4, $GUI_DISABLE)
EndFunc
[/autoit][autoit][/autoit][autoit]func pause()
_SoundPause($sound)
GUICtrlSetState($Button4, $GUI_Enable)
GUICtrlSetState($Button3, $GUI_DISABLE)
endfunc
[/autoit]
Nun wollte ich wissen wir der code heißen muss wenn ich da so ein silder drin hab also das ich vorspulen kann und dann noch einen 2ten slider zur vol. änderung... bedanke mich schonmal im vorraus...