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 


C# Program (Attaching problem)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lolAnonymous
Expert Cheater
Reputation: 1

Joined: 19 Jul 2015
Posts: 154

PostPosted: Sat Oct 29, 2016 10:47 am    Post subject: C# Program (Attaching problem) Reply with quote

Hello guys,
I made a program on C# now I want to attach it with Firefox (Flash player plugin) but the problem is there are 2 process with the same name .My program attaches with the 1st Flash process and I want it to attach with 2nd Flash process.


Picture :




Code:
 public int Firefox()
        {

            Process[] processes = Process.GetProcesses();
            foreach (Process process in processes)
            {
                if (process.ProcessName.Contains("FlashPlayerPlugin"))
                {
                    apid = process.Id;
                }
            }


            return apid;
        }



SECOND PROBLEM

It does not attaches with chrome process.

Picture of the code :


Thanks In Advance Smile
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Sat Oct 29, 2016 1:36 pm    Post subject: Reply with quote

For your first problem, disable Firefox's sandboxing so it doesn't create sub-processes for everything:
https://wiki.mozilla.org/Security/Sandbox

For your second problem, make sure that you are:
- Compiled for the proper architecture.
- Running as an Administrator.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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