Skip to content

lukeIam/DSALauncher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSALauncher

DSALauncher is a simple tool that allows yout to uickly open your Das Schwarze Auge/The Dark Eye pdfs at the right page. With the companion userscript you can even directly jump from wiki-aventurica.de to the right positions in your pdf files.
The whole thing was written in under a day - so do not expect too much...

HowTo use

Open a document

[documentKeyword] + enter
openDoc

Open document on specific page

[documentKeyword] [page] + enter
[documentKeyword][page] + enter
openPage

Open document and start a search

[documentKeyword] [searchKeyword] + enter
openKeyword

Open document from wiki-aventurica.de

Just install the userscript and click on the new links on page numbers
image

Position

click + drag

Exit DSALauncher

exit + enter

HowTo install

  1. Install .NET Framework 4.7.1 (if not already installed)
  2. Dowload the latest release
  3. Unzip the files to a folder of your choice
  4. Open the settings.json file in a editor
Key Description Example
PdfViewer Path to executable of the pdf viewer. C:\\Program Files (x86)\\Adobe\\Acrobat Reader DC\\Reader\\AcroRd32.exe
PdfCommandPage Arguments to open a page ({0}=pdf path {1}=page number) /A page={1} \"{0}\"
PdfCommandSearch Arguments to trigger a search ({0}=pdf path {1}=keyword) /A search=\"{1}\" \"{0}\"
PdfBasePath Base path to make relative paths absolute 'C:\DSA'
AlwaysTop If true the input field will always stay on top 'true'
InactiveOpacity A value between 0and1` which determinates the opacity of the inactive input field 0.8
WebserverActive If true a small webserver will be started which allows the companion userscript to open pdfs true
WebserverPort The port the webserver should use 7964
Files List of the documents you own - see next table how to define documents [ ... ]

Files definition:

Key Description Example
Keywords List of keywords for this document (adding wiki-aventurica name is sugested) [ "Wege der Helden", "WdH", "Helden" ]
PdfPath Path to your pdf file (can be absolute or relative to PdfBasePath) Regelwerke\\Wege der Helden.pdf
Offset Offset for the page numer for this document 1
  1. Allow the user to use the port: netsh http add urlacl url=http://*:[Port]/ user=DOMAIN\user
    Optional - you can also run DSALauncher.exe with administrative rights.

  2. Start DSALauncher.exe

  3. [Optional] Install DSALauncher.user.js in your browser

Known issues

  • If a document is already open it will not change to the new position (adobe reader limitation)