Posted: Tue Feb 20, 2018 9:53 pm Post subject: Re: How to turn off the same CE application ?
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
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