I currently have a requirement that when using VScode or other software to open in a folder or in the explorer, it will reopen a new explorer window instead of opening it as a new tab in an already opened window.
I would like to ask if I can use AutoHotKey to listen for the opening behavior of the explorer.exe, modify its opening behavior when there is already a window to open in a new tab. Or there are other more elegant implementations.
Open in a new tab instead of a new window
-
- Posts: 8
- Joined: 21 Sep 2023, 02:08
-
- Posts: 1
- Joined: 16 Aug 2024, 10:21
Re: Open in a new tab instead of a new window
Also interested in this, if anyone knows a way.
Re: Open in a new tab instead of a new window
Ideas are below.
Code: Select all
#Requires AutoHotkey v2
F3::dirView(A_MyDocuments)
dirView(dir) {
Static winTitle := 'ahk_class CabinetWClass'
If WinExist(winTitle) {
WinActivate(), Sleep(100)
ControlFocus('SysTreeView321'), Sleep(100)
SetKeyDelay(300), SendEvent('^t^l')
SetKeyDelay(15) , SendEvent('{Text}' dir)
Sleep(150), Send('`n')
} Else Run dir
}
Who is online
Users browsing this forum: DavidP, mikeyww, TomDonovan, vanove and 97 guests