Jump to content

Text Color Question


Recommended Posts

Does anyone know if you could have a color word display in a message box? Please let me know. Thanks in advance.

I dont think you can using the standard MsgBox() command, but it would be easy to make a GUI equivalant in a function that had a colored label.

AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)
Link to comment
Share on other sites

Would I be able to call out the GUI function to display as a message box during the script?

I dont think you can using the standard MsgBox() command, but it would be easy to make a GUI equivalant in a function that had a colored label.

Link to comment
Share on other sites

Thank you guys for the Idea. I added this fuction at the end of the script where it exit if variable is not found and this is what it looks like.

#region --- GuiBuilder code Start ---
#include <GuiConstants.au3>

GuiCreate("RESULTS", 194, 93,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
GUICtrlCreateLabel ("Test Results: FAILED!!!", 40,15)
GUICtrlSetColor(-1,0xff0000); Red
GUICtrlCreateLabel ("(Contact Engineering for Assistance)", 10,30)
GUICtrlSetColor(-1,0x0000ff); Blue
$Exit_1 = GuiCtrlCreateButton("Exit", 40, 50, 120, 30)

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
        Case $msg = $Exit_1
            Exit
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    EndSelect
WEnd
Exit
#endregion --- GuiBuilder generated code End ---

Would I be able to call out the GUI function to display as a message box during the script?

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...