Cedeq Community Forum
Keyboard Shortcut - Find the conjugation table for a selected verb - Printable Version

+- Cedeq Community Forum (https://cedeq.com/forums)
+-- Forum: General (https://cedeq.com/forums/forumdisplay.php?fid=1)
+--- Forum: Keyboard shortcuts with AutoHotkey code (https://cedeq.com/forums/forumdisplay.php?fid=4)
+--- Thread: Keyboard Shortcut - Find the conjugation table for a selected verb (/showthread.php?tid=521)



Keyboard Shortcut - Find the conjugation table for a selected verb - pilot888 - 10-31-2019

When I need to write a proposal to a customer, an email to my teammates, etc, I often need to validate if I use the proper spelling for several verbs as they don't often come easily in my head. Typically, after selecting the text (from anywhere), you have to copy it (to the clipboard), start your browser, go to a verb conjugation website, paste it (from the clipboard) in the query field, and then click a button to find the proper spelling. 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 verb conjugation website. For this example, I used I ''http://conjugueur.reverso.net/conjugaison-anglais-verbe-" but you can use any other verb conjugation website.

Basically, I select the verb to find the associated conjugation table, then I activate the shortcut from Shortkeeper. Immediately after, the verb conjugation website opens up in my internet browser and instantly shows me the conjugation table of that verb. Also, if the copying to the clipboard fails, an error will pop up. 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 % "http://conjugueur.reverso.net/conjugaison-anglais.html"
}
else
{
  TextSelected := Trim(Clipboard)
  Run % "http://conjugueur.reverso.net/conjugaison-anglais-verbe-" . TextSelected  . ".html"
}
Clipboard := ClipSaved

Enjoy!


RE: Keyboard Shortcut - Find the verb conjugation table from selected verb - denilama - 11-01-2019

Thanks for sharing. The script works very well.

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