Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: stephy_22 Profile
| Femeie 22 ani Prahova cauta Barbat 25 - 53 ani |
|
Mrrrr
AdMiN
Inregistrat: acum 17 ani
Postari: 2228
|
|
I'm using a free software called Debenu PDF Tools and I use very often one of its context menu options with the following path, after I select 2+ PDF files: - right click the PDF you want joined first - towards the middle of the context menu - click on Debenu PDF Tools - list opens to the right - click on Split and Merge - list opens to the right - click on Merge Selected Files
Unfortunately there are no shortcut mnemonics (underlined letters for context menu items, eg. underlined O for Open). Not even after activating "Underline access keys when available" in the Windows 10 Settings - keyboard - Change how keyboard shortcuts work.
Doing PDF merging quite a lot it became annoying to always have to navigate by mouse, over and over. I couldn't find any way to shorten the path to "Merge Selected Files".
Sure, maybe there are other programs to right click and merge selected files, but I want to use Debenu.
So I looked on how to get a keyboard shortcut of some sort to get there easier. After trying a few macro recording apps, I found an AutoHotkey script doing something similar and I adapted it to my needs.
The text quoted below needs to be copied in notepad and saved with the AHK extension. You must have AutoHotkey installed for it to run. Also, in order to assign a shortcut key to the script, you need to create a shortcut to the AHK file and assign the key combination to that shortcut (eg. CTRL+SHIFT+B).
Note: the text colored in red is AutoHotkey language comments I colored for easier reference. Any text after ; in AHK won't affect the run of the script. What I left in green is the code that actually runs.
MouseClick, Right ; right click where the mouse is located, so you must place it where you want the click to happen and then press the key combination (eg. CTRL+SHIFT+B)
; below there are 2 options: either move mouse or press a key for a context menu item, if it has it - eg. O for Open ; MouseMove, 100, 60 R ; Send, o
; I want to use a 3rd option: down arrow key X times, right, down, right, enter to get to the item I need Send, {Down 17}{Right}{Down 2}{Right}{Enter}
; must wait a second before the next Send command - if it's too soon it won't work Sleep, 1000
Send, {Tab}{Tab}{Enter} ; navigates to the OK button and presses it to merge the PDFs Return ; closes the script |
Source of the original, longer, script:
_______________________________________
|
|
pus acum 4 ani |
|
TRaP
Moderator
Inregistrat: acum 6 ani
Postari: 787
|
|
On my PC the number of Down required to merge PDFs is 10. So it's {Down 10}.
I also split PDFs a lot and the code to do that using Debenu and AHK script is:
MouseClick, Right
Send, {Down 11}{Right}{Down 2}{Right}{Down}{Enter} |
Note that now I have to go down 11 times instead of 10, because when selecting multiple PDFs to merge them the context menu shows less items than when selecting only 1 PDF to split it.
Modificat de TRaP (acum 4 ani)
|
|
pus acum 4 ani |
|
Mrrrr
AdMiN
Inregistrat: acum 17 ani
Postari: 2228
|
|
title updated
_______________________________________
|
|
pus acum 1 an |
|