Wb-FreeKill Posted March 5, 2005 Posted March 5, 2005 Im having trouble getting this to work, when i move the slider, it should set the % for the label, $s = GuiCtrlCreateSlider (0,0,200,20) $label = GUIctrlcreatelabel("",30,100,70,20) $p = 100 $last = 100 While 1 Sleep(10) $p = GuictrlRead($s) If $last = $p Then Else GUICtrlsetdata("handle=" & $label, $p & "%" ) $last = $p EndIf wend
zeroZshadow Posted March 5, 2005 Posted March 5, 2005 (edited) you got to do the setlimit command also, i'll edit ur script, it'll take a sec. Edit: here ya go, there is no exit thing, just what you asked for(i hope) $GUI = GUICreate("Slider test") $slider = GuiCtrlCreateSlider (0,0,200,20) GUICtrlSetLimit ($slider,100,0) $label = GUIctrlcreatelabel("",30,100,70,20) GUISetState() $procent = 100 While 1 Sleep(10) $procent = GuictrlRead($slider) GUICtrlsetdata($label,"Slider= "&$procent&"%" ) wend Edited March 5, 2005 by zeroZshadow *If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...
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