Jump to content
Sign in to follow this  

Constantly update slider?

Recommended Posts


For that program I made, I want the slider to constantly update the color when you are moving the slider. I have it setup now, except it only updates when you release the slider (GUIGetEvent doesnt seem to detect its movement)

How could I go about this? I only need to run a setup func when your moving it thats all fine I just dont know how to detect when your selecting it...

Share this post

Link to post
Share on other sites

maybe this can help

#include <GuiConstants.au3>

GUICreate("my GUI")

$T_Volume = GUICtrlCreateSlider(20, 135, 200, 30)
GUICtrlSetLimit(-1, 100, 0)
GUICtrlSetCursor(-1, 0)
$level = "50" 
$save_level = $level
GUICtrlSetData($T_Volume, $level)


While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE then Exit
    If $level <> GUICtrlRead($T_Volume) Then
        $level = GUICtrlRead($T_Volume)



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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.