Code: Select all
^+n::
{
Run("`"C:\Program Files\Notepad++\notepad++.exe`"")
WinWait("ahk_exe notepad++.exe")
Sleep(100)
Send("!{Tab}")
OnClipboardChange ClipChanged
}
ClipChanged() {
ControlSend("^v`n", "Scintilla1", "ahk_exe Notepad++.exe")
}
#HotIf WinActive("ahk_exe notepad++.exe", )
Esc::
{
MsgBox("BYE")
ExitApp()
}