I created a script with
Autohotkey.
Here it worked, but for this you have to make the following initial settings:
- In Preferences -> Keyboard Shortcuts -> Global Bindings, bind the key F11 to "Go to From" and key F12 to "Go to Thru". Also Alt+F11 to "Edit | Select | From = Now" and Alt+F12 to "Edit | Select | Thru = Now".
- Still in preferences, make sure that Alt+B is not associated with any function (Alt+B will be the shortcut key that will be used to make the Trim).
- Have Autohotkey installed and working. Enter the code below into a script file (.ahk):
SetTitleMatchMode RegEx
#IfWinActive, ahk_exe i)SONAR.*exe
!b:: ; **** Alt+B = Trim Selected Clip
Send {F11}m@a{Enter}{F12}m@b{Enter}!+{F6}!{F11}{Del}^{Pgup}!{F6}!{F12}{Del}!+4{Down}{Up}{Del}{Down}{Del}^{F4}^+a
Return
(The only issue I've seen so far:
you should not have any marker within your selection. You can even have markers before or after the selection, but never inside).