I'm building a text summerizer tool. The idea is that you select a paragraph of text from a PDF file and then click on a button in a GUI. This will then copy the selected text and paste it into a txt document (sofar-so-good). The issue is, that I want it to also include the filename and PDF page number in the pasted text, e.g.:
[Filename.pdf] - [page number]:
[selected text]
Is there any way to do this for a novice AHK programmer?[selected text]