I have Adobe Reader XI (on Win 8.1; AHK 32 Unicode I believe), so this may need to be adjusted for you.
I retrieve the pagenumber by using
ControlGetText. I use this line in one of my scripts:
Code: Select all
ControlGetText, reader_page, Edit2, % "ahk_id " Reader%A_Index%
So the control Edit2 is what contains the value of the page number for me.
---
One thing I will note is that if you need the active PDF file and still want to try to use it as a COM Object (in case of other manipulation beyond just getting a page number), do you want
ComObjCreate() or
ComObjActive()? I've seen
Active used when taking control of something already open.