longxx Posted June 3, 2008 Share Posted June 3, 2008 hi all I am making a GUI window to show game status, this is what I have so far (only core codes) I know I should use GUICtrlSetData... but after reading the F1 help file I couldnt figure how to apply it can anyone just give me some example lines how to make this happen? thanks. While 1 global $status = _getName($hMem) Select Case $status = 17 GUICtrlCreatelabel("17: In Channel", 50, 33, 120, 20) Case $status = 13 GUICtrlCreatelabel("13: Searching", 50, 33, 120, 20) Case $status = 15 EndSelect Sleep(100) WEnd Link to comment Share on other sites More sharing options...
Airwolf Posted June 3, 2008 Share Posted June 3, 2008 can anyone just give me some example lines how to make this happen?;Create a Label $label1 = GUICtrlCreatelabel("17: In Channel", 50, 33, 120, 20) ;Modify the Label Data GuiCtrlSetData($label1, "New Label Data - will replace 17: In Channel") Certifications: A+, Network+, Security+, Linux+, LPIC-1, MCSA | Languages: AutoIt, C, SQL, .NETBooks: AutoIt v3: Your Quick Guide - $7.99 - O'Reilly Media - September 2007-------->[u]AutoIt v3 Development - newbie to g33k[/u] - Coming Soon - Fate Publishing - Spring 2013UDF Libraries: SkypeCOM UDF Library | ADUC Computers OU Cleanup | Find PixelChecksumExamples: Skype COM Examples - Skype4COMLib Examples converted from VBS to AutoIt Link to comment Share on other sites More sharing options...
longxx Posted June 3, 2008 Author Share Posted June 3, 2008 (edited) Thank you Airwolf, it's working fine ! EDIT: After observing it for long time, I noticed the flicker is a LOT better than before, but since it's a lopp there is still slight change is it way to make it only change when value is different? or is it unnecessary? thanks Edited June 3, 2008 by longxx Link to comment Share on other sites More sharing options...
Zedna Posted June 3, 2008 Share Posted June 3, 2008 Thank you Airwolf, it's working fine ! EDIT: After observing it for long time, I noticed the flicker is a LOT better than before, but since it's a lopp there is still slight change is it way to make it only change when value is different? or is it unnecessary? thanks global $status, $status_old While 1 $status = _getName($hMem) If $status <> $status_old Then GUICtrlSetData($label, $status & ": In Channel") $status_old = $status EndIf Sleep(100) WEnd Resources UDF ResourcesEx UDF AutoIt Forum Search 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