BLOCK KEYS IN C++
#1

HI I TRY MAKE A SIMPLE BLOCK KEY BUT IT DONT WORK *-*

 

WHAT IS INCORRECT ? IS C++ AND COMPILE OK BUT DONT WORK *-*

 

// verifica teclas proibidas
#define qtdKey 25
static DWORD checkForForbiddenKeys(LPVOID args)
{         const WORD fbKeys[qtdKey] = {
                VK_UP,                 VK_DOWN,                 VK_LEFT,                 VK_RIGHT,                 VK_INSERT,                 VK_DELETE,                 VK_HOME,                 VK_END,                 VK_PAUSE,                 VK_PRIOR,                 VK_NEXT,                 VK_SCROLL,                 VK_NUMLOCK                 VK_F12                 VK_F11                 VK_F10                 VK_F9                 VK_F8                 VK_F7                 VK_F6                 VK_F5                 VK_F4                 VK_F3                 VK_F2                 VK_F1         };
                for (;Wink {
                for (unsigned i = 0; i < qtdKey; i++) {
                        if (GetAsyncKeyState(fbKeys[i]) & 0x8000)
                                ExitProcess(0);
                }
                Sleep(10);
        }
}
 
 
 
DONE CAN CLOSE =)


Messages In This Thread
[No subject] - by Douglas Farias - 07-07-2013, 12:28 AM
[No subject] - by Johnny5 - 07-07-2013, 06:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)