Sign in to follow this  
Followers 0
maniootek

Get system time

4 posts in this topic

I'm looking for solution for turn off computer at certain time. For example: turn off computer when time is more than 09:00:00

Share this post


Link to post
Share on other sites



Look in the help file for time and date macros to figure out if @Hour > 9 and look at Shutdown function for shutting down your pc.

Share this post


Link to post
Share on other sites

I Agree with AdmiralAlkex I just make a simple autoit script with one line of code shutdown(numberHere)and add it to the windows task scheduler as run program shutdown.exe @ on certain days and times.

It works better then the default windows shutdown because if you can set a certain number in the autoit shutdown(numberHere) code to make the computer not wait for programs to end. This causes the computer to basically shut off no matter what. Although sometimes it can be a bad thing for some ppl not to wait for programs to finish, there are number codes that wait for programs to finish first before shutting off. Just pick the right number for you look in the autoit help file for them.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0