Red facehelp to F11 off/on

Posts 1–7 of 7 · Page 1 of 1
help to F11 off/on
hi

is no stop
Code:
if (GetAsyncKeyState (VK_F11)!=0) 
{
			Beep (2000,0);
			LongKnife01 != 1;//oFF
}
plz help


iam not undertans for cf hack
@[mi5: isn't it better like that?

Code:
if (GetAsyncKeyState (VK_F11)<0) 
{
	Beep (2000,0);
	LongKnife01 = !LongKnife01;//oFF
}
you can also do it like that

Code:
if (GetAsyncKeyState (VK_F11)&1) 
{
	Beep (2000,0);
	LongKnife01 = !LongKnife01;//oFF
}
Quote Originally Posted by UltraPGNoob View Post
@[mi5: isn't it better like that?

Code:
if (GetAsyncKeyState (VK_F11)<0) 
{
	Beep (2000,0);
	LongKnife01 = !LongKnife01;//oFF
}
you can also do it like that

Code:
if (GetAsyncKeyState (VK_F11)&1) 
{
	Beep (2000,0);
	LongKnife01 = !LongKnife01;//oFF
}
Can't you use bitwise XOR because it also saves the boolean value? I haven't coded in a while but something like this

Code:
bool hack=0;
if(hotkey)
hack^=1;
etc...
Put the code on
Code:
while(1)
// or put it inside
for(;;)
{
}
Here's the code.
Code:
bool LongKnife = 0;
if(GetAsyncKeyState(VK_F1)&1){
if (LongKnife == 1 )
{
// Source when its on 
}
elseif (LongKnife == 0 )
{
// Source Here when its on Original value 
}
}
it should work like that
Quote Originally Posted by Dark Side View Post
Put the code on
Code:
while(1)
// or put it inside
for(;;)
{
}
Here's the code.
Code:
bool LongKnife = 0;
if(GetAsyncKeyState(VK_F1)&1){
if (LongKnife == 1 )
{
// Source when its on 
}
elseif (LongKnife == 0 )
{
// Source Here when its on Original value 
}
}
it should work like that
I don't think that's right.
Quote Originally Posted by dakr54 View Post
I don't think that's right.
This just an example , also its old way ...
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us