Introduction

What is AutoHotkey?

In a nutshell AutoHotkey is a tool for automating things that you would otherwise do manually in windows applications.  The website is here:

https://autohotkey.com/

So for example, you might want to be able to automatically copy selected text directly to the target segment in Studio.  This is not possible out of the box, but with a small script like this it becomes possible just by selecting the text and then pressing Ctrl+Alt+x:

;------------------------------------------------------------------------------
; Copy selected text to the target segment.
;------------------------------------------------------------------------------
^!x::
Send ^c!+{F6}^v
Return

It may look a little tricky at first, but you can do some pretty powerful things with the most basic of knowledge once you get to grips with it.  I use it a lot to compensate for the lack of an international keyboard, so I have a script like this (only much longer!) which adds the accents on letters in the words below without me having to do anything at all.  I just type "Asbjorn" for example and I get "Asbjørn"... very useful for me as I like to get peoples names right!

;-------------------------------------------------------------------------------
; Personal names
;-------------------------------------------------------------------------------
::Alvaro::Álvaro
::Alzbeta::Alžbeta
::Andras::András
::Andraz::Andraž
::Angele::Angèle
::Anne-Cecile::Anne-Cécile
::Asbjorn::Asbjørn
::Aysan::Ayşan

But it's not just for Studio, there is an article here which shows you a way to get the Word autocorrect for any application running on your computer via AutoHotkey:

https://multifarious.filkin.com/2013/05/31/autocorrect-for-everything/

So, if you're looking for a script to do something in particular, or would just like to share your own masterpiece then please share it in here.  I'm sure there are plenty of existing AutoHotkey users who would welcome your input.  And if you haven't used it before please feel free to ask any questions at all, anything you ask will help someone else when we find out the answer, and there are no silly questions!  Many of the questions might come from me as I'm a very basic user indeed!!

You might also find this link to the AutoHotkey documentation helpful as it explains what all the curious symbols in these scripts means and will probably make things appear a lot easier!!

https://autohotkey.com/docs/Hotkeys.htm

Regards

Paul

3 Replies Latest Replies: 1 Jul 2017 5:40 PM by Michel Marques

3 Replies

  • This was a great idea. Thank you for that.
  • Very good initiative, Paul!

     I have been using AutoHotkey for more than 10 years now and was able to achieve amazing things thanks to the Trados 2007 APIs (e.g. translating only select cells directly in an Excel spreadsheet while getting results from the Workbench). If only at least part of the Studio APIs where accessible by AutoHotkey too...! #WishfulThinking 

    I will gladly help troubleshooting or optimizing scripts by other users or try to suggest solutions for people getting started with AutoHotkey, so don't hesitate to tag me!

    Directly a small tip when posting scripts:

    Select the entire source code of your script and then under "Format", select "Formats"→"Inline"→"Code". This will use a monospace font making it more readable.

  • In reply to Raphaël Toussaint:

    Thanks , you can be sure we will! Thank you!

Related