更改白名单的文本颜色

编程入门 行业动态 更新时间:2024-10-26 14:31:24
本文介绍了更改白名单的文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好我们做了一个白名单,如果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?

更多推荐

更改白名单的文本颜色

本文发布于:2023-11-27 06:49:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637027.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   颜色   名单

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!