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 


Using Visual Basic 2008 need help with finding PIDs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Kakashi_s1
How do I cheat?
Reputation: 0

Joined: 02 Aug 2007
Posts: 5

PostPosted: Wed Dec 19, 2007 11:07 am    Post subject: Using Visual Basic 2008 need help with finding PIDs Reply with quote

How can I find all PIDs (parent, child, and hidden)?
Also, If I can the correct PID for my game, how can I attach to it like how Cheat Engine does it. Basically I want to make an auto-heal bot.

1- Find PID.
2- Attach to corresponding PID.
3- Load static pointer health address.
4- If value in health address is lower than 2000 Then SendKey "1".
5- Do loop until value in health address is => 2000.
Back to top
View user's profile Send private message
richie86
Grandmaster Cheater
Reputation: 0

Joined: 13 Jan 2006
Posts: 664

PostPosted: Wed Dec 19, 2007 11:52 am    Post subject: Reply with quote

i'm not sure with this technical thing, btw if we get the hwnd of the form, is it we can only SendKey but not reading the address for that process?
_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Dec 19, 2007 12:30 pm    Post subject: Reply with quote

For your first question, take a look at this code:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=6090&lngWId=10

It should explain how to locate all the information needed for what you are asking. (Some processes hide from the task manager which will not show up using these methods of obtaining the process information.)

As for connecting to the process, you would use the OpenProcess API.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Dec 19, 2007 2:40 pm    Post subject: Reply with quote

1. Process class in System.Diagnostics.

2. System.Runtime.InteropServices and pinvoke OpenProcess and all the other API calls you need. pinvoke.net is a good spot for getting the signatures (it's better to learn how to do it yourself, but this is the lazy way out)

3/4. ReadProcessMemory

5. SendInput I guess would be your best bet for to simulate mashing a key.
Back to top
View user's profile Send private message
Kakashi_s1
How do I cheat?
Reputation: 0

Joined: 02 Aug 2007
Posts: 5

PostPosted: Wed Dec 19, 2007 5:24 pm    Post subject: Reply with quote

slovach, any useful syntaxes for a newbie? This is my first VB project. I've been reading VBNET and MSDN for information its a LOAD of stuff to cover. I guess ill take it slow and learn all the information that I can. Thanks for the responses.
Back to top
View user's profile Send private message
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