Replies: 2 comments 2 replies
|
hmm the more automated control would be DDE it strings commands like one (ideally direct to the background server since your using SENDKEYS a VBS script could perhaps be better as NATIVE |
1 reply
|
Implemented as |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am looking for a way to delete the PDF I am currently reading and immediately open the next file in the directory.
Since I couldn't find a single native command for this, I mapped four custom shortcuts in SumatraPDF's Advanced Settings (CmdDuplicateInNewTab, CmdOpenNextFileInFolder, CmdPrevTabSmart, CmdDeleteFile) and chained them using this AutoHotkey v2 script:
AutoHotkey
#Requires AutoHotkey v2.0
#SingleInstance Force
#HotIf WinActive("ahk_exe SumatraPDF-3.6.1-64.exe")
F12:: {
Send("^+p") ; CmdDuplicateInNewTab
Sleep 200
Send("^+{Right}") ; CmdOpenNextFileInFolder
Sleep 200
Send("^+{Tab}") ; CmdPrevTabSmart
Sleep 200
Send("+{Delete}") ; CmdDeleteFile
}
#HotIf
Is there a native, simpler way to achieve this directly within SumatraPDF without external scripts?
Thanks.
All reactions