Hallo,
es geht um folgendes:
Ich hab ja ein Inet Radio script, das funktioniert auch und habs schon oft verwendet.
Orig(in etwa)
Spoiler anzeigen
$comSender = GUICtrlCreateCombo (" ",15, 35, 200, 25)
GUICtrlSetData(-1, "Technobase.fm|Housetime.fm|Hardbase.fm|Happy Hardcore Radio|Trancebase.fm|Coretime.fm|Afterhours.fm|Psychedelik (Progressive Trance)|Psychedelik (Dark Psyché)|Psychedelik (Psy Trance)|DNB Radio", "Technobase.fm")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $comSender
; Falls grade ein Stream abgespielt wird, wird er gestoppt
$oWMP.controls.stop()
Switch GUICtrlRead($comSender)
Case 'Technobase.fm'
$oWMP.URL = $urlTe ;Stellt die Eigenschaft "URL" zu dem Online-Stream
Case 'Housetime.fm'
$oWMP.URL = $urlHt
Case 'Hardbase.fm'
$oWMP.URL = $urlHb
Case 'Happy Hardcore Radio'
$oWMP.URL = $urlHhr
Case 'Trancebase.fm'
$oWMP.URL = $urlTb
Case 'Coretime.fm'
$oWMP.URL = $urlCt
Case 'Afterhours.fm'
$oWMP.URL = $urlAh
EndSwitch
$oWMP.controls.play()
$zeit = TimerInit()
Case $cmdStop
$oWMP.controls.stop()
Case $cmdPlay
$oWMP.controls.play()
EndSwitch
WEnd
[/autoit] [autoit][/autoit] [autoit][/autoit]
Im Traymenu(in etwa^^)
Spoiler anzeigen
Opt("TrayMenuMode", 1) ; Default tray menu items (Script Paused/Exit) will not be shown.
$Radio = TrayCreateMenu("Radiolist")
$radio1 = TrayCreateItem("Technobase.fm", $Radio, -1,1)
$radio2 = TrayCreateItem("Housetime.fm", $Radio, -1,1)
$radio3 = TrayCreateItem("Hardbase.fm", $Radio, -1,1)
$radio4 = TrayCreateItem("Happy Hardcore Radio", $Radio, -1,1)
$radio5 = TrayCreateItem("Coretime.fm", $Radio, -1,1)
$radio6 = TrayCreateItem("Afterhours.fm", $Radio, -1,1)
While 1
[/autoit] [autoit][/autoit] [autoit]$tmsg = TrayGetMsg()
Select
Case $tmsg = $Radio
$oWMP.controls.stop()
Switch TrayGetMsg()
Case $radio1
$oWMP.URL = $urlHt
Case $radio2
$oWMP.URL = $urlHb
Case $radio3
$oWMP.URL = $urlHhr
Case $radio4
$oWMP.URL = $urlTb
Case $radio5
$oWMP.URL = $urlCt
Case $radio6
$oWMP.URL = $urlAh
EndSwitch
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]$oWMP.controls.play()
; beim wechseln des Streams soll wieder von vorn gezählt werden.
$zeit = TimerInit()
Case $cmdStop
$oWMP.controls.stop()
Case $cmdPlay
$oWMP.controls.play()
EndSelect
WEnd
Also wie man hoffentlich sehen kann, wurde der Stream vorher per Combo ausgewählt, jetzt will ich ihn per TrayMenu einstellen...Weis einer weiter wie ich so ne ähnliche abfrage machen kann?
Falls ihr mehr Daten braucht, bitte sagen <_>