Jump to content

Recommended Posts

Posted

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

Posted (edited)

probably ControlSend("MyApp","",$hSlider,"{DOWN}") (arrowkey down) will do it. or try on your keyboard first what key works best.

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Posted

$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
 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...