Sign in to follow this  
Followers 0
BrettF

WHY?

4 posts in this topic

Why wont this work?? I cant see why?

Case $Msg = $Button5 ; search
            $term = GUICtrlRead($Input2)
            $oIE.Navigate ($use & $term)
            _IELoadWait($oIE)
            $URL = String($oIE.LocationURL)
            GUICtrlSetData($Input1, $URL)
            $name = $oIE.LocationName
        Case $Msg = $radio1
            $use = "http://www.google.com.au/search?hl=en&q="
        Case $Msg = $radio2
            $use =  "http://search.yahoo.com/search?p="
        Case $Msg = $radio3
            $use =  "http://search.ninemsn.com.au/results.aspx?q="
        Case $Msg = $radio4
            $use =  "http://www.ask.com/web?q="
        Case $Msg = $radio5
            $use =  "http://www.dogpile.com/info.dogpl/search/web/"

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Why wont this work?? I cant see why?

Case $Msg = $Button5 ; search
            $term = GUICtrlRead($Input2)
            $oIE.Navigate ($use & $term)
            _IELoadWait($oIE)
            $URL = String($oIE.LocationURL)
            GUICtrlSetData($Input1, $URL)
            $name = $oIE.LocationName
        Case $Msg = $radio1
            $use = "http://www.google.com.au/search?hl=en&q="
        Case $Msg = $radio2
            $use =  "http://search.yahoo.com/search?p="
        Case $Msg = $radio3
            $use =  "http://search.ninemsn.com.au/results.aspx?q="
        Case $Msg = $radio4
            $use =  "http://www.ask.com/web?q="
        Case $Msg = $radio5
            $use =  "http://www.dogpile.com/info.dogpl/search/web/"
Anything specific we're are supposed to look at? Your topic is as enlightening as the actual question as is the code you provided us to help you debug. Edited by SmOke_N

[center]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.[/center]

Share this post


Link to post
Share on other sites

Sorry, when the radio button is selected, the value of $use changes, or so it should. Then when $button5 is pushed, $input2 is read the IE object navigates to $use & $term (Input 2's value). It dosn't seem to do that.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0