-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ea6e59
commit 93663ea
Showing
3 changed files
with
18 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
; DialogJumpToListerPath | ||
; Description: When in file dialog, focus on the edit control, and press Ctrl+E to jump to the last actived folder of listers. (AHK v2) | ||
; Description: When in file dialog, focus on the editor, and press Ctrl+E to jump to the last actived folder of listers. If Ctrl+E not work, type "//cur " to trigger it. (AHK v2) | ||
; Author: Chaoses Ib | ||
; Version: 210310 | ||
; Version: 210404 | ||
; Git: https://github.com/Chaoses-Ib/IbDOpusScripts | ||
|
||
#If WinActive("ahk_class #32770") ;File dialog | ||
DOpus_SendPath(){ | ||
RunWait A_ProgramFiles . "\GPSoftware\Directory Opus\dopusrt.exe /info " . A_Temp . "\DOpus_pathlist.txt,paths" | ||
paths := FileRead(A_Temp . "\DOpus_pathlist.txt") | ||
RegExMatch(paths, '<path active_lister="1" [^>]* tab_state="1">([^<]*)' , Match) | ||
if(!Match) | ||
return | ||
Send "{Text}" . Match[1] . "`n" | ||
} | ||
|
||
^e:: | ||
RunWait A_ProgramFiles . "\GPSoftware\Directory Opus\dopusrt.exe /info " . A_Temp . "\DOpus_pathlist.txt,paths" | ||
paths := FileRead(A_Temp . "\DOpus_pathlist.txt") | ||
RegExMatch(paths, '<path active_lister="1" [^>]* tab_state="1">([^<]*)' , Match) | ||
if(!Match) | ||
return | ||
Send "{Text}" . Match[1] . "`n" | ||
return | ||
#HotIf WinActive("ahk_class #32770") ;File dialog | ||
^e::DOpus_SendPath() | ||
#HotIf | ||
|
||
#Hotstring EndChars `n `t | ||
:OX://cur::DOpus_SendPath() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters