Tecnobyte

{ Esta função retorna true se a tecla informada estiver ligada. False em caso contrário } function tbKeyIsOn(const Key: integer): boolean; begin Result := GetKeyState(Key) and 1 > 0; end; { Exemplo de uso: } if tbKeyIsOn(VK_NUMLOCK) then { ... NumLock está ligada } else { ... NumLock está desligada }
O conteúdo desta página pode ajudar alguém? Compartilhe!