Skip to content

Releases: Tomshiii/ahk

v2.2.5 - ControlGetClassNN

22 Dec 10:14
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

ControlGetClassNN

To expand on v2.2.4, now most premiere functions grab the classNN value of the desired panel (really just the effect controls panel for the most part) to then dynamically imagesearch without the need for defining coords. I originally wanted to use a method similar to this in v2.2.4 but went about it in a different way that posed more problems than it solved.

First we highlight a panel with a built in keyboard shortcut which are defined within Keyboard Shortcuts.ini

    ;We send it twice both to ensure it works because sometimes premiere is dumb
    ;AND so that if you have a panel maximised, it will still work
    SendInput(effectControls)
    SendInput(effectControls)

Then we grab the classNN value of the highlighted window, then grab the coordinates of the active class window

    effClassNN := ControlGetClassNN(ControlGetFocus("A"))
    ;gets the class name of the highlighted panel,
    ;then assigns it to "effClassNN"

    ControlGetPos(&efx, &efy, &width, &height, effClassNN) ;gets the x/y value for the panel
    ;and the width/height

Then imagesearches will look like this

    if ImageSearch(&x, &y, %&efx%, %&efy%, %&efx% + (%&width%/ECDivide), %&efy% + %&height%, ...)
    ;We divide the width value by 3 ([ECDivide] this value is set within KSA.ini) so that
    ;the image search isn't trying to search 2000+ pixels every row as doing so caused all scripts
    ;to be like 2x-3x as slow

Changes

> MS_functions

  • audioDrag() now uses a bin folder as a separate project window to search for and then drag onto the timeline instead of the media browser
    • Old version is left underneath as it was technically slightly more performant, just not as practically useful with my workspace
  • preset() and audioDrag() now use a loop to check when premiere finds the findbox to stop it from trying to delete your presets and to stop it from sometimes missing a drag as the findbox hadn't been populated yet because premiere is slow
  • fixed incorrect images linked in psSave()
  • fixed the reply specific code in disc() to stop it from failing to find the "@ON" button

> My Scripts

  • [RAlt & P] macro now sets up a project bin with all my sfx so the new audioDrag() can function
  • Added macro to focus clip at playhead then scale to fit window
  • New [preset()] variation added
  • Changed the hotkey to suspend the script for one handed use
  • Returned the v2.2.3.1 code for my F14 macro to enter the "show more options" menu in win11 with some changes to make it actually function the way I originally wanted it to

> Other Changes

  • Fixed a typo in readme
  • Changed up PC Startup.ahk
    • Added PC Startup2.ahk for extra stuff
    • Moved them to their own folder for less clutter
  • New Premiere.ahk now also creates video and audio folders
  • Updated all backups

v2.2.4 - ImageSearch Coordinates within KSA.ini

08 Dec 02:40
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Coordinates within KSA.ini

All Premiere and Resolve ImageSearches now define their coordinates within KSA.ini to allow for easy adjustment. This allows anyone picking up these scripts for the first time to get them working faster than ever. These new values can be found towards the bottom of both files, defined in their own sections.

Should be noted this release isn't a complete overhaul, replacing only premiere and resolve as of release. Photoshop, After Effects, VSCode, etc, still define their coordinates within MS_functions.ahk.

Changes

> MS_functions

> Other Tweaks

v2.2.3.1 - Hotfix

19 Nov 11:57
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Changes

> MS_functions

  • valuehold() now waits for you to let go of your hotkey if it can't find the property you're looking for. This stops the function from spam activating upon failure causing system slowdown and hangs
  • switchtoExplorer() and switchtoExcel() fixed so that you can still cycle between windows that weren't opened with the hotkey
  • audioDrag() will return the mouse to its original position if it fails to find what it's looking for
  • changed fireWin() -> moveWin() to allow functionality on any window for any* program
    • added some extra code to my F14 win explorer script to allow this functionality to also work in win explorer without breaking that script
    • now uses KSA.ahk/ini values instead of hard coded values
    • moved position in the script so they don't try to activate within Premiere as they would stop [right click premiere.ahk] from working

