basel1998 Posted October 12, 2013 Posted October 12, 2013 hi i need help in gui #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <SliderConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Hi", 601, 100, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 500, 0, 97, 22) $Input1 = GUICtrlCreateInput("Input1", 0, 0, 497, 21) $Slider1 = GUICtrlCreateSlider(0, 24, 521, 33) $Progress1 = GUICtrlCreateProgress(8, 64, 585, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 msgbox(16,'Test',here from $input1) case $Slider1 set $progress one EndSwitch WEnd in case $Button1 msgbox(16,'Test',here from $input1) case $Slider1 set $progress one
JohnOne Posted October 12, 2013 Posted October 12, 2013 Go bonkers and explain. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Solution Alexxander Posted October 12, 2013 Solution Posted October 12, 2013 #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <SliderConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Hi", 601, 100, 192, 124) $Button1 = GUICtrlCreateButton("Button1", 500, 0, 97, 22) $Input1 = GUICtrlCreateInput("Input1", 0, 0, 497, 21) $Slider1 = GUICtrlCreateSlider(0, 24, 521, 33) $Progress1 = GUICtrlCreateProgress(8, 64, 585, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 msgbox(16,'Test',GUICtrlRead($Input1)) GUICtrlSetData($Progress1, 50) EndSwitch WEnd please read more about gui n the help doc
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