Draygoes Posted May 30, 2022 Posted May 30, 2022 Yall, I don't know anymore. This doesn't work and I can't imagine why. While 1 if @HOUR = 0100 Then Shutdown(1) EndIf WEnd I know I'm tired, but this seems weird even for me. Spoiler "If a vegetarian eats vegetables,What the heck does a humanitarian eat?" "I hear voices in my head, but I ignore them and continue on killing." "You have forced me to raise the indifference warning to beige, it's a beige alert people. As with all beige alerts please prepare to think about the possibility of caring." An optimist says that giving someone power DOESN'T immediately turn them into a sadist. A pessimist says that giving someone power doesn't IMMEDIATELY turn them into a sadist.
elFic Posted May 30, 2022 Posted May 30, 2022 (edited) Hi Draygoes, @hour can be in range 0-23. Your code expects it to be 100 (one hundred). So 'if' statement will never be true. Intead of 0100 You can use 01 or 1 Another thing is You should keep 'sleep' in the while loop to limit CPU usage. While 1 Sleep(10) if @HOUR = 01 Then Shutdown(1) EndIf WEnd Edited May 30, 2022 by elFic
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now