LIMITER Posted January 13, 2008 Share Posted January 13, 2008 (edited) When the app updates the $remianing control and the $elapsed control , the label is flickering ... who could i fix that ? i tried to put sleep() but if i use that the whole gui sleeps ... [autoit]#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=lmp.ico #AutoIt3Wrapper_outfile=lmp.exe #AutoIt3Wrapper_Res_Description=L|M|TER Media Player #AutoIt3Wrapper_Res_Fileversion=2.0.0 #AutoIt3Wrapper_Res_LegalCopyright= Edited January 13, 2008 by LIMITER Link to comment Share on other sites More sharing options...
Siao Posted January 13, 2008 Share Posted January 13, 2008 RTFM SplashTextOn(), it has a remark addressing update flicker. "be smart, drink your wine" Link to comment Share on other sites More sharing options...
LIMITER Posted January 13, 2008 Author Share Posted January 13, 2008 RTFM SplashTextOn(), it has a remark addressing update flicker.I want to know if i can fix the $REMAINING and $ELAPSED labels so that they don't flicker when i update them ... NOT THE SPLASH !!!!!!!!!!!!!!1 Link to comment Share on other sites More sharing options...
LarryDalooza Posted January 13, 2008 Share Posted January 13, 2008 It may be a bug... create a short example script... I remember that I had to switch from GUICtrlSetData() to ControlSetText() in a project because of flicker... Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Developers Jos Posted January 13, 2008 Developers Share Posted January 13, 2008 have you tried only updating the control when the value changed ...not each loop... SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
GEOSoft Posted January 13, 2008 Share Posted January 13, 2008 RTFM SplashTextOn(), it has a remark addressing update flicker.In his case $Remaining is a label not splash text. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
GEOSoft Posted January 13, 2008 Share Posted January 13, 2008 One of the first steps is to split that label into 2. The text "Remaining:" is constant so just put that into a separate label so it doesn't update. The second label which will contain the actual updated text can be handled with something like the following; $txt1 = GUICtrlRead($label) $txt2 = "What I want the label to display" If $Txt2 <> $Txt1 Then GUICtrlSetData($label, $Txt2) George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
LIMITER Posted January 13, 2008 Author Share Posted January 13, 2008 One of the first steps is to split that label into 2. The text "Remaining:" is constant so just put that into a separate label so it doesn't update.The second label which will contain the actual updated text can be handled with something like the following;$txt1 = GUICtrlRead($label)$txt2 = "What I want the label to display"If $Txt2 <> $Txt1 Then GUICtrlSetData($label, $Txt2)THX ! now it doesn't filcker ... Link to comment Share on other sites More sharing options...
GEOSoft Posted January 13, 2008 Share Posted January 13, 2008 THX ! now it doesn't filcker ...When updating label data it is always better to test for existing data before updating.BTW: the same applies to GUICtrlSetState(). Test for the current state before setting a new state. That also avoids flickering. If you don't test then GUICtrlSetState() will set that state whether or not it is already the current state and that causes a brief flicker. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
star2 Posted January 13, 2008 Share Posted January 13, 2008 When updating label data it is always better to test for existing data before updating.BTW: the same applies to GUICtrlSetState(). Test for the current state before setting a new state. That also avoids flickering.well I needed that !!thanks for the info !!! [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
LIMITER Posted January 13, 2008 Author Share Posted January 13, 2008 When updating label data it is always better to test for existing data before updating.BTW: the same applies to GUICtrlSetState(). Test for the current state before setting a new state. That also avoids flickering. If you don't test then GUICtrlSetState() will set that state whether or not it is already the current state and that causes a brief flicker.THX For Help GeoSoft !!! Link to comment Share on other sites More sharing options...
GEOSoft Posted January 13, 2008 Share Posted January 13, 2008 THX For Help GeoSoft !!!No problem. Glad it helps. One of these days I have to get around to collecting all of these tips in one place and putting them on my web site. Maybe tomorrow (because tomorrow never comes). George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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