Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions JumpToFolder.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ThisVersion := "1.0.8"
$ThisVersion := "1.0.9"

;@Ahk2Exe-SetVersion 1.0.8
;@Ahk2Exe-SetVersion 1.0.9
;@Ahk2Exe-SetName JumpToFolder
;@Ahk2Exe-SetDescription Change active folder using Everything.
;@Ahk2Exe-SetCopyright NotNull
Expand All @@ -9,7 +9,8 @@
By : NotNull
Info : https://www.voidtools.com/forum/viewtopic.php?f=2&t=11194


v 1.0.9
- BugFix: Fixed support for DoubleCommander

v 1.0.8
- Added support for Directory Opus
Expand Down Expand Up @@ -38,7 +39,6 @@ SetBatchLines -1
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode, RegEx


$IniFile := "JumpToFolder.ini"


Expand Down Expand Up @@ -115,7 +115,7 @@ SetTitleMatchMode, RegEx
}
Else ; 32-bit Win vs 64-bit ahk
{
MsgBox You need the 32-bit version of JumpToFolder
MsgBox You need the 32-bit version of JumpToFoldDer
ExitApp
}

Expand Down Expand Up @@ -289,7 +289,7 @@ Loop ; Start of WinWaitActive/WinWaitNotActive loop.
$FolderPath := $FolderPath . "\"

DebugMsg( A_ThisLabel . A_ThisFunc, "$FolderPath = [" . $FolderPath . "]`r`n$FileName = [" . $FileName . "]")

Feed%$WindowType%( $WinID, $FolderPath, $FileName )
}
ExitApp
Expand Down Expand Up @@ -379,7 +379,6 @@ MsgBox We never get here (and that's how it should be)
; We need this for some filemanagers that will be (re)started with parameters.

WinGet, $Running_exe, ProcessPath, ahk_id %$WinID%


; Define window type (for usage later on)
; Detection preference order: 1. ahk_class 2. ahk_exe
Expand All @@ -391,6 +390,10 @@ MsgBox We never get here (and that's how it should be)
ExitApp
}

else If ($ahk_class = "DClass" or $ahk_exe = "doublecmd.exe") ; Double Commander
{
$WindowType = DoubleCommander
}

else If ($ahk_class = "TTOTAL_CMD") ; Total Commander
{
Expand All @@ -409,11 +412,6 @@ MsgBox We never get here (and that's how it should be)
$WindowType = DirectoryOpus
}

else If ($ahk_class = "DClass") ; Double Commander
{
$WindowType = DoubleCommander
}

; Q-Dir has a semi-random ahk_class: class ATL:000000014018D720
; Too risky. Fall back : ahk_exe
else If ($ahk_exe = "Q-Dir_x64.exe" or $ahk_exe = "Q-Dir.exe") ; Q-Dir
Expand Down Expand Up @@ -912,8 +910,8 @@ return
; Details on https://doublecmd.github.io/doc/en/commandline.html

Global $Running_exe

Run, "%$Running_exe%" -C "%_thisFOLDER%%_thisFILE%",,, $DUMMY
Run, "%$Running_exe%" -C -T "%_thisFOLDER%%_thisFILE%"

return
}
Expand Down