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 


Help for trainer in delphi - freeze and Dec/Inc

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
e!ns7e!n
Cheater
Reputation: 0

Joined: 06 Sep 2007
Posts: 30

PostPosted: Sat Nov 03, 2007 2:29 pm    Post subject: Help for trainer in delphi - freeze and Dec/Inc Reply with quote

First sorry for my bad english Smile

1. Question One
how to freeze one address with delphi ??

hex - Dec
98967F - 9999999

this put 9 999 999 in address 0100579C ?? or not ?

Quote:
GetMem(buf,1);
buf^ := Chr($98967F);
WriteProcessMemory(HandleWindow,ptr($0100579C),buf,1,write);


how to freeze after that this address ?

2. Question two
How to Increase and Decrease value with +1 and -1
Quote:
GetMem(buf,1);
buf^ := Chr($1); // here - what ?? Smile
WriteProcessMemory(HandleWindow,ptr($0100579C),buf,1,write);


Example for fifa: i have one goal +1 or -1 Smile

p.p
Comments here


Last edited by e!ns7e!n on Sat Nov 03, 2007 2:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25815
Location: The netherlands

PostPosted: Mon Nov 05, 2007 1:05 am    Post subject: Reply with quote

1: no
instead of
Code:

GetMem(buf,1);
buf^ := Chr($98967F);
WriteProcessMemory(HandleWindow,ptr($0100579C),buf,1,write);


use
Code:

var value: dword;
....
begin
....
value := $98967F;
WriteProcessMemory(HandleWindow,ptr($0100579C),@value,4{or sizeof(value)},write);


to freeze it just execute this constantly, e.g with a timer that runs every 15 ms or so

2:
use readprocessmemory
e.g:
Code:

var value: dword;
....
begin
....
ReadProcessMemory(HandleWindow,ptr($0100579C),@value,4,write);
inc(value);

WriteProcessMemory(HandleWindow,ptr($0100579C),@value,4,write);

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
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