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 7 .DLL adding hotkeys..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
almar2023
Newbie cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 19

PostPosted: Thu Mar 11, 2010 11:17 pm    Post subject: Delphi 7 .DLL adding hotkeys.. Reply with quote

Guys i need Help with This...

Im adding a Hotkey for This Delphi's DLL

so if i press F12 the hack will enable

could someone help me adding hotkeys im new at coding...

BTW here is my code.. if possibly show me some code which does have hotkeys or edit my work and add some hotkeys...


Quote:
library almar2023;

uses
Windows;

const
CellAddress:dword=$00734B59;
CellArray:Array[0..1] of Byte = ($EB,$1D);

Procedure celladdress2cellarray;
Var
j:Integer;
Begin
VirtualProtectEx(GetCurrentProcess,ptr(CellAddress),2,PAGE_EXECUTE_READWRITE,nil);
for j := 0 To Length(CellArray) do
PByte(CellAddress + j)^:=CellArray[j];
end;

Var
x:cardinal;

Begin
CreateThread(nil,0,@celladdress2cellarray,nil,0,x);
MessageBox(0,'Created By almar2023','almar2023',0);
end.

_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine]
Back to top
View user's profile Send private message
almar2023
Newbie cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 19

PostPosted: Sat Mar 13, 2010 1:22 am    Post subject: Reply with quote

still no one cant answer my problem...

T-T

realy need help for this..

_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine]
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sat Mar 13, 2010 4:36 am    Post subject: Reply with quote

Hotkeys are usually done with GetAsyncKeyState() or RegisterHotKey().
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sat Mar 13, 2010 7:49 am    Post subject: Reply with quote

Use GetAsyncKeyState for the detection of the hotkey.

Code:

VirtualProtectEx(GetCurrentProcess,ptr(CellAddress),2,PAGE_EXECUTE_READWRITE,nil);


can be

Code:

VirtualProtect(ptr(CellAddress), 2, PAGE_EXECUTE_READWRITE, nil);
Back to top
View user's profile Send private message MSN Messenger
almar2023
Newbie cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 19

PostPosted: Sun Mar 14, 2010 3:31 am    Post subject: Reply with quote

still cant figure what do do with that GetAsyncKeyState()
i realy new at coding..

_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine]
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sun Mar 14, 2010 10:35 am    Post subject: Reply with quote

mhmm

read this [url=http://msdn.microsoft.com/en-us/library/ms646293(VS.85).aspx]documentation[/url]

and this can help
Back to top
View user's profile Send private message MSN Messenger
ups2000ups
I post too much
Reputation: 0

Joined: 31 Jul 2006
Posts: 2471

PostPosted: Mon Mar 15, 2010 1:47 am    Post subject: Reply with quote

if your really that new you should not start with memory cheating (instead learn the basics)


anyhow place this in a timer

if odd(GetAsyncKeyState(VK_F1) then begin // place the key where VK_F1 is placed
{
your code
}
end;


ps you should use registerhotkey instead

_________________
dont complain about my english...
1*1 = 2?
Back to top
View user's profile Send private message
almar2023
Newbie cheater
Reputation: 0

Joined: 14 Feb 2009
Posts: 19

PostPosted: Sun Mar 21, 2010 2:20 am    Post subject: Reply with quote

ups2000ups wrote:
if your really that new you should not start with memory cheating (instead learn the basics)


anyhow place this in a timer

if odd(GetAsyncKeyState(VK_F1) then begin // place the key where VK_F1 is placed
{
your code
}
end;


ps you should use registerhotkey instead



thansz for this info..

now i need to know how to find the player pointer and X Y Z pointer of the FPS games...

_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine]
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