Hallo
etwa so ?
Spoiler anzeigen
#cs ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]AutoIt Version: 3.2.4.9
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
[/autoit] [autoit][/autoit] [autoit]; Script Start - Add your code below here
#NoTrayIcon
#include <GUIConstants.au3>
#include <Sound.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Player", 633, 226, 193, 115, BitOR($WS_CAPTION,$WS_BORDER,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("RePlay", 368, 152, 65, 33, 0)
$Pausebutton = GUICtrlCreateButton("&Pause", 432, 152, 65, 33, 0)
$Button3 = GUICtrlCreateButton("&Next", 496, 152, 65, 33, 0)
$Button4 = GUICtrlCreateButton("&Open", 560, 152, 65, 33, 0)
$Button5 = GUICtrlCreateButton("EXIT", 24, 160, 41, 25, 0)
$Volume = GUICtrlCreateSlider(0, 192, 625, 25)
GUICtrlSetData(-1, 50)
GUICtrlSetCursor($Volume, 5)
$List1 = GUICtrlCreateList("Halllo Du Da !", 0, 0, 625, 149)
$Checkbox2 = GUICtrlCreateCheckbox("Repeat All!", 104, 160, 73, 17)
$Checkbox3 = GUICtrlCreateCheckbox("Repeat ", 200, 160, 57, 17)
$Input1 = GUICtrlCreateInput("0", 280, 160, 17, 21)
$Label1 = GUICtrlCreateLabel("ALabel1", 376, 152, 43, 17)
$Label2 = GUICtrlCreateLabel("Times", 304, 160, 42, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If $pause = 1 Then
SoundPlay($re) and $pause = 0
EndIf
Case $Pausebutton
_SoundPause($re)
Dim $Pause = 0
Case $Button4
$re = FileOpenDialog('','','Mp3-Files (*.mp3;*.wav)')
SoundPlay($re);Funzt doch alles ?!
Case $Button3
;kann man das irgentwie machen das er das nächste Lied im Ordner spielt ?
SoundPlay($re)
Case $Volume
SoundSetWaveVolume(1)
Case $Button5
WinClose("Player")
EndSwitch
SoundSetWaveVolume(GUICtrlRead($Volume))
WEnd
òder so ?
Spoiler anzeigen
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
SoundPlay($re)
Case $Pausebutton
If _soundpause ($pause = 1) Then
SoundPlay($re) and $pause = 0
if not _SoundPause then $pause = 1
Dim $Pause = 0
EndIf
Case $Button4
$re = FileOpenDialog('','','Mp3-Files (*.mp3;*.wav)')
SoundPlay($re)
Case $Button3
;kann man das irgentwie machen das er das nächste Lied im Ordner spielt ?
SoundPlay($re)
Case $Volume
SoundSetWaveVolume(1)
Case $Button5
WinClose("Player")
EndSwitch
SoundSetWaveVolume(GUICtrlRead($Volume))
WEnd
---------lenny--------