Skip to content
Matyáš Levíček edited this page Aug 16, 2023 · 2 revisions

AHKv2 Macros for video editors working in Adobe Premiere

I plan on making a separate document for every major macro/script, but it might take a while. In the mean time, please DO post questions and issues. I'll try to respond and mitigate them ASAP.

Usage

There are two main folders for scripts:

  • scripts
  • lib

Scripts include files that can be run standalone, compiled to an executable/binary and called directly by other software. Therefore, these scripts can be referred to as Directly runnable and they can't be #includeded

The files in the lib folder are supposed to be used as any other software library. Just #include "lib/[FOLDER]/[FILENAME]" at the begining of other files and than you can use the code inside. Specifically, you can call the functions inside. I try to divide the code in the one-function-per-file fashion, but when some function is very much subject to use in another not by it self (eg. pr_effectsType() is defined in pr_presets.ahk)

To run ANY of the included scripts, you need to have AutoHotKey v2 installed. Preferably, don't install v1 at all.

Compiling scripts

When the AHK runtime is installed, you don't actually need to compile the scripts. But there are advantages to it.

  • Its easier to distribute .exe than .ahk
  • Users can't really break or tamper with .exe files
  • They may sometimes run faster (though I had opposite experience)
  • Some software will only call .exe (or .bat, .lnk etc.) files

To compile a script, you can right click any .ahk in File Explorer -> Compile Script GUI (first time use the GUI) Or run the AHK Dash from Start Menu and follow the buttons.

Clone this wiki locally