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 


closing trainer upon detecting cheat engine

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

Joined: 10 Jan 2016
Posts: 68

PostPosted: Sun Mar 13, 2016 4:57 pm    Post subject: closing trainer upon detecting cheat engine Reply with quote

hi guys...

i came upon a exe compiled trainer that uses

Code:
function ProgramDetection()
if openProcess("cheatengine") then
closeCE()
end
end
t=createTimer(nil,false)
timer_onTimer(t, ProgramDetection)
timer_setInterval(t, 100)
t.Enabled = true;


to automatically close the trainer when it detects cheat engine...

i tried the same on my trainer...compiled into an exe...closed cr...ran the trainer...but it closes on itself...as it detects itself as ce...how do i compile it so it wont close on itself?...as i would like my trainers also to clo on itself if it detects CE...
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Mar 13, 2016 5:02 pm    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, false)
cecheck_t.OnTimer=cecheck
cecheck_t.Interval=200
cecheck_t.Enabled=true
Back to top
View user's profile Send private message
Ludwig
Advanced Cheater
Reputation: 0

Joined: 10 Jan 2016
Posts: 68

PostPosted: Sun Mar 13, 2016 5:11 pm    Post subject: 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, false)
cecheck_t.OnTimer=cecheck
cecheck_t.Interval=200
cecheck_t.Enabled=true


right...so that does a count of the cheatengine processes and close if thers more than one...correct..?
thnx for your quick answer...and how do we add reputation for people with good answers here...Smile
Back to top
View user's profile Send private message
Char03
Newbie cheater
Reputation: 0

Joined: 12 Nov 2015
Posts: 23

PostPosted: Fri Mar 25, 2016 4:51 am    Post subject: Reply with quote

Using your same code did this:

Code:

function DetectCEE() -- Detect Cheat Engine 6.0, 6.1, 6.2, 6.3, 6.4, 6.5 - 64 Bits
if openProcess("cheatengine-x86_64") then
closeCE()
end
end
t=createTimer(nil,false)
timer_onTimer(t, DetectCEE)
timer_setInterval(t, 100)
t.Enabled = true;

function DetectCEEE() -- Detect Cheat Engine 6.0, 6.1, 6.2, 6.3, 6.4, 6.5 - 32 Bits
if openProcess("cheatengine-i386") then 
closeCE()
end
end
t=createTimer(nil,false)
timer_onTimer(t, DetectCEEE)
timer_setInterval(t, 100)
t.Enabled = true;

function DetectCE() -- Detect Cheat Engine 5.6.1
if openProcess("Cheat Engine") then
closeCE()
end
end
t=createTimer(nil,false)
timer_onTimer(t, DetectCE)
timer_setInterval(t, 100)
t.Enabled = true;


and the trainer is not closed, but if you open Cheat engine if.
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