更改白名单的文本颜色 [英] Change text color for whitelist

查看:73
本文介绍了更改白名单的文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好我们做了一个白名单,如果html代码没有你的hwid它说认证失败并且它工作但是由于某种原因文本不会改变颜色,当它说这里是我的代码



Hello guys I made a whitelist and if the html code does not have your hwid it says Authentication Failed And it worked but for some reason the text wont change color when it says it here is my code

if (Response == "s") {
		ConsoleOutput2(RGB(255, 0, 0), "Authentication Failed...\n %s<\n", HWID.c_str());
		Sleep(10000);
		ExitThread(0);
		return false;
	}





有人可以帮忙吗?



我尝试过:





Can Anyone help?

What I have tried:

if (Response == "s") {
		ConsoleOutput2(RGB(255, 0, 0), "Authentication Failed...\n %s<\n", HWID.c_str());
                textcolor(RED);
cprintf("H");
textcolor(BLUE);
cprintf("e");
		Sleep(10000);
		ExitThread(0);
		return false;
	}

推荐答案

所需的函数是
SetConsoleTextAttribute( _In_ HANDLE hConsoleOutput, _In_ WORD Attributes )

您可以在此处找到一些解释,并从Microsoft



为什么你没有谷歌呢?

and you find some explanation here and some details fromMicrosoft.

Why havent you Google for it?


这篇关于更改白名单的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