Sign in to follow this  
Followers 0
Flamingwolf

Quotes within a string

3 posts in this topic

#1 ·  Posted (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 by Flamingwolf

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Authenticity

Share this post


Link to post
Share on other sites

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!

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