Welcome to techntips.net
Today we are going to learn how to change console text colour in Python, C++, C, Java, C#, or any other programming language in very easy way.
Console text colour makes your program attractive and sometimes it can also be used to show important text like warnings in different colour so that it can get user's attention.
Today we will learn an easy way to do this in any programming language.
Before starting further, I would like to tell you that this method only works in windows.
Let's start now.
Step1:-- Download Techntips colourize.dll
Click here to download colourize.dll
Colourize.dll is developed by techntips.net to make
changing console colour easier in any programming
language.
Step2:-- Now load colourize.dll in your program whatever
programming language you choose.
Step3:-- Now load - MsgBox(<colour_code>) function in
colourize.dll file. Replace -- <colour_code> with colour
codes in below list:--
DARKBLUE=1
DARKGREEN=2
DARKTEAK=3
DARKRED=4
DARKPINK=5
DARKYELLOW=6
GRAY=7
DARKGRAY=8
BLUE=9
GREEN=10
TEAL=11
RED=12
PINK=13
YELLOW=14
WHITE=15
For example:-- MsgBox(14)
Now you will see the console text colour has been changed according to your choice.
Below is the example of using this dll file in python:--
import ctypes
a=ctypes.CDLL("colourize.dll")
a.MsgBox(14)
Below is the screenshot of using this dll in python:--
Subscribe us to stay updated with us
Today we are going to learn how to change console text colour in Python, C++, C, Java, C#, or any other programming language in very easy way.
Console text colour makes your program attractive and sometimes it can also be used to show important text like warnings in different colour so that it can get user's attention.
Today we will learn an easy way to do this in any programming language.
Before starting further, I would like to tell you that this method only works in windows.
Let's start now.
Step1:-- Download Techntips colourize.dll
Click here to download colourize.dll
Colourize.dll is developed by techntips.net to make
changing console colour easier in any programming
language.
Step2:-- Now load colourize.dll in your program whatever
programming language you choose.
Step3:-- Now load - MsgBox(<colour_code>) function in
colourize.dll file. Replace -- <colour_code> with colour
codes in below list:--
DARKBLUE=1
DARKGREEN=2
DARKTEAK=3
DARKRED=4
DARKPINK=5
DARKYELLOW=6
GRAY=7
DARKGRAY=8
BLUE=9
GREEN=10
TEAL=11
RED=12
PINK=13
YELLOW=14
WHITE=15
For example:-- MsgBox(14)
Now you will see the console text colour has been changed according to your choice.
Below is the example of using this dll file in python:--
import ctypes
a=ctypes.CDLL("colourize.dll")
a.MsgBox(14)
Below is the screenshot of using this dll in python:--
Subscribe us to stay updated with us
Thanks for that dll file. May I ask you if a have a directory where you keep all of yours dll files? It would be way easier to get great stuff. Some directory like fix4dll, where gathered a lot of dll files, for e.g. http://fix4dll.com/x3daudio1_7_dll/ Thanks for your job one more time.
ReplyDeleteHello Trevor,
DeleteThank you for your comment.
We would love to help you.
We are setting up a server for our stuffs.
Stay updated with us.