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 


Delphi find address by Array of byte ?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Jan 16, 2008 8:59 am    Post subject: Delphi find address by Array of byte ? Reply with quote

hi i wondering how do i do to find a address and change it by array

Code:

var
x:dword;
Address,Val:Array of byte;
begin
Address:=75 36 83 7C 24 0C 00 75 19 8B 86 88 20 00 00 FF;
Val:=db 90 90;
Writeprocessmemory(processhandle,pointer(Address),@Val,4,x);
end;

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Wed Jan 16, 2008 9:24 am    Post subject: Reply with quote

First of all, in delphi, hexadecimalic number has $ before of it.
Array of Byte should look like Address := [75, 36, 83]; (I think)
Val should be $90 $90 not db 90 90...
Then read X ammount of bytes (lets say from 00400000 to 00410000 its 65536 which is 0x10000) and check the first byte, if it matchs store or somewhere and read the next one, else reset it and continue.
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Wed Jan 16, 2008 11:55 am    Post subject: Reply with quote

okay thanks
_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Wed Jan 16, 2008 12:58 pm    Post subject: Reply with quote

Code:
array [0..15] of byte = ($75,$36,$83,$7C,$24,$0C,$00,$75,$19,$8B,$86,$88,$20,$00,$00,$FF);


$ represent Hex (Hexadecimal) in delphi
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