James Posted December 28, 2006 Share Posted December 28, 2006 I think this will be my last question for today I have a drop down box which has google and yahoo in. I basically need the user to type in what they want to search for and then select if it searchs Yahoo or Google. $SearchInput = GUICtrlCreateInput("", 15, 10, 435, 21) $Search = GUICtrlCreateButton("&Search", 536, 8, 72, 25, 0) $Engine = GUICtrlCreateCombo("Pick one!", 456, 10, 73, 25) GUICtrlSetData(-1, "Google|Yahoo") oÝ÷ ØZ½æ®¶s`¤66Rb33cµ6V&6 6VÆÄWV7WFRgV÷C·wwrævöövÆRæ6öÒ÷6V&6÷ÒgV÷C²fײuT7G&Å&VBb33cµ6V&6çWB Thanks Secure Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Valuater Posted December 28, 2006 Share Posted December 28, 2006 (edited) maybe... Case $Search If StringInStr(GUICtrlRead($Engine), "Google") Then ShellExecute ("www.google.com/search?q=" & GUICtrlRead($SearchInput)) Else ShellExecute ("www.Yahoo.com...????" & GUICtrlRead($SearchInput)) EndIf 8) Edited December 28, 2006 by Valuater Link to comment Share on other sites More sharing options...
James Posted December 28, 2006 Author Share Posted December 28, 2006 That doesn't work Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Valuater Posted December 28, 2006 Share Posted December 28, 2006 That doesn't work First it is an idea more than exact code, but i did find one error hereIf StringInStr(GUICtrlRead($Engine), "Google") Then; the ")" after enginebut the Yahoo is not correct, you need to finish the line8) Link to comment Share on other sites More sharing options...
James Posted December 28, 2006 Author Share Posted December 28, 2006 (edited) ShellExecute("http://search.yahoo.com/search;_ylt=A0oGki6dHJRFEk0AtBxXNyoA?p=" & GUICtrlRead($SearchInput) & "&prssweb=Search&ei=UTF-8&fr=yfp-t-501&fp_ip=UK&x=wrt&meta=0") oÝ÷ Øay0¢¹,~Øj(lGb´p¢¹,©ä³}ÿm«¢+Ø) ÍÀÌØíMÉ (%%MÑÉ¥¹%¹MÑÈ¡U% ÑɱI ÀÌØí¹¥¹¤°ÅÕ½Ðí½½±ÅÕ½Ðì¤Q¡¸($%M¡±±áÕÑ ÅÕ½ÐíÝÝܹ½½±¹½´½ÍÉ ýÄôÅÕ½ÐìµÀìU% ÑɱI ÀÌØíMÉ¡%¹ÁÕФ¤($%±Í($%M¡±±áÕÑ ÅÕ½Ðí¡ÑÑÀè¼½ÍÉ ¹å¡½¼¹½´½ÍÉ í}å±ÐõÁ½¤Ù!)I¬ÁÑ áa9å½ýÀôÅÕ½ÐìµÀìU% ÑɱI ÀÌØíMÉ¡%¹ÁÕФµÀìÅÕ½ÐìµÀíÁÉÍÍÝõMÉ µÀí¤õUQ´àµÀíÈõåÀµÐ´ÔÀĵÀíÁ}¥ÀõU,µÀíàõÝÉеÀíµÑôÀÅÕ½Ðì¤(%¹%( Edited December 28, 2006 by Secure_ICT Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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