| View previous topic :: View next topic |
| Author |
Message |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Thu Dec 25, 2008 4:31 pm Post subject: [Delphi] How do you make hacks untick? |
|
|
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 |
|
 |
Snootae Grandmaster Cheater
Reputation: 0
Joined: 16 Dec 2006 Posts: 969 Location: --->
|
Posted: Thu Dec 25, 2008 7:20 pm Post subject: |
|
|
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 |
|
 |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Thu Dec 25, 2008 8:15 pm Post subject: |
|
|
So I have to make another check box for it?
_________________
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Dec 25, 2008 8:38 pm Post subject: |
|
|
just write the original value back.
and why are you writing the same thing twice.
|
|
| Back to top |
|
 |
arigity Advanced Cheater
Reputation: 0
Joined: 03 Jul 2008 Posts: 65 Location: middle of nowhere.
|
Posted: Thu Dec 25, 2008 8:52 pm Post subject: |
|
|
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 |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Fri Dec 26, 2008 9:19 am Post subject: |
|
|
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 |
|
 |
ello154 Grandmaster Cheater
Reputation: 0
Joined: 12 Nov 2007 Posts: 822
|
Posted: Fri Dec 26, 2008 10:07 am Post subject: |
|
|
| 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 |
|
 |
|