[HELP] hotkey issue

Posts 17 of 7 · Page 1 of 1
[HELP] hotkey issue
Code:
void main()
{
    bool hax = false;
    while(true){
        if(GetAsyncKeyState(VK_NUMPAD1)<0){
            if(hax){
				haxon();
                hax = false;
            } else {
				haxoff();
                hax = true;
            }
        }
        Sleep(20);
    }
}
assuming haxon and haxoff functions work properly, what would prevent this from working?

when i remove the if statement and simply add haxon(); it works as intended, however when i attempt any hotkey method of enabling/disabling nothing is ever enabled.
try

if(Hax=false) instead
tried that (fixed case) and still same results. care if i send you my src?
send to me bro. ill help you out
Quote Originally Posted by BloodSkin View Post
Code:
void main()
{
    bool hax = false;

    while(true){
        if(GetAsyncKeyState(VK_NUMPAD1)<0){
            if(hax == true
	where u put PTC off
                hax = false;
            } else {
	where you put PTC on
                hax = true;
            }
        }
        Sleep(20);
    }
}
this is what u do
Quote Originally Posted by maudesrule View Post
this is what u do
this was solved days ago, but thanks for the copy and paste
/Closed then....
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?