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 


Can a CE trainer handle multiple processes?

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

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Jan 21, 2016 3:14 pm    Post subject: Can a CE trainer handle multiple processes? Reply with quote

I want to make a trainer that deals with several processes at the same time. Is that possible with CE? If yes how?
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Jan 21, 2016 3:45 pm    Post subject: Re: Can a CE trainer handle multiple processes? Reply with quote

chris20194 wrote:
I want to make a trainer that deals with several processes at the same time. Is that possible with CE? If yes how?

Code:

openProcess('process1name.exe');
-- do a few things in process 1
openProcess('process2name.exe');
-- do other things on process 2
-- etc.
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Jan 21, 2016 3:47 pm    Post subject: Re: Can a CE trainer handle multiple processes? Reply with quote

Redouane wrote:
chris20194 wrote:
I want to make a trainer that deals with several processes at the same time. Is that possible with CE? If yes how?

Code:

openProcess('process1name.exe');
-- do a few things in process 1
openProcess('process2name.exe');
-- do other things on process 2
-- etc.


So i have to keep switching between the processes?
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Thu Jan 21, 2016 4:01 pm    Post subject: Re: Can a CE trainer handle multiple processes? Reply with quote

chris20194 wrote:

So i have to keep switching between the processes?


If you are using the trainer generator of CE, then this is the best thing that you can do, you could also make another executable (trainer-like) that has no GUI, place it in the same folder as your trainer,and execute that other program from your trainer, in the main trainer, attach to process1 and do some things on it, in the other program, attach to process2, and do other stuff on it (of course, keep checking to see if the main trainer is executing, if it's closed by the user, or if that other executable is executed directly, exit), not really clean, just another idea.

As far as I know, the OpenProcess API function returns an open handle to the desired process with the desired access, this means that you can have more than one process handle open at a time,so if you make a trainer in C++ or C# (or any programming language with WIN32API access), you should be able to do it more cleanly.
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Jan 21, 2016 4:25 pm    Post subject: Re: Can a CE trainer handle multiple processes? Reply with quote

Redouane wrote:
chris20194 wrote:

So i have to keep switching between the processes?


If you are using the trainer generator of CE, then this is the best thing that you can do, you could also make another executable (trainer-like) that has no GUI, place it in the same folder as your trainer,and execute that other program from your trainer, in the main trainer, attach to process1 and do some things on it, in the other program, attach to process2, and do other stuff on it (of course, keep checking to see if the main trainer is executing, if it's closed by the user, or if that other executable is executed directly, exit), not really clean, just another idea.

As far as I know, the OpenProcess API function returns an open handle to the desired process with the desired access, this means that you can have more than one process handle open at a time,so if you make a trainer in C++ or C# (or any programming language with WIN32API access), you should be able to do it more cleanly.


Thanks alot!
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