Releases: Tomshiii/ahk
v2.2.5 - ControlGetClassNN
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
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
- preset() now deletes the text it had pasted into the findbox
- it also waits for a key to be let go before activating
- it also checks for the delete item window to stop itself from deleting your preset
- audioDrag() also now deletes the text it had pasted into the findbox
- restored proper right click funtionality to moveWin() as right click dragging was impossible previously
- mouse coords for movepreview() have been moved into KSA.ini
> Other Tweaks
- Simplified mouse macro to initilise the "show more options" box in explorer. Wasn't working the way I initially wanted and was causing more problems
- Added the ability to suspend the main script with a hotkey.
- Fixed a small mistake within the Resolve_Example.ahk
- Update readme
v2.2.3.1 - Hotfix
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
- Added enable/disable OBS Preview.ahk as obs is run as admin so simple hotkeys can be messy sometimes
- updated streamdeck backup
- Fixed [Move project.ahk]
- Updated a few of the Stream related scripts for my own use
v2.2.3 - Dynamic Comments + ahk v2.0beta.3
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
These Dynamic Comments will also extent to all* Keyboard Shortcut Adjustments values.
*Label colours within premiere have not been added
All Changes
- All Scripts now require ahkv2.0beta.3 for confirmed compatibility
> My Scripts
- Add a macro to open task manager since microsoft removed it from the taskbar
> 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
- Fixed up switchToOtherFirefoxWindow() as technically most of the code wasn't actually doing anything
- 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
- increased the speed of the qss_...ahk scripts
- quick sound settings.ahk no longer tries to activate settings before it's had time to open
- Added more delay to New Premiere.ahk
- Updated readme
v2.2.2.1 - Hotfix
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
- Fixed autolaunch of Adobe products
- It appears the latest version doesn't get installed to system path so I added shortcuts to forever fix this issue. If you install Adobe products in non standard locations, these will need to be replaced
- Fixed switchToExplorer() as explorer won't always activate once run in win11
- Fixed open another explorer window for win11
> 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
- Updated the newProj.png as adobe changed it again
- Updated the sfx.png screenshots
- All scripts that previously checked for a specific version of premiere will now work with any version of premiere and will no longer break anytime adobe updates
- Added SD_functions.ahk to function the same was MS_functions.ahk does for the main scripts but instead for the streamdeck files
- Fixed tiktok premiere.ahk to work with Premiere 2022 + now always changes to a 1080p sequence
- Updated the [New Premiere.ahk/Move project.ahk] files to both create some folders to render files into & delete the draft folder on move to save space
v2.2.2 - Win11 + Premiere 2022 Compatibility
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
- Other general readme cleanup
- 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 {
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
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
- Moved the "!t" preset hotkey code to the preset() function in MS_Functions
- Fixed some key reassignments
- Reload script now reloads right click premiere.ahk
> MS_Functions
- Created wheelEditPoint() to remove repeat code from My Scripts
- valuehold()
- now checks for no clips being selected
- can now adjust audio levels
- aevaluehold() now checks to ensure the selection tool is disabled
- Made it so all
if A_ThisHotkey = "hotkey"
code refers to hotkeys set in Keyboard Shortcuts.ini to keep everything in one place
> 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
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
- If the media play/pause macro can't find a youtube window it will simply send a normal play/pause input
- Added my changelog file to the vscode() hotkeys
> MS_Functions
- Fixed REffect() - it didn't need the search bar to be open before use, I just had it click twice for both imagesearch(es). oops
- Added youMouse() to cut repeat code in My Scripts.ahk
v2.2 - Keyboard Shortcut Adjustments
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
- Added mouse macros to skip around in the youtube player
- Added a macro to play/pause a youtube video if your active window is firefox
- [Pull out project window] macro now highlights/activates the project window first to ensure it's available
- Added some mouse wheel macros to after effects to jump between keyframes
- Moved the reload macro to the main #HotIf and adjusted its activation hotkey so it can be used anywhere
- It now also reloads my textreplace.ahk script (not in this repo)
- Added a GroupAdd to lump Premiere & After effects into a certain #HotIf. Listing them both with an "or" wasn't working for whatever reason
- Removed repeat code from pull out project window macro
- Removed the old, unconverted code that use to sit at the bottom of the script. No need to keep it around anymore
> MS_functions
- Improved the functionality of psSave(), as well as changing the "pick a destination folder" to an actual windows pick folder dialogue box
- Added aevaluehold() to bring similar valuehold() functionality to after effects
- Cleaned up valuehold() code to cut repeat code
- Added opacity to valuehold()
- valuehold() also now checks if your chosen property is already selected as this would then break the script
- valuehold() now focuses the timeline and selects the clip at playhead just incase
- valuehold() now presses Enter before warping the mouse back to orign. This is so that on the odd occassion when I hold one of the buttons but don't move my mouse, it doesn't just click on the hovered field and leave it selected and highlighted
- Removed tikproject() and moved it to a Streamdeck AHK file
- Changed manScale -> manInput to allow for any property to be adjusted using this function
- Added the ability to backspace by pressing the NumpadDot
- Made it also check for the property being "selected" similar to valuehold() above
- Removed some unnecessary variables from some of the Resolve functions
- disc() now imagesearch(es) around the mouse coords instead of the entire window.
- The code that checks for the @ reply ping now only imagesearch(es) when you press your "reply" macro and not for any other button
- Also searches the entire screen for the @ reply ping. These make it more functional as it will work regardless of window size or destop resolution
- Fixed a few mistakes with rvalhold()
- Added rgain() to bring similar function as my premiere gain macros to Resolve. They're not quite as fast as resolve makes things difficult, but still quite useful
- Moved most of the functions from the "QMK" section to the premiere section since separating them just didn't really make any sense
- Rscale() now uses imagesearch instead of raw pixel values
> 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
- Added Streaming.ini to make this work
- Moved both Streaming.ahk/ini to [\Stream] just to declutter a little
- 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