I have an example script that outputs numbers. It works fine, what I would like to do is change the color of the numbers in the output box. What I would like is the numbers 2,3,4,5,2,3 to appear red. I have also tried the command GUICtrlSetColor(-1, 0x0000FF) to set the color and it does'nt work. Any feed back woruld be great thanks. Here is the script
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <GuiComboBoxEx.au3>
$Form1 = GUICreate("Form1", 197, 66, 192, 124)
$Label1 = GUICtrlCreateLabel("Choose number:", 10, 12, 93, 17)
$Combo1 = GUICtrlCreateCombo("Choose here...", 106, 10, 81, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "2|3|4|5|2|3")
$Button1 = GUICtrlCreateButton("Start", 50, 32, 97, 25)
Global $file = FileOpen('c:\ChangeMe.txt', 0)
GUISetState(@SW_SHOW)
While 1
$chosen = GUICtrlRead($Combo1)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$chosen = GUICtrlRead($Combo1)
Switch $chosen
Case "2"
Case "3"
Case "4"
Case "5"
Case "2"
Case "3"
EndSwitch
Endswitch
WEnd