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#] ReadPointer
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Dec 11, 2008 1:32 pm    Post subject: Reply with quote

Meh, can you give me the good WPM/RPM that WORKS?
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
arigity
Advanced Cheater
Reputation: 0

Joined: 03 Jul 2008
Posts: 65
Location: middle of nowhere.

PostPosted: Thu Dec 11, 2008 2:29 pm    Post subject: Reply with quote

Quote:
my RPM/WPM only takes 2 arguments,


wut?

its simple. read a static address with RPM and put the value in a buffer, then add your offset to the buffer, finally use WPM to write your new value to the address specified in the buffer, which assuming its a single level pointer should be what you want.

http://theoklibrary.org/showthread.php?t=315

should help.

_________________
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Dec 11, 2008 2:40 pm    Post subject: Reply with quote

Ya see, my RPM and WPM only take 2 parameters so I can't put the handle.
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
arigity
Advanced Cheater
Reputation: 0

Joined: 03 Jul 2008
Posts: 65
Location: middle of nowhere.

PostPosted: Thu Dec 11, 2008 2:55 pm    Post subject: Reply with quote

try these
Code:
[DllImport("kernel32.dll")]
public static extern bool WriteProcessMemory(
IntPtr hProcess,
IntPtr lpBaseAddress,
byte [] lpBuffer,
uint nSize,
out int lpNumberOfBytesWritten);


Code:
[DllImport("kernel32.dll")]]
public static extern bool ReadProcessMemory(
IntPtr hProcess,
uint dwAddress,
IntPtr lpBuffer,
int nSize,
out int lpBytesRead);

_________________
Back to top
View user's profile Send private message
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Thu Dec 11, 2008 3:07 pm    Post subject: Reply with quote

Thats why i hate C#.
_________________
Gone
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Dec 11, 2008 9:41 pm    Post subject: Reply with quote

pinvoke.net
Back to top
View user's profile Send private message
sloppy
Expert Cheater
Reputation: 0

Joined: 17 Aug 2008
Posts: 123

PostPosted: Thu Dec 11, 2008 10:36 pm    Post subject: Reply with quote

I wonder how the Fusionic Engine is coming along? Rolling Eyes
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Dec 11, 2008 11:27 pm    Post subject: Reply with quote

sloppy wrote:
I wonder how the Fusionic Engine is coming along? Rolling Eyes


This is the least of our worries.

I wonder how a 'hello world' is coming along?
Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Sat Dec 13, 2008 1:51 pm    Post subject: Reply with quote

slovach wrote:
sloppy wrote:
I wonder how the Fusionic Engine is coming along? Rolling Eyes


This is the least of our worries.

I wonder how a 'hello world' is coming along?

lol. I seriously can't stop laughing at how pathetic CEF has grown(LOL) itself into.
People that continuously take out their hatred on people who are beginners turns out to be complete faggots and beginners themselves in the end, when there's no code template to copy and paste from! =)

If I were you I'd start restricting lying in the forums, and ban the ones that are retarded. yay.

Confused

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ElJEffro
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Apr 2007
Posts: 1881
Location: La Tierra

PostPosted: Mon Dec 15, 2008 1:13 am    Post subject: Reply with quote

Read the address
Add the offset value you got from that
Read the value

ex:

uint Address = 0x123456;
uint offset = 0x123;

byte[] bRead;
ReadProcessMemory(hProcess,(IntPtr) Address, bRead, 4, null);
uint PtrAddress = (uint)(BitConverter.ToInt32(bRead) + offset);
ReadProcessMemory(hProcess, (IntPtr)PtrAddress, bRead,4,null);
uint Value = (uint)(BitConverter.ToInt32(bRead));
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
Goto page Previous  1, 2
Page 2 of 2

 
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