View previous topic :: View next topic |
Author |
Message |
Sting9x Expert Cheater
Reputation: 0
Joined: 27 Jul 2016 Posts: 121
|
Posted: Fri Dec 16, 2016 7:59 am Post subject: Auto Shutdown In Lua ? |
|
|
Hello . I had this idea . When I click on the check box will automatically shut down the computer after 5 hours.
There are scripts that perform like that ??? |
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 16, 2016 8:50 am Post subject: |
|
|
Start > Run: shutdown –s –t 600 |
|
Back to top |
|
 |
Corroder Grandmaster Cheater Supreme
Reputation: 75
Joined: 10 Apr 2015 Posts: 1668
|
Posted: Fri Dec 16, 2016 8:32 pm Post subject: |
|
|
Code: | function autoExit()
z=createTimer(nil)
z.Interval=18000
z.OnTimer=function(z)
os.execute("shutdown %-s %-t 01")
end
z.Enabled=true
end
function CECheckbox1Change(sender)
autoExit()
end |
|
|
Back to top |
|
 |
|