Hallöö ;o
I hob da n Problämm...
Ich habe ne DLL in der ich eine Konsole erscheinen lasse.
Dann hab ich ne kleine Funktion zum ändern der Schriftfarbe..
Soweit so gut...
Funktioniert soweit- ABER...
Ich will jetzt ne Eingabe per "if" abfragen! (siehe code)
Mein Problem ist nun, dass ich in der Abfrage, die Textfarbe nicht mehr ändern kann. sobald ich vor das
meine textfarbe setze, macht meine konsole nicht mehr weiter :<
Bleibt einfach stehen und gibt garnix mehr zurück...
Kann mir jemand helfen?
I hob da n Problämm...
Ich habe ne DLL in der ich eine Konsole erscheinen lasse.
Dann hab ich ne kleine Funktion zum ändern der Schriftfarbe..
Soweit so gut...
Funktioniert soweit- ABER...
Ich will jetzt ne Eingabe per "if" abfragen! (siehe code)
PHP Code:
void Konsole()
{
AllocConsole();
freopen("CONOUT$", "wb", stdout);
freopen("CONOUT$", "wb", stderr);
freopen("CONIN$", "rb", stdin);
SetConsoleTitle(TEXT("DLL (Konsole)"));
textcolor(LIGHTGREEN); std::cout << "Successfully Injected! \n";
std::cout << "\n"; //Noch ne Leerzeile
textcolor(LIGHTCYAN); std::cout << "[CONSOLE] Type in your cmd: "; textcolor(WHITE);
for(;;){
char* eingabe;
std::cin >> eingabe;
if(!strcmp("/cmd", eingabe))
{
std::cout << "Yo! \n";
}
else
{
std::cout << "Can´t find command '" << eingabe << "'" << "\n";
}
}
}
Code:
std::cout << "Yo! \n";
Bleibt einfach stehen und gibt garnix mehr zurück...
Kann mir jemand helfen?