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] How do you make hacks untick?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Thu Dec 25, 2008 4:31 pm    Post subject: [Delphi] How do you make hacks untick? Reply with quote

So I can make hacks in delphi for any game but I can't untick them and make it turn off
The hacks just stay on forever...
Heres one of the hacks I made


Code:
var
  a: array[1..2] of Byte;
  PID: integer;
  card: Cardinal;
  Handle: integer;
begin
  a[1] := $0f;
  a[2] := $8f;
  GetWindowThreadProcessId(FindWindow('MapleStory', nil), @PID);
  Handle := OpenProcess(PROCESS_ALL_ACCESS, false, PID);

  WriteProcessMemory(Handle, ptr(SpeedAttack), @a, 2, card);
  WriteProcessMemory(Handle, ptr(SpeedAttack), @a, 2, card);


Thats for ticking it

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

Joined: 16 Dec 2006
Posts: 969
Location: --->

PostPosted: Thu Dec 25, 2008 7:20 pm    Post subject: Reply with quote

read the value of the adress first then write it back when you want it off

also OpenProess and Write/ReadProessMemory are hooked by gg

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

Joined: 12 Nov 2007
Posts: 822

PostPosted: Thu Dec 25, 2008 8:15 pm    Post subject: Reply with quote

So I have to make another check box for it?
_________________
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 25, 2008 8:38 pm    Post subject: Reply with quote

just write the original value back.

and why are you writing the same thing twice.
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 25, 2008 8:52 pm    Post subject: Reply with quote

read the original bytes into an array BEFORE you do any hacking then have have a check to see if the checkbox is ticked or not. if it is write new bytes and if not write the old bytes.
_________________
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Fri Dec 26, 2008 9:19 am    Post subject: Reply with quote

CheckBox.OnClick:
Code:
if checkbox.checked then
  begin
     // save current value of address
     // activate hack
  end
else
  begin
     // deactivate hack by writing the original value to it
  end;
Back to top
View user's profile Send private message
ello154
Grandmaster Cheater
Reputation: 0

Joined: 12 Nov 2007
Posts: 822

PostPosted: Fri Dec 26, 2008 10:07 am    Post subject: Reply with quote

Reak wrote:
CheckBox.OnClick:
Code:
if checkbox.checked then
  begin
     // save current value of address
     // activate hack
  end
else
  begin
     // deactivate hack by writing the original value to it
  end;


o... Thank you Thank you =D

_________________
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