Of course, this is a "workaround" but it does - I think - what you've sought. Put this code in a button and set the hotkey of your choice. The hotkey is currently set to F10.
If checkbox is enabled, it will select the current item and move down one, ready to do it again.
If checkbox is NOT enabled, it will select the current item and move down one, ready to do it again.
In fact, this will conflict with the AHK script.
If I run my ahk script, 〈ctrl+alt+space〉 will trigger 〈alt+space〉 (pop-up menu in the title bar).
Therefore, having an internal switching command is better than the sendkey method.
The problem is :
the keys combination send by @sendkey will be first captured by the AHK script.
<ctrl+alt+space> : physically, these 3 keys are not strictly pressed simultaneously.
But if there is a internal command, for example, "Set CheckSelFiles=Toggle",
there will be no jamming keys issue since we do not need send virtual keys.
Please read the 1. You can create a User Command with that script code and use it the same as a internal one.
I still don't understand why you need to invoke Opus commands via hotkeys using AHK if you can do it from the app itself.
@bytim I just read through this thread and I'm impressed with how things turned out for you. You believed in yourself and stood for what you knew to be right lol.