wojtek109 Posted August 8, 2013 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
Edano Posted August 8, 2013 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]
FireFox Posted August 8, 2013 Posted August 8, 2013 Hi, Take a look at the _GUICtrlSlider_SetPos function. Br, FireFox.
wojtek109 Posted August 8, 2013 Author 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
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