Create link to a specific PDF page for ConnectedText using an AutoHotkey script
Some of my friends use ConnectedText for organizing their notes and I find it one of the best note-taking application for Windows. Generally speaking, ConnectedText is a more user-friendly “version” of MediaWiki as they have a lot of common characteristics but it is only for personal use.
One problem with ConnectedText is that its syntax for creating a link to a specific PDF page is quite complex and the corresponding string can become very long. Fortunately, this process can be automated using an AutoHotkey_L script. AutoHotkey is a very powerful and free utility for automating Windows and AutoHotkey_L is a custom build of it.
An example of such a link is the following:
[[$APP: acrobat.exe /a "page=3" "C:\MyPdf.pdf" | MyPdf: 3]]

A button is created with this code and after clicking on it the Adobe Acrobat Pro will launch and the MyPdf file will open at its third page. If you use Acrobat Reader the syntax is:
[[$APP: acrobat.exe /a "page=3" "C:\MyPdf.pdf" | MyPdf: 3]]
Before running the script you should have selected in Windows Explorer the PDF file for which you would like to create a link. The shortcut that triggers its execution is ctr + alt + l (small capital L). Afterwards you will be asked for the specific PDF page. At the end, the string is sent to the clipboard. The text in the button will be:
MyPdf: 3
The main disadvantage of these links is that they are depended on the absolute path of the PDF file. If for example you move later the file to another folder the link will break. On the contrary DEVONthink links do not have this limitation which is extremely important for me.
The AutoHotkey code is the following:



