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 


Automatically close CE script if other CE instance opens

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Fri Aug 14, 2015 12:11 pm    Post subject: Automatically close CE script if other CE instance opens Reply with quote

I Know that some guys Can Get LUA Source if they open the trainer and open CE and get the LUA through some tricks...
So...I want a script that Makes the Trainer Close Automatically if other instance of CE is opened or already opened
so if already opened ...the trainer will close instantly and if opens ...the trainer closes
Thanks For Support Exclamation
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Fri Aug 14, 2015 1:20 pm    Post subject: Reply with quote

Cheat Engine isn't the only method of regaining parts of someones script. Let alone Cheat Engine is open source so anyone can modify it to dump scripts after they have been unprotected and loaded.

Look through this section about enumerating opened processes. There are a few topics that show how to do that already, which you just need to substitute Cheat Engine's executable name in its place. (Granted people can just rename their CE file and bypass that type of check anyway.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Fri Aug 14, 2015 2:13 pm    Post subject: Reply with quote

Code your own trainer and use themida. Nobody will bother to steal from your trainers unless it is really special (which i doubt it is).
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
CEForumMember
Expert Cheater
Reputation: 4

Joined: 06 Jul 2015
Posts: 110

PostPosted: Fri Aug 14, 2015 2:52 pm    Post subject: Reply with quote

STN wrote:
unless it is really special (which i doubt it is).


I felt the burn for 3kokocam.

_________________
Back to top
View user's profile Send private message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Sat Aug 15, 2015 1:27 am    Post subject: thx Reply with quote

STN wrote:
Code your own trainer and use themida. Nobody will bother to steal from your trainers unless it is really special (which i doubt it is).

Thanks I'll try it
Back to top
View user's profile Send private message
Fluffer_Nutter
Advanced Cheater
Reputation: 0

Joined: 26 Feb 2015
Posts: 67

PostPosted: Sat Aug 15, 2015 9:32 am    Post subject: Reply with quote

Place this at the top of your LUA script.

Code:

function cecheck()
if openProcess("cheatengine") then
closeCE()
end
end

cecheck_t=createTimer(nil)
timer_onTimer(cecheck_t, cecheck)
timer_setInterval(cecheck_t, 200)
timer_setEnabled(cecheck_t, true);
Back to top
View user's profile Send private message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Sat Aug 15, 2015 9:54 am    Post subject: Thanks Fluffer Reply with quote

Fluffer_Nutter wrote:
Place this at the top of your LUA script.

Code:

function cecheck()
if openProcess("cheatengine") then
closeCE()
end
end

cecheck_t=createTimer(nil)
timer_onTimer(cecheck_t, cecheck)
timer_setInterval(cecheck_t, 200)
timer_setEnabled(cecheck_t, true);
Thanks Fluffer
I'll Try it
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Aug 15, 2015 9:56 am    Post subject: Reply with quote

Does that not cause the trainer to close itself? Smile
Back to top
View user's profile Send private message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Sat Aug 15, 2015 10:01 am    Post subject: Reply with quote

Fluffer_Nutter wrote:
Place this at the top of your LUA script.

Code:

function cecheck()
if openProcess("cheatengine") then
closeCE()
end
end

cecheck_t=createTimer(nil)
timer_onTimer(cecheck_t, cecheck)
timer_setInterval(cecheck_t, 200)
timer_setEnabled(cecheck_t, true);

I tried it...but Because trainer is CE Based ...The Trainer Never Opens
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Aug 15, 2015 10:19 am    Post subject: Reply with quote

Code:
cecheck_list = createStringlist()
function cecheck()
  getProcesslist(cecheck_list)
  local count = 0
  for i=0,cecheck_list.count-1 do
    if cecheck_list[i]:find("cheatengine") then
      count = count + 1
    end
  end
  if count > 1 then
    closeCE()
  end
  cecheck_list.clear()
end
cecheck_t=createTimer(nil)
timer_onTimer(cecheck_t, cecheck)
timer_setInterval(cecheck_t, 200)
timer_setEnabled(cecheck_t, true)
Back to top
View user's profile Send private message
3kokocam
Newbie cheater
Reputation: 0

Joined: 22 Dec 2014
Posts: 22
Location: 127.0.0.1

PostPosted: Sat Aug 15, 2015 2:56 pm    Post subject: thx Reply with quote

Zanzer wrote:
Code:
cecheck_list = createStringlist()
function cecheck()
  getProcesslist(cecheck_list)
  local count = 0
  for i=0,cecheck_list.count-1 do
    if cecheck_list[i]:find("cheatengine") then
      count = count + 1
    end
  end
  if count > 1 then
    closeCE()
  end
  cecheck_list.clear()
end
cecheck_t=createTimer(nil)
timer_onTimer(cecheck_t, cecheck)
timer_setInterval(cecheck_t, 200)
timer_setEnabled(cecheck_t, true)

Thanks Zanzer Smile
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