Flamingwolf Posted February 22, 2009 Posted February 22, 2009 (edited) I'm trying to fix up my program for mp3 searching using google, but when I try to put quotes in, it doesn't come out right, and when I get quotes working, plus [+] doesn't show up. The thing I don't understand, is that both show up every time when I put the string in a MsgBox. Any ideas? What I've tried: Func FindMp3() $INPUTT = StringSplit(GUICtrlRead($INPUT1), ' ') $SEARCH = '' $INPUTT2 = $INPUTT[0] - 1 For $I = $INPUTT2 To 0 Step -1 $TEMP = $INPUTT[0] - $I $SEARCH &= $INPUTT[$TEMP] If $I <> 0 Then $SEARCH &= '+' EndIf Next $FINAL = "http://www.google.com/search?hl=en&q=intitle:index.of +""last modified"" +""parent directory"" +(mp3|wma|ogg) +""" & $SEARCH & """ -htm -html -php -asp&meta=" ShellExecute($FINAL) EndFunc $FINAL = 'http://www.google.com/search?hl=en&q=intitle:index.of +"last modified" +"parent directory" +(mp3|wma|ogg) +"' & $SEARCH & '" -htm -html -php -asp&meta=' ShellExecute($FINAL) ShellExecute("http://www.google.com/search?hl=en&q=intitle:index.of +""last modified"" +""parent directory"" +(mp3|wma|ogg) +""" & $SEARCH & """ -htm -html -php -asp&meta=") ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of +"last modified" +"parent directory" +(mp3|wma|ogg) +"' & $SEARCH & '" -htm -html -php -asp&meta=') Edited February 22, 2009 by Flamingwolf
Authenticity Posted February 22, 2009 Posted February 22, 2009 (edited) ... ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of +"last modified" +"parent directory" +(mp3|wma|ogg) +"' & $SEARCH & '" -htm -html -php -asp&meta=') No host+path should contain blanks: ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of+"last modified"+"parent directory"+(mp3|wma|ogg)+"' & $SEARCH & '"-htm-html-php-asp&meta=') Like: ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of+"last modified"+"parent directory"+(mp3|wma|ogg)+"Autoit v3"-htm-html-php-asp&meta=') Use the ASCII code prepended by an the percent sign (%) to specify these characters like %20 for space or %22 for ", anyway only spaces between double-quoted string are allowed. Edited February 22, 2009 by Authenticity
Flamingwolf Posted February 22, 2009 Author Posted February 22, 2009 No host+path should contain blanks: ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of+"last modified"+"parent directory"+(mp3|wma|ogg)+"' & $SEARCH & '"-htm-html-php-asp&meta=') Like: ShellExecute('http://www.google.com/search?hl=en&q=intitle:index.of+"last modified"+"parent directory"+(mp3|wma|ogg)+"Autoit v3"-htm-html-php-asp&meta=') Use the ASCII code prepended by an the percent sign (%) to specify these characters like %20 for space or %22 for ", anyway only spaces between double-quoted string are allowed. Thanks!
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