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 


Hotkeys

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

Joined: 06 Nov 2007
Posts: 130

PostPosted: Wed Jan 30, 2008 11:21 am    Post subject: Hotkeys Reply with quote

Can anyone tell me how to make hotkeys for my project in VB6???
Back to top
View user's profile Send private message
I'm C.H.
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Dec 2006
Posts: 1000
Location: Sweden

PostPosted: Wed Jan 30, 2008 11:25 am    Post subject: Reply with quote

_Teizhcial_ wrote:
Put this in your declarations
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer


Then put this in a timer with an interval of at least 100
Code:
If GetAsyncKeyState(vbKeyControl) And GetAsyncKeyState(vbKeyS) Then
Call ShockwaveFlash1.SetVariable("score", "99999")
End If


Press CTRL + S to set your score to 99999

_________________
Omg. I need something to do...

*-* My Flash Trainers *-*

*-* My Mouse Vac Tut *-*

Back to top
View user's profile Send private message
Spawnfestis
GO Moderator
Reputation: 0

Joined: 02 Nov 2007
Posts: 1746
Location: Pakistan

PostPosted: Wed Jan 30, 2008 12:58 pm    Post subject: Reply with quote

For C++ (if anyone who uses c++ would want this too..)
This is some help on how to "poke" (change aob, value etc.) an address with a hotkey in whatever game, you must put this in something that defines the window/application.

Code:

if(GetAsyncKeyState(VK_F3))
{
unsigned char variable[] = {Array of bytes};
if(Poke(address, variable, 2)) cout << "Enabled hack" << endl;
else cout << "Failed! Error: " << GetLastError() << endl;
}


This is the function..

Code:

bool Poke(DWORD address, unsigned char *buffer, unsigned int length)
{
unsigned int oldProtect=0;

VirtualProtectEx(hGame(use yours), (DWORD*)address, length, PAGE_READWRITE, (PDWORD)&oldProtect);

if(!WriteProcessMemory(hGame, (DWORD*)address, buffer, length, NULL))
return 0;

return 1;
}


Hope this helps out :3

_________________

CLICK TO HAX MAPLESTORAY ^ !!!!
Back to top
View user's profile Send private message Send e-mail MSN Messenger
tornarrow
Master Cheater
Reputation: 0

Joined: 29 Jan 2008
Posts: 289

PostPosted: Wed Jan 30, 2008 1:13 pm    Post subject: Reply with quote

CheatingHacker wrote:
_Teizhcial_ wrote:
Put this in your declarations
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer


Then put this in a timer with an interval of at least 100
Code:
If GetAsyncKeyState(vbKeyControl) And GetAsyncKeyState(vbKeyS) Then
Call ShockwaveFlash1.SetVariable("score", "99999")
End If


Press CTRL + S to set your score to 99999
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jan 30, 2008 1:25 pm    Post subject: Reply with quote

GetAsyncKeyState on a timer

or RegisterHotKey and respond to WM_HOTKEY
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Wed Jan 30, 2008 1:55 pm    Post subject: Reply with quote

RegisterHotKey will be the best for you.
Example: By vbforums.com.
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