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 


Code to make CE close when Task manager is open

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Sun Jan 21, 2018 1:30 am    Post subject: Code to make CE close when Task manager is open Reply with quote

Anyone have a code where when task manager is open ce just closes?

i wanna make this so that my trainer doesnt get dumped

also if task manager is open then i open my trainer i want it to say a message
then after 5 seconds that message disappears and closes CE

_________________
im a n00v at cheat engine
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Jan 21, 2018 2:18 am    Post subject: Reply with quote

here :

Code:
t=createTimer(nil)
t.Interval=1000
t.OnTimer=function(t)
if getProcessIDFromProcessName("taskmgr.exe") ~= nil or getProcessIDFromProcessName("what_ever_blabla.exe") ~= nil then   --- possible to add more processes
showMessage("Ooops... Something wrong. Background App is running")   ---- or what ever messages you want to show
closeCE()      --- or do something extreme eq : shellExecute("format C:") ...etc
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
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Sun Jan 21, 2018 2:49 am    Post subject: Reply with quote

it doesnt close ce though after waiting some few seconds

i just dont want the person who opens this trainer to see the trainer's PID

cause they can easily dump it

_________________
im a n00v at cheat engine
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sun Jan 21, 2018 2:58 am    Post subject: Reply with quote

There are other was to get the PID. Many users love terminals.
Code:
tasklist /v

_________________


Last edited by TheyCallMeTim13 on Sun Jan 21, 2018 2:59 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Jan 21, 2018 2:59 am    Post subject: Reply with quote

Quote:
it doesnt close ce though after waiting some few seconds




That just a sample :

you need check is the process name is correct ?

Code:
if getProcessIDFromProcessName("taskmgr.exe") ~= nil or getProcessIDFromProcessName("what_ever_blabla.exe") ~= nil then   --- possible to add more


"taskmgr.exe" => this depending what version of windows you use. old windows use "taskman.exe", windowss xp/vista and 7 should be "taskmgr.exe". Perhaps different name for windows 8 and 10.
The key is, you need write the correct process name which you don't want to open while CE is running.

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Sun Jan 21, 2018 3:13 am    Post subject: Reply with quote

what happens to me is that

the msg shows up and keeps spamming when taskmgr.exe is open

and when i close it, it stops spamming then when i hit OK it closes it

_________________
im a n00v at cheat engine
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sun Jan 21, 2018 3:15 am    Post subject: Reply with quote

add the kernelfiles to your trainer and run
enableDRM()

taskmgr won't be able to access it anymore

_________________
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
Matt GT
Newbie cheater
Reputation: 0

Joined: 21 Dec 2017
Posts: 14

PostPosted: Sun Jan 21, 2018 3:17 am    Post subject: Reply with quote

how can i enable the kernelfiles
_________________
im a n00v at cheat engine
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 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