I'm using the Adobe Acrobat COM obects inside AHK, and while these objects are communicating with Acrobat, sometimes they cannot be interrupted by hotkeys which contain other Acrobat COM functions. However, I still want the buffering of the hotkeys, so that when the original COM operations finish, the code from the hotkey will trigger immediately after.
It seems like the Critical and Thread options only work for an entire section of code, or an entire hotkey/hotstring. Is there a way to get this functionality but just on a few lines of code within my main loop? Thank you for any help you may be able to provide!
Code: Select all
avdoc := acrobat.GetActiveDoc()
pddoc := avdoc.GetPDDoc()
read_title1 := pddoc.GetFileName()
read_numPages := pddoc.GetNumPages()
avview := avdoc.GetAVPageView()
read_currentPage := avview.GetPageNum()
; must always run completely before a hotkey interrupt