Need some help
Ok I have been trying to code a hot key hack but i am having a problem. Only the first key is working. I can code everything to 1 button but that is getting hard because I have added alot to the hack. I will paste some of my code if needed. I would like just a simple example of coding 2 buttons with 2 different hacks. I know how to turn off and on the hacks its just when I try to use another key it doesn't work. The first hack turns on but when I press the 2nd key there is nothing.
void main()
{
while(true)
if(GetAsyncKeyState(VK_NUMPAD6) &1){;
nxbrite = !nxbrite;
if(nxbrite){
PushToConsole("FullBright 1" );
nxbrite = true;
} else {
PushToConsole("FullBright 0" );
nxbrite = false;
}
}
if(GetAsyncKeyState(VK_NUMPAD9) &1){;
nxfps = !nxfps;
if(nxfps){
//FPS
PushToConsole("ShowFps 1");
nxfps = true;
} else {
PushToConsole("ShowFps 0");
nxfps = false;
}
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
main();
Sleep(100);
return 0;
}
Any help would be appreciated.