Is it possible with AHK to close the "next" Notepad++ Document, i.e. to close a tabulator which is to the right of the tab that I am in?
So, if I press CTRL+W it closes the current tab, but CTRL-E would close not the current tab but the next tab?
Close other tab in Notepad++
Re: Close other tab in Notepad++
Send,{Browser_Back} ; switch to the tab on the left side of the current
Send,{Browser_Forward} ; switch to the tab on the right side of the current
So
Send,{Browser_Forward} ; switch to the tab on the right side of the current
So
Code: Select all
^e::
Send,{Browser_Forward}
Send,{Blind}w
Return
Re: Close other tab in Notepad++
First of all, thank you very much!!
You use Send,{Blind}w to close the tab. If I define CTRL+W to be something else or if I want CTRL+W to close the left tab, then your code won't work anymore.
Is there another way to close a Notepad++ tab?
You use Send,{Blind}w to close the tab. If I define CTRL+W to be something else or if I want CTRL+W to close the left tab, then your code won't work anymore.
Is there another way to close a Notepad++ tab?
Re: Close other tab in Notepad++
Hi @knn,
The following would accomplish what's in your original post:
If you define CTRL+W (or CTRL+{PGDN}) to be something else, the following should work:
Cheers,
- iPhilip
The following would accomplish what's in your original post:
Code: Select all
#IfWinActive ahk_class Notepad++
^e::
SendInput, ^{PgDn}
SendInput, ^w
Return
#IfWinActive
Code: Select all
#IfWinActive ahk_class Notepad++
^e::
WinMenuSelectItem, A, , View, Tab, Next Tab
WinMenuSelectItem, A, , File, Close
Return
#IfWinActive
- iPhilip
Windows 10 Pro (64 bit) - AutoHotkey v2.0+ (Unicode 64-bit)
Re: Close other tab in Notepad++
Doesn't work. Only works when the menu bar is visibleiPhilip wrote: ↑29 May 2020, 18:18Code: Select all
#IfWinActive ahk_class Notepad++ ^e:: WinMenuSelectItem, A, , View, Tab, Next Tab WinMenuSelectItem, A, , File, Close Return #IfWinActive
Is there maybe a scintilla way to close a tab?
Who is online
Users browsing this forum: Google [Bot], mstrauss2021 and 271 guests