hi leute!
ich hab jetz ein script geschrieben das ein programm zu einer bestimmten uhrzeit ausführen soll nur leider ist bei warten die prozessorleistung ziemlich hoch und das is nu nich so toll habt ihr da vllt einen schonenderen weg für mich?
Spoiler anzeigen
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]; Hotkeys
HotKeySet("{esc}","kill")
HotKeySet("{f9}","show")
HotKeySet("{f10}","hide")
; GUI
$gui1 = GUICreate("",200,55,-1,-1)
; Input
$box = GUICtrlCreateInput("",5,5,92,20)
$box2 = GUICtrlCreateInput("",5,30,190,20)
; Button
$b1 = GUICtrlCreateButton("OK",102,5,93,20)
GUISetState()
; Hauptschleife
While 1
$ziel = GUICtrlRead($box2)
$bla = GUICtrlRead($box)
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $msg = $b1
GUISetState(@sw_hide,$gui1)
while 1
if $bla = @hour & @min & @sec Then
If GUICtrlRead($box2) = "..." Then Shutdown(1)
If GUICtrlRead($box2) = "..." Then Shutdown(2)
If GUICtrlRead($box2) = "..." Then Run("C:\...")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Shutdown(48)
If GUICtrlRead($box2) = "..." Then Exitloop
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Shutdown(0)
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run ("C:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("C:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
If GUICtrlRead($box2) = "..." Then Run("D:\")
sleep(1000)
Exit
EndIf
wend
EndSelect
Wend
Exit
[/autoit] [autoit][/autoit] [autoit];----------------------------Func
[/autoit] [autoit][/autoit] [autoit]func kill()
Exit
EndFunc
func show()
GUISetState(@sw_show,$gui1)
EndFunc
func hide()
GUISetState(@sw_hide,$gui1)
EndFunc
;----------------------------EndFunc
[/autoit]also vllt wisst ihr da ja was^^
thx im voraus