Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Auto Shutdown In Lua ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Sting9x
Expert Cheater
Reputation: 0

Joined: 27 Jul 2016
Posts: 121

PostPosted: Fri Dec 16, 2016 7:59 am    Post subject: Auto Shutdown In Lua ? Reply with quote

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 ??? Very Happy
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Dec 16, 2016 8:50 am    Post subject: Reply with quote

Start > Run: shutdown –s –t 600
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Fri Dec 16, 2016 8:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites