Ryan Posted July 9, 2009 Share Posted July 9, 2009 I cant get the text to change color with the var is "Arrived trainplace" expandcollapse popup#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Include <GuiEdit.au3> #include <ButtonConstants.au3> #Region ### START Koda GUI section ### Form=C:\Documents and Settings\Ryan\Desktop\FormForSbotStatus2.kxf $Form1 = GUICreate("Sbot Status", 894, 691, -1, -1) $sbotstatus = GUICtrlCreateGroup("Sbot Status", 8, 8, 209, 217) $char1 = GUICtrlCreateLabel("Bot1", 14, 32, 76, 12) $char2 = GUICtrlCreateLabel("", 14, 56, 76, 12) $char3 = GUICtrlCreateLabel("", 14, 80, 76, 12) $char4 = GUICtrlCreateLabel("", 14, 104, 76, 12) $char5 = GUICtrlCreateLabel("", 14, 128, 76, 12) $char6 = GUICtrlCreateLabel("", 14, 152, 76, 12) $char7 = GUICtrlCreateLabel("", 14, 176, 76, 12) $char8 = GUICtrlCreateLabel("", 14, 200, 76, 12) $1botstatus = ControlGetHandle("[Mr_Tanker] SBot v1.29 (C)2008,2009 by bot-cave.net", "", "Static11") If $1botstatus = "Arrived trainplace" then $botstatus1 = GUICtrlCreateLabel("", 108, 32, 100, 12) GUICtrlSetColor(-1, 0xFF0000) Else $botstatus1 = GUICtrlCreateLabel("", 108, 32, 100, 12) EndIf $sbotstatus2 = GUICtrlCreateLabel("", 108, 56, 100, 12) $sbotstatus3 = GUICtrlCreateLabel("", 108, 80, 100, 12) $sbotstatus4 = GUICtrlCreateLabel("", 108, 104, 100, 12) $sbotstatus5 = GUICtrlCreateLabel("", 108, 128, 100, 12) $sbotstatus6 = GUICtrlCreateLabel("", 108, 152, 100, 12) $sbotstatus7 = GUICtrlCreateLabel("", 108, 176, 100, 12) $sbotstatus8 = GUICtrlCreateLabel("", 108, 200, 100, 12) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### GUICtrlSetData($botstatus1, _GUICtrlEdit_GetText($1botstatus)) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Beege Posted July 9, 2009 Share Posted July 9, 2009 $1botstatus = ControlGetHandle("[Mr_Tanker] SBot v1.29 (C)2008,2009 by bot-cave.net", "", "Static11") If $1botstatus = "Arrived trainplace" then if you declare $1botstatus as a handle its never going to = "arrived trainplace". Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator 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