Jump to content
Sign in to follow this  
DigDeep

Font Color

Recommended Posts

DigDeep

As per the help file the below code gives the result as : 128

Is there anyway I can get the font in the color code instead of the number? I don't want GUI base.

#include <Color.au3>

Local $iColor = _ColorGetRed(0x8080ff)
MsgBox(0, "AutoIt", $iColor)

 

Share this post


Link to post
Share on other sites
UEZ

As per the help file the below code gives the result as : 128

Is there anyway I can get the font in the color code instead of the number? I don't want GUI base.

#include <Color.au3>

Local $iColor = _ColorGetRed(0x8080ff)
MsgBox(0, "AutoIt", $iColor)

 

​What do you mean with "font in the color color code"? The _ColorGet* functions are for getting the RGB values nothing more.


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
DigDeep

I see...

Below code is just a dummy one and might not be correct. But this is what I wanted.

When the messageBox appears it would show text in color.

Now I know msgbox cannot give color text. so is there any ways the Func could be changed so that text would be coming in Red?

 

While 1
    $nMsg = GUIGetMsg()

    Switch $nMsg
        Case $GUI_EVENT_CLOSE

        Case $Ok
            Select
                Case Not ProcessExists("ProcessName")
                    Message()
                    MsgBox(0, "", $Message)
            EndSelect
            EndSwitch
WEnd

Func Message()
    Select
    Case Not ProcessExists("ProcessName")
        $Message = "Not running"
        GUICtrlSetColor($Message, $COLOR_RED)

    Case Else
        $Message = "running"
    EndFunc

 

Share this post


Link to post
Share on other sites
UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×