Jump to content

Sleep until a further date

   (1 review)

About This File

I remember about 5 months or so ago someone was asking if there was a way to sleep until a specific time (Date) then run the script...I wrote this up for him, but forgot to post it sleep.gif hope this helps someone, cause its useless to me tongue.gif

you can push it further by adding year in there too, but thats kind of useless tongue.gif...also, it may be benaficial to you if you made it => rather than =

heres another way to use the func

#include<Misc.au3>Global $Month = 12Global $Day = 28Global $Hour = 21Global $Minute = 49_Sleep($Month, $Day, $Hour, $Minute)Func _Sleep($Month = @MON, $Day = @MDAY, $Hour = @HOUR, $Minute = @MIN)	Do		If _IsPressed('10') And _IsPressed('be') Then; Shift + >			MsgBox(0, "", "Working!")			ExitLoop		EndIf	;		  MsgBox(0, "", @MON & ":" & @MDay & ":" & @HOUR & ":" & @MIN)	Until $Month = @MON And $Day = @MDAY And $Hour = @HOUR And $Minute = @MIN	MsgBox(0, "", "Works")EndFunc  ;==>_Sleep

User Feedback

You may only provide a review once you have downloaded the file.


×
×
  • Create New...