Instant PDF Search

Posted 4 months, 1 week ago at 6:30 pm. 0 comments

I just scanned a reference book I use daily in the kitchen called Keeping Food Fresh. I wanted to quickly and easily look up items from the book, so I created a Launchy command that will allow me to look up a string in any Acrobat file, and open the file at the position of the first match.

All I have to do is type “alt-space,” food, tab, and then the search term.  The script does the rest.

The Autohotkey script is as follows:

 

PDF Search.ahk

Run, %1%%2%
WinWait, %2%
IfWinNotActive, %2%, , WinActivate, %2%,
WinWaitActive, %2%
Send, ^+f
WinWaitActive, Search
Send %3%{ENTER}

In Launchy, I used the runner plugin to call the above script with the following parameters including quotes:

path to file” “filename” “$$”

No Replies

Feel free to leave a reply using the form below!


Leave a Reply