Best way to quick capture a note?

In Tana you can invoke it from outside the app using this Autohotkey script https://www.autohotkey.com/ .

;~ Launches Tana and activates quick add

^!v:: ; This is the hotkey: Ctrl (^) + Alt (!) + V (v)
Run, “C:\Users\david\AppData\Local\tana\Tana.exe” ; Path to your Tana application
WinWait, ahk_exe Tana.exe ; Wait for Tana to be active
IfWinNotActive, ahk_exe Tana.exe, , WinActivate, ahk_exe Tana.exe
WinWaitActive, ahk_exe Tana.exe
Send, ^e ; This sends Ctrl+E
Return

I wonder if we could adapt this Script for Logseq. I am not a dev.