Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
fix printing status
Browse files Browse the repository at this point in the history
  • Loading branch information
Roblox-Thot committed Jun 2, 2023
1 parent 0fd541b commit 0dadbc4
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions MicrosoftRBX-FPS/MicrosoftRBX-FPS/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@ void fixCursor(HWND handle)
}
}

void printStatus()
{
system("cls");
std::cout << KBLU;
std::cout << BOLD("Roblox-HWND: ") << robloxHWND << std::endl;
std::cout << KYEL;
std::cout << BOLD("Keybind: ") << toggleKeyName << std::endl;
std::cout << KRED;
std::cout << BOLD("Mode: ") << modes[mode - 1] << std::endl;
std::cout << KCYN;
std::cout << BOLD("Enabled: ") << (isEnabled ? "Enabled" : "Disabled");
}

void init()
{
// FindWindow is so fucked because it has none for this so i had to use this method <3
Expand All @@ -197,15 +210,7 @@ void init()
}

Sleep(1000);
system("cls");
std::cout << KBLU;
std::cout << BOLD("Roblox-HWND: ") << robloxHWND << std::endl;
std::cout << KYEL;
std::cout << BOLD("Keybind: ") << toggleKeyName << std::endl;
std::cout << KRED;
std::cout << BOLD("Mode: ") << modes[mode-1] << std::endl;
std::cout << KCYN;
std::cout << BOLD("Enabled: ") << (isEnabled ? "Enabled" : "Disabled");
printStatus();
}

void check()
Expand All @@ -228,13 +233,7 @@ void toggle()
if (GetAsyncKeyState(toggleKey))
{
isEnabled = not isEnabled;
system("cls");
std::cout << KBLU;
std::cout << BOLD("Roblox-HWND: ") << robloxHWND << std::endl;
std::cout << KYEL;
std::cout << BOLD("Keybind: ") << toggleKeyName << std::endl;
std::cout << KCYN;
std::cout << BOLD("Enabled: ") << (isEnabled ? "Enabled" : "Disabled");
printStatus();
Sleep(1000);
}
Sleep(25);
Expand Down

0 comments on commit 0dadbc4

Please sign in to comment.