Jump to content

Font Color


Recommended Posts

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...