AutoHotkey Community

It is currently May 26th, 2012, 6:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: March 22nd, 2004, 6:58 pm 
Offline

Joined: March 22nd, 2004, 6:53 pm
Posts: 1
I use this script to look up the selected word at www.dictionary.com with mozilla.
Code:
; Loop up selected word at www.dictionary.com
#d::
    tmp = %clipboard%
    Send, ^c
    word = %clipboard%
    clipboard = %tmp%
    Run "C:\Program Files\mozilla.org\Mozilla\mozilla" dictionary.reference.com/search?q=%word%
return
 


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 22nd, 2004, 7:57 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Very nice. I use almost the exact same thing, and its fast too. Here's my version (this one launches the default browser):

Run, http://www.dictionary.com/search?q=%clipboard%&db=*, , max

It's great for when you're typing somewhere (like here) where there's no spell-checker. Thanks for sharing that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2004, 9:29 pm 
So that's the same for LEO (Link Everything Online)
an English-German-English dictionary (with 398357 entries (24/03/04))

Quote:
Run, http://dict.leo.org/?search=%CLIPBOARD%&searchLoc=-1&relink=on&spellToler=std&sectHdr=on&tableBorder=1&cmpType=relaxed&lang=en,, Max


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 24th, 2004, 9:40 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Sweet. I think I'm going to use kalle's idea for both of these dictionaries since it automatically looks up the selected word and restores the prior contents of the clipboard afterward.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2004, 8:10 pm 
Offline

Joined: April 28th, 2004, 1:12 pm
Posts: 349
Thanks for that, It can also be used to search a word in google

Code:

^g::
    Send, ^c
    word = %clipboard%

Run "%ProgramFiles%\Internet Explorer\IEXPLORE.EXE" http://www.google.co.uk/search?q=%word%&ie=UTF-8&oe=UTF-8&hl=en&meta=, , max

EXIT



Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 12th, 2008, 9:53 am 
You could place the following line before calling/running your browser in the script :

Code:
    StringReplace, word, word, %A_Space% ,`%20, All


to allow to do searches with multiple words (it adds %20 to spaces)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], mrhobbeys, nothing, siterip, Stigg and 10 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