| View previous topic :: View next topic |
| Author |
Message |
raushan2007 Expert Cheater
Reputation: 0
Joined: 06 Nov 2007 Posts: 130
|
Posted: Wed Jan 30, 2008 11:21 am Post subject: Hotkeys |
|
|
| Can anyone tell me how to make hotkeys for my project in VB6???
|
|
| Back to top |
|
 |
I'm C.H. Grandmaster Cheater Supreme
Reputation: 0
Joined: 02 Dec 2006 Posts: 1000 Location: Sweden
|
Posted: Wed Jan 30, 2008 11:25 am Post subject: |
|
|
| _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 |
|
 |
Spawnfestis GO Moderator
Reputation: 0
Joined: 02 Nov 2007 Posts: 1746 Location: Pakistan
|
Posted: Wed Jan 30, 2008 12:58 pm Post subject: |
|
|
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 |
|
 |
tornarrow Master Cheater
Reputation: 0
Joined: 29 Jan 2008 Posts: 289
|
Posted: Wed Jan 30, 2008 1:13 pm Post subject: |
|
|
| 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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jan 30, 2008 1:25 pm Post subject: |
|
|
GetAsyncKeyState on a timer
or RegisterHotKey and respond to WM_HOTKEY
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
|
| Back to top |
|
 |
|