| View previous topic :: View next topic |
| Author |
Message |
Kakashi_s1 How do I cheat?
Reputation: 0
Joined: 02 Aug 2007 Posts: 5
|
Posted: Wed Dec 19, 2007 11:07 am Post subject: Using Visual Basic 2008 need help with finding PIDs |
|
|
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 |
|
 |
richie86 Grandmaster Cheater
Reputation: 0
Joined: 13 Jan 2006 Posts: 664
|
Posted: Wed Dec 19, 2007 11:52 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Dec 19, 2007 12:30 pm Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Dec 19, 2007 2:40 pm Post subject: |
|
|
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 |
|
 |
Kakashi_s1 How do I cheat?
Reputation: 0
Joined: 02 Aug 2007 Posts: 5
|
Posted: Wed Dec 19, 2007 5:24 pm Post subject: |
|
|
| 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 |
|
 |
|