SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
Press Alt+G after selecting the text
;Google lookup!g::OldClipboard:= ClipboardClipboard:= ""Send, ^c ;copies selected textClipWaitRun http://www.google.com/search?q=%Clipboard%Sleep 200Clipboard:= OldClipboardReturn
Edit: Part of the script had been converted to a link and was not showing properly. I've now edited this.
Hi guys,
This doesn't work for me either now I test it, but there is a script here in the AHK site that does work:
;------------------------------------------------------------------------------;Google lookup;------------------------------------------------------------------------------^!g:: prevClipboard := ClipboardAll SendInput, ^c ClipWait, 1 if !(ErrorLevel) { Clipboard := RegExReplace(RegExReplace(Clipboard, "\r?\n"," "), "(^\s+|\s+$)") If SubStr(ClipBoard,1,7)="http://" Run, % Clipboard else Run, % "www.google.com/search Clipboard } Clipboard := prevClipboardreturn
To make it work I have to press Ctrl+c to copy the text selected to my clipboard and then press Ctrl+Alt+g.
Hi Ivan,
Ivan: Nora's shortcut is ALT+F, not ALT+G.
Also, in my machine I needed to wait 4 seconds before pasting the text to make work. This works for me:
[…]
Run www.freetranslation.com/search
Sleep 4000
… Jesús Prieto …
Paul Filkin said:But perhaps also note that the weblook up tool on the appstore can do this already so if you wanted to have this ability to look things up in websites and have the result in Studio then it might be better for your purposes? multifarious.filkin.com/.../ There is also another app on the appstore that can use the results as autosuggest so this might be even more useful! appstore.sdl.com/.../
This is absolutely true and I was thinking about it yesterday, although I've stopped using Web Lookup because things were just too crowded with the new 2017 features and opening Web Lookup results on a second monitor always seemed awkward. With this script I can have the search run on a second monitor without interfering with Studio. Maybe that would be a variation or option that we could suggest for the Web Lookup app: the ability to run outside of Studio. But wait... I think that's what IntelliWebSearch does already. : )
Anyway, it's nice to have as many tools as possible at our disposal!
Pengfei Niu said:Hi Nora, I'm very interested this script. I frequently use google to search words during translation. I never used AHK before. It seems very powerful. I just tried this script. When I press Alt+G, only the google search window pops up. The selected texts are not pasted into the search box. Would you please kindly advise what to do at your convenience? Thanks, Regards, Ivan
Paul has posted an alternative script but just to follow up, I think I see why it's not working for you (and for Paul). When I pasted the script on this forum, part of it got converted into a link, which is not what you need. This is my actual script:
As you can see, the part of the variable, called %Clipboard%, where the contents of the clipboard are pasted into the search field, was not showing in the original post.
Hope it works for you now!
Best,
Jesus Prieto said: Hi Ivan, Ivan: Nora's shortcut is ALT+F, not ALT+G. Also, in my machine I needed to wait 4 seconds before pasting the text to make work. This works for me: […] Run www.freetranslation.com/search Sleep 4000 […] … Jesús Prieto …
Yes, Alt+F for freetranslation.com and Alt+G for Google. And I also find that increasing the wait times usually solves many of my problems in AHK. : )
Pengfei Niu said:Hi Nora, Just wondering if you use https://data-app.taus.net/ to search words. Is it possible to create a script for this one? Thanks. Regards, Ivan
Try this (as usual, you may need to adjust the delays).
Hotkey: Windows key + T (select text before pressing the hotkey)
;TAUS lookup#t::temp := ClipboardAllSend, ^c ;copies selected textRun https://data-app.taus.net/Sleep 1000Send {Enter}Sleep 1000Send {Tab 8}Sleep 200Send ^vSleep 1000Send {Enter}clipboard := temptemp =Return
Hope it works for you!