I handle many documents on a day to day basis and was using regular expression and Autohotkey to open a particular page of pdf from a given string. For ex, I will copy the below string including the parenthesis and press a hotkey
(16G3537-2011 tax return-page 25)
Any my below Ahk code would open the 25th page in the pdf 16G3537-2011 tax
RegExMatch(clipboard,"i)\((.*)\s*-page\s*(\d+)\)",part)
Run, %Adobelocation% /A page=%part2% %copyz%/%part1%.pdf"
Adobelocation is the location of adobe reader in my computer
copyz is the location of folder where the pdf is located
I know AHK to some extent, but have difficulty with regular exp. Now my query string has been modified to just
16G3537-2011 tax return.pdf_pages 25
I am really at a loss to make my code open the 25th page using the modified string. Kindly help me.
Edit:
The command line for this code is
Run, pathto\Acrobat.exe /A "page=" part2 " C:\folder\" part1 ".pdf"