What I want to do, is select some text, then by using a hotkey it will perform a google search of the selected text inside quotation marks, followed by musical artist. So if I select Radiohead, the search will be "Radiohead" musical artist.
I've got it working for most searches, but if the band name includes an & symbol, the google search misses the & symbol and everything after it.. and if the band name also has quotation marks in it, ie DANIELA ALBARRAN "LA BRUJITA", the google search cuts off everything after the first quotation mark..
Is there a way to ignore the & symbol and quotation marks inside the clipboard?
Here is the script so far..
Code: Select all
^!m::
Clipboard := ""
send, ^c
ClipWait, 2
if ErrorLevel
{
MsgBox, The attempt to copy text onto the clipboard failed.
return
}
Clipboard=%Clipboard%
sleep, 200
Run chrome.exe "http://www.google.com/search?q=`%22%clipboard%`%22 musical artist"
sleep 200
return