Triton Posted March 18, 2004 Author Posted March 18, 2004 Aahhhh Dude you opened the flood gates....I was looking at this sample code in one the the au3guixp builds and couldn't find anything that explained the parameters of the functions. expandcollapse popupFunc GUI() $title = "My GUI test" GUIForm($title, 100, 200, 400, 300, "help=notepad", 1) $lang = GUIControl("combo", "", 50, 50, 100, 80,_ "tooltip=A programming language_ |data=Python;C++;Delphi;AutoIt;Java_ |selected=AutoIt_") $member = GUIControl("combo", "+", 0, 30, -1, -1,_ "tooltip=An AutoIt member_ |style=+CBS_DROPDOWNLIST_ |data=Trids;CyberSlug;Larry;Jon;Tylo_ |selected=Larry") $chk1True = 0 $chk1 = GUIControl("checkbox", "+", 0, 30, -1, 20,_ "text=Hello|selected=" & $chk1True) ; "+" means relative positioning $chk2 = GUIControl("checkbox", "+", 0, 30, -1, 20,_ "text=Goodbye|disabled=" & (Not $chk1True)) GUIControlAction($chk1, "unchecked.disable", $chk2 &";"& $lang) GUIControlAction($chk1, "checked.enable", $chk2 &";"& $lang) GUIControl("button", "+", 0, 30, -1, 20, "text=Apply|submit=1") GUIControl("button", "+", 0, 30, -1, 20, "text=Done|close=1|submit=1") GUIControlCurPos(0, 200, 30, 100, 20) $tab1 = GUIControl("radio", "+", 0, 30, -1, -1, "text=Hello") $tab2 = GUIControl("radio", "+", 0, 30, -1, -1, "text=Great") Run("AU3GUIXP.exe") WinWait($title) While (WinExists($title)) Do Sleep(300) Until GUIFormChange() If (@error = 0) Then $res = "" $res = $res & GUIControlRead($lang, "") & @LF $res = $res & GUIControlRead($member, "") & @LF $res = $res & GUIControlReadState($chk1) & @LF $res = $res & GUIControlReadState($chk2) & @LF $res = $res & GUIControlReadState($tab1) & @LF $res = $res & GUIControlReadState($tab2) & @LF MsgBox(0, "Result", $res) EndIf Wend GUIClear() EndFunc Triton
Triton Posted March 19, 2004 Author Posted March 19, 2004 (edited) what does the highlighted mean?EnvSet("GUI","title=Wizard|action=8|style=" & $WS_CAPTION)I couldn't find anything on this. I found It..... Edited March 19, 2004 by Triton Triton
Triton Posted March 19, 2004 Author Posted March 19, 2004 the real big question is how do i evaluate the radios, whether its on or not? Triton
dabus Posted October 6, 2004 Posted October 6, 2004 Hi Doc Larry I wanted to write a script that checks a checkbox if another is checked, e.g. if OBJ 10 is checked, OBJ11 will be checked too.It's not essential but it would be nice if you could see the change as fast as you can with this nifty "enable=11" expression.Something like EnvSet("OBJ10","type=checkbox|text=Project A|checked.select=11)would would be a charm.Please tell me if I'm too dumb to figure it out or if this is not possible.
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