View Full Version : hotkeys
Wieter20
01-17-2008, 08:35 AM
aint getting wiser of the tut so i just ask here in a new thread on how to put in a hotkey and where? like if i want superjump ctrl + space how i code that? please reply soon
Aprill27
01-17-2008, 08:47 AM
aint getting wiser of the tut so i just ask here in a new thread on how to put in a hotkey and where? like if i want superjump ctrl + space how i code that? please reply soon
Whats so hard there? uhh ok i will explain
1.MAKE A TIMER!
2.The example was
{
if (GetKeyState(VK_RBUTTON)&1)//The hotkeys is raight mouse klick atm
//Your code here
}
Now just add your code + adresses to the //Your code here for example
for example
case FIRSTTIMER
{
if (GetKeyState(VK_RBUTTON)&1)//The hotkeys is raight mouse klick atm
Yourstring(0xyouraddy, value)
}
That example what i just show IS NOT A REAL CODE U HAVE TO CHANGE THE STRING,VALUE AND ADRESS!!
Wieter20
01-17-2008, 09:50 AM
dude that aint working..
wr194t
01-17-2008, 09:54 AM
dude that aint working..You need to be more specific. What happens?
Wieter20
01-17-2008, 10:03 AM
everytime i try to put in hotkey like this:
if (GetKeyState(VK_END)&1)
{
writepointerfloat(0x12DF500,0x178,2500)
}
i get errors like: bad suffix and shit
wr194t
01-17-2008, 10:11 AM
Did you declare the timer in resource.h? Post your errors.
Wieter20
01-17-2008, 10:17 AM
i declared and here are the errors:--------------------Configuration: Wieter20 WR Trainer - Win32 Debug--------------------
Compiling...
Wieter20 WR TrainerDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\Wieter20 WR Trainer\Wieter20 WR TrainerDlg.cpp(226) : error C2447: missing function header (old-style formal list?)
C:\Program Files\Microsoft Visual Studio\MyProjects\Wieter20 WR Trainer\Wieter20 WR TrainerDlg.cpp(312) : error C2059: syntax error : 'bad suffix on number'
C:\Program Files\Microsoft Visual Studio\MyProjects\Wieter20 WR Trainer\Wieter20 WR TrainerDlg.cpp(312) : error C2146: syntax error : missing ')' before identifier 'A_Z'
C:\Program Files\Microsoft Visual Studio\MyProjects\Wieter20 WR Trainer\Wieter20 WR TrainerDlg.cpp(312) : error C2059: syntax error : ')'
Error executing cl.exe.
Wieter20 WR Trainer.exe - 4 error(s), 0 warning(s)
just aint getting the point why it goes wrong:S
wr194t
01-17-2008, 02:01 PM
Your timer should look like this:
case TIMERNAMEHERE:
{
if (GetKeyState(VK_END)&1)
WritePointerFloat(0x12DF500,0x178,2500)
}
break;
}
CDialog::OnTimer(nIDEvent);
}
Wieter20
01-18-2008, 12:20 AM
ok thx so much!
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.