QuestionHelpwith getsynckeystate

Posts 1–15 of 18 · Page 1 of 2
with getsynckeystate
somehow i cant make this hotkey thingy work and im not sure of how to do it..
someone help??
i just want it to turn on and turn off.

Code:
if (GetAsyncKeyState (VK_INSERT))
if(CShell + WeaponMgr)
 {
  for(int i=0; i<700; i++)
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL)
  *(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 10;
 }
Then how do you turn it off?? doesnt work.. -.-
I didnt test this ^^ but you can try it ..

Code:
int Reload;
Code:
if ( GetAsyncKeyState (VK_INSERT)&1 )
{
     Reload = (!Reload);
}
Code:
if( Reload )
{
     //the hack
}

if( !Reload )
{
     //the normal Value = Off
}
If this doesnt work, ill show you another way ^^
Quote Originally Posted by [H]aaBX View Post
I didnt test this ^^ but you can try it ..

Code:
int Reload;
Code:
if ( GetAsyncKeyState (VK_INSERT)&1 )
{
     Reload = (!Reload);
}
Code:
if( Reload )
{
     //the hack
}

if( !Reload )
{
     //the normal Value = Off
}
If this doesnt work, ill show you another way ^^
how would you find the normal value?

---------- Post added at 07:53 PM ---------- Previous post was at 07:39 PM ----------

oh yeah and nawww i just tested it with wallhack, and it didnt work -.- any other suggestions?
Code:
int Hack

if ( GetAsyncKeyState (VK_KEY) )
{
     Hack= !Hack;
Sleep(250);
}


if(Hack)
{
*(float*)(CShell+0x000)=0;
}
else
{
*(float*)(CShell+0x000)=1;
}
Code:
bool reload = false;

while(1){
   if(GetAsyncKeyState(VK_F12)){
      recoil = !recoil;
   }

   if(reload){
      /*FUNCTION*/
   }
}
Quote Originally Posted by Biesi View Post
Code:
bool reload = false;

while(1){
   if(GetAsyncKeyState(VK_F12)){
      recoil = !recoil;
   }

   if(reload){
      /*FUNCTION*/
   }
}
Code:
while(1){
   if(GetAsyncKeyState(VK_F12)){
      reload = !reload;
   }

   if(reload){
      /*FUNCTION*/
   }
}
Quote Originally Posted by luizimloko View Post


Code:
while(1){
   if(GetAsyncKeyState(VK_F12)){
      reload = !reload;
   }

   if(reload){
      /*FUNCTION*/
   }
}
still dont work tested with WH, it doesnt turn off maybe i need the off value -.-
is there a thread that has a post of how to convert the values to normal values?
Quote Originally Posted by Biesi View Post
Code:
bool reload = false;

while(1){
if(GetAsyncKeyState(VK_F12)){
recoil = !recoil;
}

if(reload){
/*FUNCTION*/
}
}
If he tries to turn it off, it wont work cuz he needs the same with if( !reload ) and there he needs the normal value again xD
Quote Originally Posted by [H]aaBX View Post
If he tries to turn it off, it wont work cuz he needs the same with if( !reload ) and there he needs the normal value again xD
Works for me in CAEU
Quote Originally Posted by Biesi View Post
Works for me in CAEU
You can try it ...
That works with d3d functions but not with any functions using values ..
Backup WeaponMgr if the hack isn't turned on
Quote Originally Posted by buddhayang View Post
still dont work tested with WH, it doesnt turn off maybe i need the off value -.-
is there a thread that has a post of how to convert the values to normal values?
Test it
Btw the deactivted wallhack is looking like that:
Code:
memcpy((VOID*)Addy, "\x01\x01\x01\x01\x01\x01", 6);
Quote Originally Posted by [H]aaBX View Post
Test it
Btw the deactivted wallhack is looking like that:
Code:
memcpy((VOID*)Addy, "\x01\x01\x01\x01\x01\x01", 6);
yeah i knoe, hey haabx wouldnt the longknife value be 450? bcus 2.3 is like the original value -.-
Posts 1–15 of 18 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us