#include <windows.h>
#include <iostream>
#pragma comment(lib,"User32.lib")
using namespace std;
static bool g_Active = false;
DWORD WINAPI proizv(PVOID Parametr)
{
if (g_Active)
cout << "1337";
return 0;
}
void main()
{
DWORD idThread, dwThrdParam = 1;
HANDLE h1;
h1 = CreateThread(NULL, 0, proizv, &dwThrdParam, 0, &idThread);
while (true)
{
if (GetAsyncKeyState(81))
{
while (!GetAsyncKeyState(81))
{
g_Active = true;
}
}
}
}