| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		3kokocam Newbie cheater
  Reputation: 0
  Joined: 22 Dec 2014 Posts: 22 Location: 127.0.0.1
  | 
		
			
				 Posted: Fri Aug 14, 2015 12:11 pm    Post subject: Automatically close CE script if other CE instance opens | 
				       | 
			 
			
				
  | 
			 
			
				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  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		atom0s Moderator
  Reputation: 205
  Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
  | 
		
			
				 Posted: Fri Aug 14, 2015 1:20 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		STN I post too much
  Reputation: 43
  Joined: 09 Nov 2005 Posts: 2676
 
  | 
		
			
				 Posted: Fri Aug 14, 2015 2:13 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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).
 _________________
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		CEForumMember Expert Cheater
  Reputation: 4
  Joined: 06 Jul 2015 Posts: 110
 
  | 
		
			
				 Posted: Fri Aug 14, 2015 2:52 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | STN wrote: | 	 		  |  unless it is really special (which i doubt it is). | 	  
 
 
I felt the burn for 3kokocam.
 _________________
  | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		3kokocam Newbie cheater
  Reputation: 0
  Joined: 22 Dec 2014 Posts: 22 Location: 127.0.0.1
  | 
		
			
				 Posted: Sat Aug 15, 2015 1:27 am    Post subject: thx | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		 | 
	
	
		  | 
	
	
		Fluffer_Nutter Advanced Cheater
  Reputation: 0
  Joined: 26 Feb 2015 Posts: 67
 
  | 
		
			
				 Posted: Sat Aug 15, 2015 9:32 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				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 | 
		 | 
	
	
		  | 
	
	
		3kokocam Newbie cheater
  Reputation: 0
  Joined: 22 Dec 2014 Posts: 22 Location: 127.0.0.1
  | 
		
			
				 Posted: Sat Aug 15, 2015 9:54 am    Post subject: Thanks Fluffer | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		 | 
	
	
		  | 
	
	
		Zanzer I post too much
  Reputation: 126
  Joined: 09 Jun 2013 Posts: 3278
 
  | 
		
			
				 Posted: Sat Aug 15, 2015 9:56 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				Does that not cause the trainer to close itself?  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		3kokocam Newbie cheater
  Reputation: 0
  Joined: 22 Dec 2014 Posts: 22 Location: 127.0.0.1
  | 
		
			
				 Posted: Sat Aug 15, 2015 10:01 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		 | 
	
	
		  | 
	
	
		Zanzer I post too much
  Reputation: 126
  Joined: 09 Jun 2013 Posts: 3278
 
  | 
		
			
				 Posted: Sat Aug 15, 2015 10:19 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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 | 
		 | 
	
	
		  | 
	
	
		3kokocam Newbie cheater
  Reputation: 0
  Joined: 22 Dec 2014 Posts: 22 Location: 127.0.0.1
  | 
		
			
				 Posted: Sat Aug 15, 2015 2:56 pm    Post subject: thx | 
				       | 
			 
			
				
  | 
			 
			
				 	  | 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   
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |