DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Example of using FARR to help you easily translate words  (Read 7,324 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Someone asked me about how FARR could be used to quickly translate words that you might encounter while reading text in any app.
Here's a two step example:

1. Create an alias in FARR to open google translate on the specified text.  Here I've created a new alias in my MyAliases group, that triggers on "tr [word_or_phrase]":
Screenshot - 3_5_2020 , 12_30_45 PM.png

With that you can bring up farr at any time and type something like: tr computer and hit enter, to open google translate showing the translation.
You can add more actions in that alias to allow you to do other things like look up the definition of the word, etc.

2. Now to make it easier to use, create a custom FARR hotkey that when triggered will copy the highlighted text in whatever app you are using and launch FARR with the tr keyword specified, ready to trigger:
Screenshot - 3_5_2020 , 12_33_30 PM.png

Now you can just select the text in any app and hit the hotkey.

Note that if you knew you only wanted one action ever on that hotkey you could save yourself from having to hit enter by adding a \n at the end of the "Text for Search Edit Box".



You might also try $$u1 instead of $$1 if you need the text urlencoded for a web page.
« Last Edit: March 08, 2020, 02:58 AM by mouser »

SaschaM

  • Participant
  • Joined in 2007
  • *
  • Posts: 9
Re: Example of using FARR to help you easily translate words
« Reply #1 on: August 27, 2025, 03:09 PM »
I love it  :-*! Thank you for one of the best productivity tools I ever found  :Thmbsup: :D!

Original address: https://www.donationcoder.com/forum/index.php?topic=49637.0