DigDeep Posted April 28, 2015 Share Posted April 28, 2015 (edited) Hi,I have prepared a code which is working correctly as I need it to.As per the code, when the program ends, it would prompt the msgbox with the status. Either "Failed" or "Passed". I would like to get only the words "Failed" or "Passed" as Red or Green in color.The Check() function is inside a While......Wend and Func is outside it.At the start I have given 2 lines with $Failed and $Passed. That's just a dummy to help you understand what I am looking for which can be removed. That is not what is in my code.Can any one please help me out to get this part?$Failed = "Failed" ; Red color $Passed = "Passed" ; Green Color While GUICTRL..... .... .....Program runs here .... ;At the end displays msgbox with the checks. Check() MsgBox(0, "Check", $Check1 & @LF & @LF & $check2) Wend Func Check() Select Case Not ProcessExists("Process Name") Or Not FileExists("FileName 1") $Check1 = "Application check: " & $Failed Case Else $Check1 = "Application check: " & $Passed EndSelect Select Case Not FileExists("FileName 2") $check2 = "Version check: " & $Failed Case Else $check2 = "Version check: " & $Passed EndSelect EndFunc Edited April 28, 2015 by sunshinesmile84 Link to comment Share on other sites More sharing options...
JohnOne Posted April 28, 2015 Share Posted April 28, 2015 You cannot.You should use a custom GUI in it's place. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted April 28, 2015 Share Posted April 28, 2015 (edited) MsgBoxExt may work as well. I have only toyed around a bit with it but it definitely supports color text. Edited April 28, 2015 by ViciousXUSMC Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 28, 2015 Moderators Share Posted April 28, 2015 sunshinesmile84,You most certainly can select text colour with my UDF - and lots of other options as well.M23 mynameisSteve 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now