Hallo Leute ich habe eine frage wie ist es denn möglich mit autoit eine INternetradio zu hören der öfnnet es bei mir irgendwie nicht der script ist nicht von mir ich habe ihn hier im forum gefunden und eig. nur ein Hintergrundbild eingebaut ![]()
ich poste ihn mal vielleicht findet ihr ja den fehler ![]()
Spoiler anzeigen
#include <GUIConstants.au3>
#include <Sound.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#NoTrayIcon
opt("guioneventmode",1)
$Form1 = GUICreate("M-T Radio Programm", 205, 140, -1, -1,$WS_Popup)
$Button1 = GUICtrlCreateButton("Stop", 5, 40, 80, 30, 0)
GUICtrlSetOnEvent(-1,"stop")
$Button2 = GUICtrlCreateButton("Play", 5, 5, 80, 30, 0)
guictrlsetonevent(-1,"Play")
$Button3 = GUICtrlCreateButton("Pause", 120, 5, 80, 30, 0)
guictrlsetonevent(-1,"Pause")
$Button4 = GUICtrlCreateButton("Resume", 120, 40, 80, 30, 0)
guictrlsetonevent(-1,"Resume")
guisetonevent($GUI_EVENT_CLOSE,"_exit")
GUICtrlSetState($Button1, $GUI_DISABLE)
GUICtrlSetState($Button3, $GUI_DISABLE)
GUICtrlSetState($Button4, $GUI_DISABLE)
$Pic2 = GUICtrlCreatePic(".\Close.jpg",170, 105, 30, 30, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
guictrlsetonevent(-1,"_exit2")
$Pic1 = GUICtrlCreatePic(".\BG.jpg", 0, 0, 205, 140, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS,$WS_Disabled))
GUICtrlCreateLabel("",0,0,205,140,0,$GUI_WS_EX_PARENTDRAG)
GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT)
GUISetState(@SW_SHOW)
While 1
wend
func play()
$choosefile=fileopendialog("Choose a sound",@mydocumentsdir,"Musik(*.pls)")
global $sound=_soundopen($choosefile)
global $play=_SoundPlay($sound)
endfunc
func stop()
_soundstop($sound)
GUICtrlSetState($Button3, $GUI_DISABLE)
GUICtrlSetState($Button4, $GUI_DISABLE)
GUICtrlSetState($Button1, $GUI_DISABLE)
EndFunc
func _exit()
_soundclose($sound)
exit
endfunc
func _exit2()
exit
endfunc
func resume()
_soundresume($sound)
GUICtrlSetState($Button3, $GUI_enable)
GUICtrlSetState($Button4, $GUI_DISABLE)
EndFunc
func pause()
_SoundPause($sound)
GUICtrlSetState($Button4, $GUI_Enable)
GUICtrlSetState($Button3, $GUI_DISABLE)
endfunc
MFG Eistee