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 


Editing Memory in Delphi.
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sat Jun 14, 2008 10:05 pm    Post subject: Reply with quote

Moller wrote:
oib111 wrote:
SIZE_T is a ULONG_PTR, or unsigned long pointer.

And unsigned pointer in Delphi, is (what the search has resulted) : Pointer, in this example.
Size: pointer;

But then it gives me another error, that when you're assigning the 28 to size, it tells me that the value is an integer, and not pointer.


In my C# api calling and what not, I just use SIZE_T as a uint (unsigned integer), and it works fine.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Mon Jun 16, 2008 3:15 pm    Post subject: Re: Editing Memory in Delphi. Reply with quote

since you got your answer at the problems i will just notice about this

angerist wrote:

Then I need to repetitively freeze the address?

Code:
procedure SwearHack();
begin
  while 1 = 1 do
  begin
   EditMyMemory($007F2B34, $42C80000);
   Sleep(5);
  end;
end;


But that's gonna freeze maplestory, So i have to run it in a new thread?

Code:
procedure TForm1.Button1Click(Sender: TObject);
var
ThreadID: Cardinal;
begin
CreateThread(nil, 0, @swearhack, nil, 0, ThreadID);
end;



Code:
procedure SwearHack();
begin
  while 1 = 1 do
  begin
   EditMyMemory($007F2B34, $42C80000);
   Sleep(5);
  end;
end;


will freez because when you use "while 1 = 1 do" delphi wont care about anything else then get a value to stop the while thats why it freez
use a timer instead
anyway you dont need to repeat Swearhack Oo if you just change it it will be changed

_________________
dont complain about my english...
1*1 = 2?
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, 3
Page 3 of 3

 
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