Skip to content

Install AHK Repo

Tomshi edited this page Mar 31, 2024 · 5 revisions

Instructions for Alex to update AHK Scripts

Prerequisites

> First Steps

Backup the following files somewhere;

  • ..\Support Files\KSA\Keyboard Shortcuts.ini
  • ..\Support Files\Streamdeck Files\options.ini
  • My Documents Folder \tomshi\settings.ini

> Installation

  • Delete old installation of my ahk repo (the Tomshi AHK folder)

  • Download the latest version of my scripts

  • Run the installation process

    • You do not need to reinstall the PremiereRemote addon that appears at the end of the installation process. That is already done (unless you've wiped your pc or something)
  • Open VSCode

  • If there are any folders open in the workspace (on the left) remove them by right clicking on the top most item in the dropdown tree and selecting Remove Folder from Workspace
    something like this

  • Drag the new ahk installation into VSCode (the Tomshi AHK folder) to allow for more easily following the below instructions

> Manually fixing things

As your setup contains a few changes, you need to do a couple of things to get it back to working properly;

Keyboard Shortcuts.ini (..\Support Files\KSA\Keyboard Shortcuts.ini)

Tip

You can rename the old file so it doesn't get too confusing having two of the same filename open in vscode. Maybe something simple like ksa_backup.ini will make it stand out more

  • Pull up the backed up version of Keyboard Shortcuts.ini and the new version in VSCode side by side. (by simply dragging them next to each other)
  • Check to see if anything has been changed/added (chances are if the amount of lines on the left is the same on both should be fine)

If they're the same;

  • Override the new version with the backed up version by copy pasting the old stuff over.

If they're different;

  • Copy over any new additions to your backed up version then override it by copy pasting the old stuff over.

Important

In your code specifically you use a different mouse button to me to drag the timeline. In the Keyboard Shortcuts.ini file ensure that DragKeywait equals XButton1 and NOT XButton2

options.ini (..\Support Files\Streamdeck Files\options.ini)

  • Similarly to KSA above, pull them up next to each other and check for any additions/removals
  • As this is a smaller file either copy over your old entries or follow similar steps to those listed above

settings.ini (My Documents Folder\tomshi\settings.ini)

  • While you can follow similar steps to above, I don't really recommend doing so, just take the few seconds to open up the settings GUI (using Win + F1 once you rerun your script) and adjust your settings.
    • Including correctly setting your Premiere & After Effects versions in the Editors menu. While I have code to set the version numbers automatically, the correct Year version still needs to be manually set for this code to work correctly.

Premiere_RightClick.ahk (..\lib\Classes\Editors\Premiere_RightClick.ahk)

I personally have an additional hotkey to move the playhead at any time that I have set to one of my side mouse buttons. In the past you have asked me to disable this. You can do so by;

  • Opening the file ..\lib\Classes\Editors\Premiere_RightClick.ahk
  • Searching for the line XButton1::rbuttonPrem().movePlayhead(false) and putting a ; at the beggining of the line
    • it should now read ;XButton1::rbuttonPrem().movePlayhead(false) and turn grey

If you instead wish to use this instead of disabling it, as you already have the drag timeline script on XButton1, you'll need to instead change the line to;

XButton2::rbuttonPrem().movePlayhead(false)

Final Steps

Rerun your alex ahk script, change any settings in the GUI window as mentioned above, and then everything should now be complete.

Clone this wiki locally