naa… you don’t need Assembler for this…
just add this to your Autohotkey script and adjust the path for joplin:
;joplin 'new note'
#n::
IfWinExist Joplin
{
WinActivate, Joplin
}
Else run c:\_office_\joplin\joplinportable.exe
WinWaitActive, Joplin
Send, ^n
return