Is it possible to create a macro in Cubase that associates only one key with two commands?
Ex. Key “A” to show and hide the automation.
Some of the Key Commands are toggles between 2 states. I think if you search the KCs for “toggle” it will find them all so you can see what’s setup that way. It’s pretty hit & miss. But there is no way to setup a macro like that for an arbitrary function.
What specifically do you want to achieve?
Exactly what I gave as an example: A macro to use the A key to show and hide the automation of a track.
Unfortunately, these are two separate commands and it’s not possible to set this up via macro.
However, if someone was looking for an excuse to buy a Stream Deck you can set it up to toggle commands on button pushes.
Macros in Cubase are pretty limited because they don’t have any logical control structures that you’d need to use them to build scripts. For some stuff you can use the Logical Editors in conjunction with macros to mimic a true scripting language. But again hit & miss, with miss in the lead.
Tks, guys.
If you are on Windows you could use AutoHotKey to create a simple script that toggles between two commands for each key press. I’m assuming you can do the same with Keyboard Maestro on Mac.
exactly, same for Touch Portal where you can also create “if..then” buttons
@mlib You’ve been using AutoHotKeys for a while now, right? Did they ever cause any sort of trouble or interference with other apps? I am still hesitatant to integrate them although they would surely help to overcome some key command/macro/PLE shortcomings. The option to toggle between frequently used commands is just one example.
@raino A stream deck is indeed tempting, very hard to resist. Personally, I try to keep my outboard gear to an absolute minimum after I decided to abort my spaceship commando central approach a couple of years ago. Still, I catch myself arguing that such a tiny device wouldn’t hurt/count…
Nope. I haven’t experienced any issues with AHK.
Or Bome MIDI Translator Pro for both.
Thanks for the heads up.
I did a few test runs with AHK and got it working nicely after finding out about some Cubase specific requirements.
I would still love to see more options for key commands, PLE, macros in Cubase, though.
@assisfig2 If you want to toggle between two automation commands using AHK here’s the code. Lines preceded by semi colons are just info, you can as well delete them.
Reassign the Cubase key commands for show/hide to any spare keys you will most likely not touch (Alt + F3/F4 were just test keys here, same as Ctrl + Alt + J for the toggle command).
#requires Autohotkey 2.0
; toggling between Show/Hide All Automation assigned to F3 & F4 in Cubase by pressing Ctrl + Alt + J
;making sure your script has admin rights
if not A_IsAdmin
{
Run('*RunAs "' A_ScriptFullPath '"')
ExitApp()
}
ToggleState := false
; the designated toggle key in Cubase Ctrl (^) + Alt(!) + J
^!j::
{
global ToggleState
; making sure these commands are executed in Cubase
If WinActive("ahk_exe Cubase15.exe")
{
if (ToggleState = false)
{
SendEvent ("!{F3}")
Sleep 120
ToggleState := true
}
else
{
SendEvent "!{F4}"
Sleep 120
ToggleState := false
}
}
else
{
; if Cubase is not running just do with that key whatever it’s supposed to do outside of Cubase
Send("{^!J}")
}
}
Fair warning:
This is my very first go at AHK code so there’s probably a more elegant and quicker way to do it. Anyone familiar with AHK, please, feel free to improve this clumsy code of mine ![]()
If you want to open and close automation on selected tracks with a single command you could try to use the toggle selected track command under track folding. You can assign it to a key command or MIDI Remote device.