> Other Tweaks

v2.2.3 - Dynamic Comments + ahk v2.0beta.3

12 Nov 11:04
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Comments

All comments within MS_functions.ahk have been adjusted and rearranged above each function so that VSCode can dynamically take that information and display it on a hover.

For example, the below function will then be displayed as shown when hovered over anywhere in any script it's included in

image image

These Dynamic Comments will also extent to all* Keyboard Shortcut Adjustments values.

image
*Label colours within premiere have not been added

All Changes

> My Scripts

> MS_functions

  • Adjust all function comments to allow VSCode to provide details in their informational popups
  • preset() no longer accidentally deletes clips on the timeline
  • Added switchtoEdge()
  • Added fireWin() to move around a window while holding it as window snapping in win11 with multiple displays can be a little awkward (especially if you have stacked displays)
  • Added firefoxTap() to use all of my firefox functions on one button instead of multiple combinations
  • All necessary switchto() functions now wait for the program to open before then activating them as win11 opens them in the background
  • Fixed the #Include so it's no longer a full filepath

> Keyboard Shortcut Adjustments

  • All values now have comments that explain what the value is so it can be referrenced anywhere within VSCode

> Other Tweaks

v2.2.2.1 - Hotfix

05 Nov 13:18
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Changes

> MS Functions

> My Scripts

  • Added ability to quickly open the "show more options" menu in win11
    • not totally flawless at the moment, but passable currently

> Other Tweaks

v2.2.2 - Win11 + Premiere 2022 Compatibility

28 Oct 11:23
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Changes

> MS_Functions

  • Added psType() (to move code from the main script) and allow you to save as any file type. (png and jpg currently supported)
  • Text variation in the preset() function needed an additional sleep as ahk was moving too fast for premiere

> My Scripts

  • Removed the mouse macros to move windows around as I never used them because they were too awkward to manipulate with my fingers

> Other Tweaks

  • Fixed the link to the keyboard shortcuts.ini file in the readme as it linked to nothing
  • Updated the [qss_firefox " ".ahk] scripts to be compatible with windows 11
    • The older win10 files are backed up within the win10 folder of imagesearch
  • Start Main Stream script updated to include new window locations for windows 11
  • Added powerpoints.ahk to let me move through speedrun route documents easily
  • Updated some code for Premiere 2022
  • Updated some comments in My Scripts.ahk to better reflect some code
  • Removed qmk[.png/psd] from \Support Files as I wasn't really keeping it updated
  • Updated all backups

