AutoHotkey Community

It is currently May 27th, 2012, 10:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: August 17th, 2004, 7:23 pm 
Offline

Joined: August 17th, 2004, 7:05 pm
Posts: 38
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 21 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group