Code:bool GlowKey = false; string IsGlowEnabled = "false"; void ConsoleMenu() { cout << "F1 : Glow Esp : " + IsGlowEnabled << endl; } void Hotkeys() { if (GetAsyncKeyState(VK_F1) & 0x8000) { if (!GlowKey) { IsGlowEnabled = "true"; GlowKey = !GlowKey; Sleep(100); } else { IsGlowEnabled = "false"; GlowKey = !GlowKey; Sleep(100); } ConsoleMenu(); } }
That works, but there are many other ways to do it.