v2.2.1 - else if {

17 Oct 14:01
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

else if {

This update is to swap from nested imagesearch(es)/pixelsearch(es) to consecutive uses of else if instead. This makes everything far more readable as well as being easier to manage.

Previous;

If ImageSearch(&xn, &yn, 2148, 116, 2562, 169, "*5 " EnvGet("Resolve") "audio2.png")
    goto rest
else
    {
        If ImageSearch(&xn, &yn, 2148, 116, 2562, 169, "*5 " EnvGet("Resolve") "audio.png")
            MouseMove(%&xn%, %&yn%)
        else
            {
                blockOff()
                return
            }
    }
rest:

Now becomes;

if ImageSearch(&xn, &yn, 2148, 116, 2562, 169, "*5 " EnvGet("Resolve") "audio2.png")
    goto rest
else if ImageSearch(&xn, &yn, 2148, 116, 2562, 169, "*5 " EnvGet("Resolve") "audio.png")
    MouseMove(%&xn%, %&yn%)
else
    {
        blockOff()
        return
    }
rest:

While the above isn't too bad to look at either way, consider comparing this old code to this new code

Other Changes

> MS_functions

  • Added keyframe() to quickly turn on keyframe animation/add a new keyframe for a given property in premiere
    • Added keyreset() to quickly turn off keyframe animations for a given property
  • Added noclips() to cut out some repeat code across multiple other functions
  • valuehold() now does a second PixelSearch (if the first fails) with a slightly different colour as on rare occassions a longer string of numbers can cause the first attempt to fail.
  • youMouse() now reactivates the previous active window after skipping in youtube
  • Added monitorWarp() to cut repeat code in main script
  • Cut repeat code in vscode()

> Further Tweaks

  • All hotkeys that need their activation hotkeys defined in Keyboard Shortcuts.ini now have comments mentioning that they need to be defined in said file
  • Updated the newProj.png file as adobe changed the way the button looks :)
  • Some minor adjustments to my Stream related scripts
  • Minor adjustments to a few streamdeck ahk scripts

v2.2.0.2 - Small feature update + Hotfix

08 Oct 13:18
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Changes

> My Scripts

> MS_Functions

> Other Tweaks

  • New Premiere.ahk now opens your selected directory after completing the new project creation
  • Some path corrections in Streaming.ahk
  • Added Extra information in [Keyboard Shortcuts.ini] to show what each setting is called within Premiere/After Effects
  • Fixed the selection tool hotkey for After Effects being incorrect in the [Keyboard Shortcuts.ini] file
  • Added [\Changelogs] to keep all changelogs documented without me needing to keep everything in one giant hidden file. (it freaks out with scrolling all the time between the different releases and is incredibly annoying)

v2.2.0.1 - Hotfix

06 Oct 02:58
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

This release is to fix a few bugs and tidy up a few macros after Release v2.2

Changes

> My Scripts

> MS_Functions

v2.2 - Keyboard Shortcut Adjustments

05 Oct 12:05
Compare
Choose a tag to compare
Please note: in this changelog I will be linking to commits, these commits might not be the latest version of said code as things are changing all the time and adding dates would get incredibly confusing, don't copy/paste from these linked commits, check out the current version of the code in the script files themselves.

Keyboard Shortcut Adjustments

This release brings quick and easy support to adjust keyboard shortcuts within scripts without needing to dig into the code of each individual function or macro. With the addition of [Keyboard Shortcuts.ini] you are able to quickly go in and adjust any keyboard shortcut and have it instantly reflect within any scripts that use it.

Alongside this .ini file is the companion [Keyboard Shortcut Adjustments.ahk] file which is where we create the values we then later call from within scripts.

So first we define the hotkey within the Keyboard Shortcuts.ini file

[Premiere]
Effect Controls="^+4"
;[effectControls] (easy searching within Keyboard Shortcut Adjustments.ahk)

Then within the Keyboard Shortcut Adjustments.ahk file you'll see;

effectControls := IniRead("C:\Program Files\ahk\ahk\KSA\Keyboard Shortcuts.ini", "Premiere", "Effect Controls")

which we can then call in other scripts like;

#Include "C:\Program Files\ahk\ahk\KSA\Keyboard Shortcut Adjustments.ahk"
hotkey::
{
    SendInput(effectControls)
}

If you were to then go in and adjust the "Effect Controls" value in the ini file to say "^+3" that would automatically follow through to any scripts that call "effectControls"

Other Changes

> My Scripts

> MS_functions

> Further Tweaks

  • Made [Move Project.ahk] check for the capitilisation of the proxies folder just incase I create it myself
  • Added New Premiere.ahk to automatically go through the new project process
    • new streamdeck image/backup
  • Added some logic to my streaming script that will stop it running my automatic mii wii channel points redemption if the full stong is currently playing. It's nothing crazy or incredibly funcitonal, but just bare bones enough to be useful
  • Moved "mouse settings.png", "qmk.psd" & "scripts f keys taken.xlsx" to [\Support] Files to declutter a bit
    • Removed "scripts f keys taken.xlsx" this excel sheet was originally created to track what F1-24 keys I have in use, the rest of its functionality was tacked on as this repo got bigger and bigger. I'm at the point now where it's too hard to keep track of all the macros I create and listing them in a spreadsheet isn't the most efficient way of visualising it.
  • Added After Effects keyboard shortcuts to [\Backups]
  • Cleaned up syntaxing in MS_functions.ahk and My Scripts.ahk