![]() |
Keyboard Shortcut - Launch Google Translate for Selected Text - 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 - Launch Google Translate for Selected Text (/showthread.php?tid=517) |
Keyboard Shortcut - Launch Google Translate for Selected Text - pilot888 - 10-17-2019 Often at my work, I need to translate documents received from international customers when English is not used. Typically, after selecting the text (from anywhere), you have to copy it (to the clipboard), start your browser, go to Google Translate, paste it (from the clipboard) in the query field, and then click a button to translate. This whole process can be very long and repetitive. To solve this, I developed a quick AutoHotkey script to process the translation into Google Translate. I select the non-English text, then I activate the shortcut from Shortkeeper. Immediately after, Google Translate opens up in my internet browser and instantly shows me the English version of the text. Here's the AutoHotkey script to be used in Shortkeeper: ClipSaved := ClipboardAll Note that you can change the input and output language, to whatever language Google Translate supports, by changing the ''en'' and ''fr'' in the URL address to your preferred language code. In this example, I translate from English to French. This shortcut is by far a game changer and ultimately saves me lots of precious time at work. Hope you enjoy it as much as I do! RE: Keyboard Shortcut - Launch a Google Translate for Selected Text - denilama - 10-18-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. RE: Keyboard Shortcut - Launch Google Translate for Selected Text - douh - 05-16-2020 Thanks for sharing .. but this script missed to hot key to work for me i used "" ^t::"" that mean when i press (CTRL+ T) in same time . a translate page open in browser RE: Keyboard Shortcut - Launch Google Translate for Selected Text - pilot888 - 07-27-2020 douh Wrote:Thanks for sharing .. but this script missed to hot key to work There is no need to add anything in the code as it already opens in the browser and shows the translated text. RE: Keyboard Shortcut - Launch Google Translate for Selected Text - Sooqa - 08-06-2020 Thanks for the information Guyz !!!! RE: Keyboard Shortcut - Launch Google Translate for Selected Text - rsikes18 - 04-17-2022 Thanks for this.. I wonder if it will work if I change the link to bing, I feel it is a bit more accurate in translating. credit repair wilmington RE: Keyboard Shortcut - Launch Google Translate for Selected Text - pilot888 - 04-18-2022 (04-17-2022, 09:17 AM)rsikes18 Wrote: Thanks for this.. I wonder if it will work if I change the link to bing, I feel it is a bit more accurate in translating. Bing's URL doesn't seem to take into consideration the input and output language like Google Translate does. You will need to modify the code a little bit for it to work with Bing. |