// NumLock.cmm - Turn on the NUMLOCK key if it's not already on #include #include if ( !(GetKeyboardState()[VK_NUMLOCK] & 1) ) KeyStroke(VK_NUMLOCK);