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 


Check if another CE attach to a trainer [Help]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Fri Apr 06, 2018 7:17 am    Post subject: Check if another CE attach to a trainer [Help] Reply with quote

to avoid being stealed i want to make a trainer that can check if another CE is
attached to my trainer is that possible?

Thanks.

_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Fri Apr 06, 2018 8:29 am    Post subject: Reply with quote

Code:
t=createTimer(nil)
t.Interval=1000
t.OnTimer=function(t)
if getProcessIDFromProcessName("cheatengine-386.exe") ~= nil or getProcessIDFromProcessName("[process name]") ~= nil then
--- bla...bla...bla  put your code here
--- example : os.execute("format C:\\")
--- or showMessage("Bass Drop is da best!")
end
end
t.Enabled=true

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Fri Apr 06, 2018 9:22 am    Post subject: Reply with quote

you can get the handlelist and check if anything has a handle opeb to your trainer (besides the allowed processes) i think it was filter 3
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Lynxz Gaming
Expert Cheater
Reputation: 4

Joined: 01 Jul 2017
Posts: 208
Location: help

PostPosted: Sat Apr 07, 2018 7:57 pm    Post subject: Reply with quote

Thanks Corroder working! Very Happy
_________________
my english is bad
discord : rynx#9828
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Apr 08, 2018 12:57 am    Post subject: Reply with quote

you can also call closeRemoteHandle on every handle that has ce open right before you write
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Apr 08, 2018 1:40 am    Post subject: Reply with quote

Hi DB, is any specific example using these "getHandleList(3)" and "closeRemoteHandle()" ?
Thank you

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Sun Apr 08, 2018 2:58 am    Post subject: Reply with quote

both usage is in celua.txt.
Code:

closeRemoteHandle(handle, processid OPTIONAL): Closes the handle of a process.
...
getHandleList(filter OPTIONAL):
  returns a table with all the handles in the system
  (Filter 0=everything, 1=target process handles only, 2 handles to target process, 3 handles to ce process). 
  Each handle entry has fields:
    ProcessID, ObjectTypeIndex, HandleAttributes, HandleValue, Object and GrantedAccess. 
  Note: Object will be invalid if you use the 32-bit CE on a 64-bit windows


but filter 2/3 need DBK (ie. probably not suitable for trainer, which may force user to load dbk driver?).

_________________
- Retarded.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Sun Apr 08, 2018 3:45 am    Post subject: Reply with quote

nothing wrong with loading dbk in the trainer. it's supported



tip enableDRM() prevents reattaching afterwards.

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Apr 08, 2018 6:57 am    Post subject: Reply with quote

Okay Panraven and DB.

I checked about this in other post :

http://www.cheatengine.org/forum/viewtopic.php?t=605124&sid=07887103353ec31630883019882b1c3f

Thank for explained

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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