AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

look up a word at dictionary.com

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
kalle



Joined: 22 Mar 2004
Posts: 1

PostPosted: Mon Mar 22, 2004 6:58 pm    Post subject: look up a word at dictionary.com Reply with quote

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
 
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Mon Mar 22, 2004 7:57 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Beastmaster
Guest





PostPosted: Wed Mar 24, 2004 9:29 pm    Post subject: Reply with quote

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
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Wed Mar 24, 2004 9:40 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
Jon



Joined: 28 Apr 2004
Posts: 373

PostPosted: Wed Apr 28, 2004 8:10 pm    Post subject: Reply with quote

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

Back to top
View user's profile Send private message Send e-mail
saden
Guest





PostPosted: Wed Mar 12, 2008 9:53 am    Post subject: Reply with quote

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)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group