Vanaxel Posted November 28, 2006 Posted November 28, 2006 hi there, i have made a gui and now I wanna get the values I choose inside this gui into variables, but somehow I'm unable to understand this #include <GUIConstants.au3> $Form1 = GUICreate("GUI", 398, 206, 500, 238) $Group1 = GUICtrlCreateGroup("Choose", 0, 0, 193, 169) $Radio1 = GUICtrlCreateRadio("test1", 8, 20, 180, 17) $Radio3 = GUICtrlCreateRadio("test2", 8, 60, 180, 17) $Radio2 = GUICtrlCreateRadio("test3", 8, 40, 180, 17) $Radio4 = GUICtrlCreateRadio("test4", 8, 80, 180, 17) $Radio5 = GUICtrlCreateRadio("test5", 8, 100, 180, 17) $Radio6 = GUICtrlCreateRadio("test6", 8, 120, 180, 17) $Radio7 = GUICtrlCreateRadio("test7", 8, 140, 180, 17) $Date = GUICtrlCreateGroup("", -99, -99, 1, 1) $MonthCal1 = GUICtrlCreateMonthCal("2006/11/24", 200, 0, 193, 169) $Button1 = GUICtrlCreateButton("DO IT", 264, 176, 129, 25, 0) $Button2 = GUICtrlCreateButton("CLOSE", 0, 176, 129, 25, 0) what i need now is: $var1 = which of this seven RadioButtons $var2 = which Date I have chosen I'm sorry for my noobish questions but hopefully somebody can help me? regards, Van
GaryFrost Posted November 28, 2006 Posted November 28, 2006 hi there, i have made a gui and now I wanna get the values I choose inside this gui into variables, but somehow I'm unable to understand this #include <GUIConstants.au3> $Form1 = GUICreate("GUI", 398, 206, 500, 238) $Group1 = GUICtrlCreateGroup("Choose", 0, 0, 193, 169) $Radio1 = GUICtrlCreateRadio("test1", 8, 20, 180, 17) $Radio3 = GUICtrlCreateRadio("test2", 8, 60, 180, 17) $Radio2 = GUICtrlCreateRadio("test3", 8, 40, 180, 17) $Radio4 = GUICtrlCreateRadio("test4", 8, 80, 180, 17) $Radio5 = GUICtrlCreateRadio("test5", 8, 100, 180, 17) $Radio6 = GUICtrlCreateRadio("test6", 8, 120, 180, 17) $Radio7 = GUICtrlCreateRadio("test7", 8, 140, 180, 17) $Date = GUICtrlCreateGroup("", -99, -99, 1, 1) $MonthCal1 = GUICtrlCreateMonthCal("2006/11/24", 200, 0, 193, 169) $Button1 = GUICtrlCreateButton("DO IT", 264, 176, 129, 25, 0) $Button2 = GUICtrlCreateButton("CLOSE", 0, 176, 129, 25, 0) what i need now is: $var1 = which of this seven RadioButtons $var2 = which Date I have chosen I'm sorry for my noobish questions but hopefully somebody can help me? regards, Van look at GuiCtrlRead for example $var1 = GuiCtrlRead($Radio1) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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