1 [Auto] Slider Sat Aug 28, 2010 1:23 am
Top
Contributor
Simple AutoIt Slider. Get;s the value.
- Code:
#include <GUIConstantsEx.au3>
Opt('MustDeclareVars', 1)
Example()
Func Example()
Local $slider1, $button, $msg
GUICreate("slider", 220, 100, 100, 200)
GUISetBkColor(0x00E0FFFF)
$slider1 = GUICtrlCreateSlider(10, 10, 200, 20)
GUICtrlSetLimit(-1, 200, 0)
$button = GUICtrlCreateButton("Value?", 75, 70, 70, 20)
GUISetState()
GUICtrlSetData($slider1, 45)
Do
$msg = GUIGetMsg()
If $msg = $button Then
MsgBox(0, "slider1", GUICtrlRead($slider1), 2)
EndIf
Until $msg = $GUI_EVENT_CLOSE
EndFunc