Dictionary

Share your favorite FastKeys commands
Post Reply
Octopuss
Posts: 1
Joined: Nov 27th, ’13, 17:49

Post by Octopuss » May 16th, ’13, 23:35

Hi, first of all, congratulations for your great work!

I have one question: I like Google search preset command very much. Do you think it would be possible to create a similar command which would search for a word definitions in a dictionary.reference.com? That would be great Thanks!

Oct
User avatar
Marko
Posts: 1018
Joined: Mar 2nd, ’13, 21:02

Post by Marko » May 17th, ’13, 14:08

Hi Octopuss,

Shortcut: Ctrl-D
Type: Command
Paste this code into the command field:

Code: Select all

SaveClip := ClipboardAll
Clipboard := ""
Send ^c
ClipWait 1
Word := RegExReplace(Clipboard, "[^\w\s]")
Clipboard := SaveClip
SaveClip := ""
Run, http://dictionary.reference.com/browse/%Word%?s=t  
Please let me know how it is working for you. If working correctly I will add this to the presets.
Thanks for a good idea!
thinman
Posts: 25
Joined: May 17th, ’13, 15:44

Post by thinman » Dec 12th, ’16, 07:35

this is EXCELLENT!!!

Thank you!
TokyoMike
Posts: 12
Joined: May 10th, ’18, 07:01

Post by TokyoMike » Nov 6th, ’18, 03:52

Hello

Could this be tweaked to work with Japanese text?

I would like to select text like 東京, click Control+D and then automatically feed the Google Translate site: https://translate.google.com/#auto/en/東京

With this, script I am getting https://translate.google.com/#auto/en/% ... 1%E4%BA%AC

Thanks for any help you can provide!
User avatar
Marko
Posts: 1018
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Nov 7th, ’18, 18:32

This works for me:

Code: Select all

SaveClip := ClipboardAll
Clipboard := ""
Send ^c
ClipWait 1
Word=%Clipboard%
Clipboard := SaveClip
SaveClip := ""
Sleep 500
Run, https://translate.google.com/#auto/en/%word%
TokyoMike
Posts: 12
Joined: May 10th, ’18, 07:01

Post by TokyoMike » Nov 8th, ’18, 04:31

Thanks! Works perfectly. What a time saver!
Post Reply