Cedeq Community Forum
Keyboard Shortcut - Find synonyms from a selected word - Printable Version

+- Cedeq Community Forum (https://forum.cedeq.com)
+-- Forum: General (https://forum.cedeq.com/forumdisplay.php?fid=1)
+--- Forum: Keyboard shortcuts with AutoHotkey code (https://forum.cedeq.com/forumdisplay.php?fid=4)
+--- Thread: Keyboard Shortcut - Find synonyms from a selected word (/showthread.php?tid=520)



Keyboard Shortcut - Find synonyms from a selected word - pilot888 - 10-31-2019

When I need to write a proposal to a customer, an email to my teammates, etc, the perfect words don't often come easily in my head. For me, it can mean that I've communicated properly my proposal to the customer, earn his trust and receive a purchase order. Typically, after selecting the text (from anywhere), you have to copy it (to the clipboard), start your browser, go to a synonym website, paste it (from the clipboard) in the query field, and then click a button to find a synonym. This whole process can be very long and repetitive.

To solve this, I developed a quick AutoHotkey script to process the finding rapidly into a synonym website. For this example, I used I ''https://synonyms.reverso.net/synonyme/'' but you can use any other synonym website. 

Basically, I select the word that I want to find a synonym, then I activate the shortcut from Shortkeeper. Immediately after, the synonym website opens up in my internet browser and instantly shows me several synonyms of the selected word. Here's the AutoHotkey script to be used in Shortkeeper:

ClipSaved := ClipboardAll
Clipboard =
SendInput, ^c
ClipWait, 2
if ErrorLevel
{
 ;MsgBox % "Failed attempt to copy text to clipboard."
  Run % "https://synonyms.reverso.net/synonyme/en/"
}
else
{
  TextSelected := Trim(Clipboard)
  Run % "https://synonyms.reverso.net/synonyme/en/" . TextSelected
}
Clipboard := ClipSaved

Enjoy!


RE: Keyboard Shortcut - Find a synonyms from selected word - denilama - 11-01-2019

Thanks for sharing. The script works very well.

This short tutorial "https://forum.cedeq.com/showthread.php?tid=29" will help someone needing help to create a keyboard shortcut with ShortKeeper using AutoHotkey code.