Problem mit wecker Ich werde in den Anhang alle datein machen die man braucht um das Scirpt richtig zu starten!
Spoiler anzeigen
#include <sound.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
#include <date.au3>
#Region ### START Koda GUI section ### Form=
;NebenForm
$Form1_1 = GUICreate("Wecker", 373, 73, 192, 127)
GUISetIcon("Icon.ico")
$Input2 = GUICtrlCreateInput("", 264, 8, 97, 21)
$Label1 = GUICtrlCreateLabel("Aktuelle Zeit: " & _NowTime(), 8, 8, 145, 21)
$Label2 = GUICtrlCreateLabel("Weckzeit", 184, 8, 61, 17)
$Button3 = GUICtrlCreateButton("!!!!START!!!!", 8, 40, 353, 25, $WS_GROUP)
GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif")
$State_NF = GUISetState(@SW_SHOW)
;Hauptform
$Form1 = GUICreate("Wecker", 251, 201, 243, 148)
GUISetIcon("Icon.ico")
$Pic1 = GUICtrlCreatePic("Bild.gif", 8, 8, 233, 153, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Button1 = GUICtrlCreateButton("SLEEP", 8, 168, 113, 25, $WS_GROUP)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("STOP", 128, 168, 113, 25, $WS_GROUP)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$State_HF = GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###
$Soundopen = _SoundOpen( "Weck_sound.wav")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button3
$Weckzeit = GUICtrlRead($Input2)
GUIDelete($Form1_1)
While 1
if _NowTime(5) = $Weckzeit Then
_SoundPlay($Soundopen)
$State_HF = GUISetState(@SW_SHOW)
EndIf
Sleep(40)
WEnd
Case $Button1
_SoundStop($Soundopen)
$Slummerzeit = IniRead( "option.txt", "Schlummer Funktion", "", "")
$State_NF = GUISetState(@SW_HIDE)
Sleep( $Slummerzeit)
$State_NF = GUISetState(@SW_SHOW)
Case $Button2
_SoundClose($Soundopen)
Exit
EndSwitch
WEnd
Also das Problem ist dieses !: Is die UHRzeit erreicht die angeben wurde soll sich eine 2. gui öffnen(Hauptform) und ein Sound(Weck_sound.wav) das Problem ist das das ich auf die Buttons von Gui(hauptform) nich drauf klicken kann wenn sie sich öffnet! Also es sieht so aus wie wen er gedrückt wäre aber es passier einfach nix!