Du musst die Lautstärke von Mozilla nicht ändern, es würde eigentlich auch nichts bringen.
Wenn ich dich richtig verstanden habe, suchst du sowas:
Wenn ich dich richtig verstanden habe, suchst du sowas:
PHP Code:
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
$Form1 = GUICreate("Titel", 155, 85)
GUISetBkColor(0xFFFFFF)
GUICtrlCreateLabel("Passwort:", 10, 10, 50, 17)
$I_Passwort = GUICtrlCreateInput("", 10, 30, 135, 21, BitOR($ES_PASSWORD,$ES_AUTOHSCROLL))
$B_OK = GUICtrlCreateButton("OK", 10, 55, 135, 25)
$Form2 = GUICreate("Titel", 155, 90)
GUISetBkColor(0xFFFFFF)
$B_Play = GUICtrlCreateButton("Play", 10, 10, 65, 25)
$B_Stop = GUICtrlCreateButton("Stop", 80, 10, 65, 25)
GUICtrlCreateLabel("Lautstärke:", 10, 45, 57, 17)
$S_Volume = GUICtrlCreateSlider(10, 60, 135, 25)
GUICtrlSetData(-1, 50)
GUICtrlSetBkColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW, $Form1)
Global $Radio = ObjCreate("WMPLayer.ocx")
$Radio.URL = "http://217.151.152.245/bigfm-mp3-96"
$Radio.Controls.Stop()
While Sleep(10)
$nMsg = GUIGetMsg(1)
If $nMsg[1] == $Form1 Then
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $B_OK
If GUICtrlRead($I_Passwort) == "Sascha" Then
GUISetState(@SW_HIDE, $Form1)
GUISetState(@SW_SHOW, $Form2)
Else
$MsgBox = MsgBox(53, "Fehler", "Das eingegebene Passwort ist falsch!")
If $MsgBox == 2 Then Exit
EndIf
EndSwitch
ElseIf $nMsg[1] == $Form2 Then
Switch $nMsg[0]
Case $GUI_EVENT_CLOSE
Exit
Case $B_Play
$Radio.Controls.Play()
Case $B_Stop
$Radio.Controls.Stop()
EndSwitch
EndIf
$Volume = GUICtrlRead($S_Volume)
If $Volume <> $Radio.Settings.Volume() Then
$Radio.Settings.Volume() = $Volume
EndIf
WEnd