Sn0opy Posted June 13, 2007 Share Posted June 13, 2007 Hey, i've got a problem with my statusbar. Stautusbarcode: $defaultstatus = "Ready" $l_statusbar = GUICtrlCreateLabel($defaultstatus, 2, 232, 382, 16, $SS_SUNKEN) oÝ÷ ÙJ]jס׺Ú"µÍBÚ[HBYØÙÜÑ^ÝÊ ][ÝÚ^I][ÝÊH[BIÌÍÝÝHÕRPÝÙ]]J ÌÍÛÜÝ]Ø ][ÝÐÛÝ[TÝZÙHÝYH [ÈÓ ][ÝÊBQ[ÙBBBQÕRPÝÙ]]J ÌÍÛÜÝ]Ø ÌÍÙY][Ý]ÊBQ[YÙ[ Well, the program changes the label-data when hl.exe starts. But if the process doesn't (?) exists, it updates the label as long until hl.exe starts. Effect: My statusbar is flickering. How can I fix that? Link to comment Share on other sites More sharing options...
mrbond007 Posted June 13, 2007 Share Posted June 13, 2007 (edited) you can try using : while 1 If ProcessExists("hl.exe") Then Sleep(25) $test = GUICtrlSetData($l_statusbar,"Counter-Strike started - HF & GL") Else Sleep(25) GUICtrlSetData($l_statusbar,$defaultstatus) EndIf wend Edited June 13, 2007 by mrbond007 Projects : Space Regain - Memory Fusion - PWGT - Chip-ITGames : BrainPain - BrainPain Director's Cut - ProSpeed Games Pack (New)Vista vs XP : the forbidden fight Link to comment Share on other sites More sharing options...
Sn0opy Posted June 13, 2007 Author Share Posted June 13, 2007 (edited) you can try using : while 1 If ProcessExists("hl.exe") Then Sleep(25) $test = GUICtrlSetData($l_statusbar,"Counter-Strike started - HF & GL") Else Sleep(25) GUICtrlSetData($l_statusbar,$defaultstatus) EndIf wend Thanks! Omg, that was simple -.- p.s. with sleep(50) it works better! Edited June 13, 2007 by Sn0opy Link to comment Share on other sites More sharing options...
poisonkiller Posted June 13, 2007 Share Posted June 13, 2007 Or you can try this: while 1 If ProcessExists("hl.exe") Then If GuiCtrlGetData($l_statusbar) <> "Counter-Strike started - HF & GL" Then $test = GUICtrlSetData($l_statusbar,"Counter-Strike started - HF & GL") EndIf Else If GuiCtrlGetData($l_statusbar) <> $defaultstatus Then GUICtrlSetData($l_statusbar,$defaultstatus) EndIf wend 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