Guest User

Untitled

a guest
Feb 7th, 2021
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <Windows.h>
  2. #include <iostream>
  3.  
  4. int main()
  5. {
  6.     if ((GetKeyState(VK_CAPITAL) & 0x0001) == 0)
  7.     {
  8.         std::printf("Off");
  9.     }
  10.     else
  11.     {
  12.         std::printf("On");
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment