Jump to content
Sign in to follow this  
wojtek109

TrackBar set value

Recommended Posts

wojtek109

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

Share this post


Link to post
Share on other sites
Edano

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]

Share this post


Link to post
Share on other sites
FireFox

Hi,

Take a look at the _GUICtrlSlider_SetPos function.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
wojtek109

$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
 

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×