; Copies selected text in current segment in CafeTran and runs search in source document (works with both PDFs and Word documents) ; Written by Michael Beijer ; http://beijer.uk/ ; Note1: Specify name of the .pdf or .docx prior to use by right-clicking on AHK script icon in taskbar ; Note2: Make sure to enable "Edit > Copy source segments to clipboard" (which ensures the current source segment text is always copied to the clipboard, without tags) !p:: ; Shortcut: Alt+P { ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; WinActivate, 25808714208150111textforfiling (highlighting).docx ; Change focus to source .pdf or .docx; enter exact name of doc here, and make sure said doc is open ; WinActivate, ahk_class OpusApp ; Change focus to any open Word doc. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Send, ^f ; Open Find dialogue in source document (Ctrl+F) Send, ^a ; Select any previous text in the Ctrl+F field (Ctrl+A) Send, ^v ; Paste selected text over previous selection (Ctrl+V) Send, {Enter} ; Press "Next" in the Ctrl+F dialogue return }