AutoHotKey Freeze and Flatten Track shortcuts for Windows Users

Discuss music production with Ableton Live.
Post Reply
milkformycoconut
Posts: 8
Joined: Sun Jan 29, 2023 2:55 pm

AutoHotKey Freeze and Flatten Track shortcuts for Windows Users

Post by milkformycoconut » Sun Jan 29, 2023 7:56 pm

So i am not a coder or anything similar, far from it, but i menaged with help of chatgpt to figure out crude script in order to use Freeze and Flatten Track in Ableton Live on Windows with Autohotkey script This one is based on just single keyboard shortcut , but this version have some issues, mainly time between two commands, see below. For easier use you can split it into to keystrokes to avoid issues

Here is what you need to enter for single shortcut

#IfWinActive, ahk_exe Ableton Live 11 Suite.exe (change this one for version of Ableton you use)
^+f: (this is optional, you can choose any keyword shortcut, translated it's Ctrl+Shift+F)
Send {Alt down}
Send e
Loop 21
{Send {Down}}
Send {Enter}
Send {Alt up}
Sleep 1000 (this is also optional, 1000 milliseconds or 1 second can be changed manually, you can put any number you want, f.e. 10000 is 10 seconds. This part also presents a problem since larger files take more time, so second part of the script won't work properly if you don't enter enough time for second command to activate)
Send {Alt down}
Send e
Loop 22
{Send {Down}}
Send {Enter}
Send {Alt up}
return
#IfWinActive

Send alt up/down and just key commands moving up or down in the menu, loop 21/22 is 21st or 22nd keystrokes to press Freeze/Flatten Track key commands positioned in menu.

Second version with 2 shortcuts

#IfWinActive, ahk_exe Ableton Live 11 Suite.exe (change this one for version of Ableton you use)
^+f::

Send {Alt down}
Send e
Loop 21
{Send {Down}}
Send {Enter}
Send {Alt up}
return

^+d::
Send {Alt down}
Send e
Loop 22
{Send {Down}}
Send {Enter}
Send {Alt up}
return
#IfWinActive

For this one i just removed time command in between two commands and separated them into two keyboard shortcuts

Here are few more i use, maybe they can work for someone as well

#IfWinActive, ahk_exe Ableton Live 11 Suite.exe
^+RButton:: ; Toggle loop selection
Send, ^l
Return

^+z:: ; Redo
Send, ^Y
Return


^!RButton:: ; Toggle clip ON/OFF
Send, 0
Return

^Rbutton:: ; Delete whatever you click on using Ctrl + Right mouse button
Send, {Click}
Send, {Delete}
Return

^!z:: ; Redo
Send, ^y
Return

^x:: ; Split under Mouse
Send, ^e
Return
#IfWinActive

Hope this helps someone, cheers

braininmyknee
Posts: 5
Joined: Sat Nov 03, 2012 7:30 pm

Re: AutoHotKey Freeze and Flatten Track shortcuts for Windows Users

Post by braininmyknee » Sun Mar 10, 2024 11:23 am

nice

Post Reply