thinkstorm
Joined: 17 Aug 2004 Posts: 18
|
Posted: Tue Aug 17, 2004 7:23 pm Post subject: Lookup The Definition For Clipboard Content In Google |
|
|
copy a word / acronym into the clipboard and query Google ('define:abc') with Control-Windows-G
TC
| Code: |
#^g::
googleLinkStart = C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=define:
AutoTrim, On
searchTerm = %clipboard%
if searchTerm =
{
MsgBox, 48, Search Google Definition, No text in clipboard to define., 2
return
}
StringReplace, searchTerm, searchTerm, `r`n, +, all
StringReplace, searchTerm, searchTerm, %A_SPACE%, +, all
searchTerm = %googleLinkStart%%searchTerm%
Run, %searchTerm%
Return
|
|
|