Hallo
Ich möchte das dieses Script nur in der Zeit zwischen 06:00 bis 00:00 startbar ist. Ansonsten soll eine Msgbox kommen und Exit.
Doch leider bekomm ich immer Error angezeigt:
Local $Intime = 05 ":" 59 ":" 59
Local $Intime = ^ ERROR
Was mach ich falsch ? Ich möchte nicht mit TimerInit/Diff "arbeiten"
Spoiler anzeigen
#include <Constants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <StaticConstants.au3>
#include <Date.au3>
Guicreate("Size")
$vsize=GUICtrlCreateInput("Time", 90 , 10 , 50 , 20)
$OK=GUICtrlCreateButton("OK" , 40 , 100 , 80 , 20)
$Cancel=GUICtrlCreateButton("Cancel" , 150 , 100 , 80 , 20)
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit]While 1
Local $time = @hour & ":" & @Min & ":" & @Sec
Local $Intime = 05 ":" 59 ":" 59
Local $Outtime = 23 ":" 59 ":" 59
$Lab = GUICtrlCreateLabel(@hour & ":" & @Min & ":" & @Sec , 16 , 140 , 100 , 30)
If $Intime >= $time And _
$Outtime <= $time Then
MsgBox(0 , "" , "In Time")
Else
MsgBox(0 , "" , "Out Time")
Exit
EndIf
Sleep(800)
WEnd
Thx for Help