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 


How to turn off the same CE application ?

 
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: 101

PostPosted: Sun Feb 11, 2018 8:13 am    Post subject: How to turn off the same CE application ? Reply with quote

when i turn off CE
The game will shut down at the same time
Is there a way I can do this?
Back to top
View user's profile Send private message
movss
Cheater
Reputation: 0

Joined: 10 Feb 2018
Posts: 40

PostPosted: Sun Feb 11, 2018 5:18 pm    Post subject: Reply with quote

Maybe, you can write a exe program to monitor the CE process and the game process,
Back to top
View user's profile Send private message
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Tue Feb 20, 2018 8:48 pm    Post subject: Re: How to turn off the same CE application ? Reply with quote

Sting9x wrote:
when i turn off CE
The game will shut down at the same time
Is there a way I can do this?




watch this video in slow mode ..
will you find the answer to the problem. Wink
https://www.youtube.com/watch?v=gvds9uFcHTw&t=0s&index=70&list=PL1yPHiegVpRoWx7jy6ecTqmbejos75O37

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 619

PostPosted: Tue Feb 20, 2018 9:53 pm    Post subject: Re: How to turn off the same CE application ? Reply with quote

Sting9x wrote:
when i turn off CE
The game will shut down at the same time
Is there a way I can do this?


try this :

Code:
function closeCEnApp()
 local id = getOpenedProcessID()
 local name = getProcessNameFromID(id)
 os.execute("taskkill -im "..id)
 closeCE();
 return caFree
end

MainForm.OnClose = closeCEnApp


or simple use :

Code:
function closeCEnApp()
 os.execute("tskill /A winword")   --- example 'Word has opened' -- change to your game name.exe
 closeCE();
 return caFree
end

MainForm.OnClose = closeCEnApp
end



save code as lua file and place into CE > Autorun Folder

same topic :
http://forum.cheatengine.org/viewtopic.php?t=606893&sid=084fb247274f29115e990cb00bfd8d26

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
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