BrettF Posted January 14, 2007 Share Posted January 14, 2007 How can i get the radio buttons to work? $term2 = "input" $google = GUICtrlRead($Radio1) $Yahoo = GUICtrlRead($Radio2) $MSN = GUICtrlRead($Radio3) $Jeeves = GUICtrlRead($Radio4) $Dogpile = GUICtrlRead($Radio5) $term = GUICtrlRead($Input2) If $Radio1 Or $Radio2 Or $Radio3 Or $Radio4 Or $Radio5 = $google Then $oIE.Navigate ("http://www.google.com.au/search?hl=en&q=" & $term2 & "&meta=") ElseIf $Radio1 Or $Radio2 Or $Radio3 Or $Radio4 Or $Radio5 = $Yahoo Then $oIE.Navigate ("http://search.yahoo.com/search?p=" & $term & "&fr=yfp-t-390&toggle=1&cop=mss&ei=UTF-8&vc=&fp_ip=AU") ElseIf $Radio1 Or $Radio2 Or $Radio3 Or $Radio4 Or $Radio5 = $MSN Then $oIE.Navigate ("http://search.ninemsn.com.au/results.aspx?q=" & $term & "&geovar=70&FORM=REDIR") ElseIf $Radio1 Or $Radio2 Or $Radio3 Or $Radio4 Or $Radio5 = $Jeeves Then $oIE.Navigate ("http://www.ask.com/web?q=" & $term & "&qsrc=0&o=0&l=dir") ElseIf $Radio1 Or $Radio2 Or $Radio3 Or $Radio4 Or $Radio5 = $Dogpile Then $oIE.Navigate ("http://www.dogpile.com/info.dogpl/search/web/" & $term & "/1/-/1/-/-/-/1/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/417/top/-/-/-/1") EndIf _IELoadWait($oIE) $URL = String($oIE.LocationURL) GUICtrlSetData($Input1, $URL) $name = $oIE.LocationName Thats what i came up with. What should it be?? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Zedna Posted January 14, 2007 Share Posted January 14, 2007 (edited) If IsChecked($Radio1) Or IsChecked($Radio2) Then ... Func IsChecked($control) Return BitAnd(GUICtrlRead($control),$GUI_CHECKED) = $GUI_CHECKED EndFunc Edited January 14, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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