Can't make my script work ONLY in a specific window
Posted: Jun 5th, ’23, 23:51
I'm trying to make Fastkeys insert two Enter when I hit enter once and one Enter on Shift+Enter, only when typing in the Obsidian app. Unfortunately, it does it in all apps, regardless of the code I use. Here are two examples:
Here is a second one:
I've tried putting the name of the app in the window option, but that also doesn't work.
Please help.
Code: Select all
#IfWinActive ahk_exe Obsidian.exe
::Enter::
Send {Enter 2}
return
::^Enter::
Send {Enter}
return
#IfWinActiveCode: Select all
::Enter::
Send, {ENTER}{ENTER}
return
::^Enter::
Send, {ENTER}
returnPlease help.