wojtek109 Posted August 8, 2013 Share Posted August 8, 2013 I want to chance value of trackbar $hSlider = ControlGetHandle("MyApp", "", "[CLASS:msctls_trackbar32;INSTANCE:1]") ; i have Handle of this Slider but dont know how to put it to min. value PLease HELP Link to comment Share on other sites More sharing options...
Edano Posted August 8, 2013 Share Posted August 8, 2013 (edited) probably ControlSend("MyApp","",$hSlider,"{DOWN}") (arrowkey down) will do it. or try on your keyboard first what key works best. Edited August 8, 2013 by Edano [color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font] Link to comment Share on other sites More sharing options...
FireFox Posted August 8, 2013 Share Posted August 8, 2013 Hi, Take a look at the _GUICtrlSlider_SetPos function. Br, FireFox. Link to comment Share on other sites More sharing options...
wojtek109 Posted August 8, 2013 Author Share Posted August 8, 2013 $hSlider = ControlGetHandle("MyWin", "", "[CLASS:msctls_trackbar32;INSTANCE:1]") ConsoleWrite($hSlider & @CRLF) ; Just check you have a valid handle $iPos = _GUICtrlSlider_GetPos($hSlider) ConsoleWrite($iPos & @CRLF) _GUICtrlSlider_SetPos($hSlider,1) and slider dont move in console i see right not moved position 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