BlazeLondon Posted March 3, 2006 Share Posted March 3, 2006 does anyone know if its possible to do the attached? have a slider with, in my case 3 positions if position 1 then if position 2 then if position 3 then default position = Link to comment Share on other sites More sharing options...
nfwu Posted March 3, 2006 Share Posted March 3, 2006 (edited) Like this? GUICreate("slider",220,100, 100,200) GUISetBkColor (0x00E0FFFF); will change background color $slider1 = GUICtrlCreateSlider (10,10,200,20) GUICtrlSetLimit(-1,3,1) ; change min/max value $button = GUICtrlCreateButton ("DO SOMETHING", 75,70,70,20) GUISetState() GUICtrlSetData($slider1,2); set cursor to middle Do $n = GUIGetMsg () If $n = $button Then $value = GUICtrlRead($slider1) If $value == 1 Then MSGBOX(0,"","STH FANTASTIC LEFT") Endif If $value == 2 Then MSGBOX(0,"","STH FANTASTIC MIDDLE") Endif If $value == 3 Then MSGBOX(0,"","STH FANTASTIC RIGHT") Endif EndIf Until $n = $GUI_EVENT_CLOSE #) EDIT: (NOT TESTED) Edited March 3, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 3, 2006 Moderators Share Posted March 3, 2006 (edited) Does this work for you? GUICtrlCreateSlider() Edit: Or - Since nwfu gave an entire example ... and beat me to the punch... does 'that' work for you? Edited March 3, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
BlazeLondon Posted March 3, 2006 Author Share Posted March 3, 2006 Does this work for you? GUICtrlCreateSlider()Edit: Or - Since nwfu gave an entire example ... and beat me to the punch... does 'that' work for you?Thank you and sorry; i should have found that myself. Link to comment Share on other sites More sharing options...
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