Skip to main content
Participant
January 3, 2019
Question

Page turning function based on Windows API keyboard event

I would like to achieve Page Turning function for an opened PDF, based on Windows API keyboard event, however I've tried:

//Turn page up

HWND hWnd = ::FindWindow(NULL, _T("xxx.pdf - Adobe Acrobat Reader DC"));

HWND hWnd_c = ::FindWindowEx(hWnd,0,_T("AVL_AVView"),NULL);

int ret = ::PostMessage(hWnd_c, WM_KEYDOWN, VK_PRIOR, 0);

int ret2 = ::PostMessage(hWnd_c, WM_KEYUP, VK_PRIOR, 0);

However it didn't work, and I'd like to solve this issue.

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

try67
Community Expert
Community Expert
January 3, 2019

Try the Acrobat SDK forum.

Translate
Participant
January 4, 2019

Since I know the Acrobat SDK​ mainly do operation towards pdf file, but I don't know whether could receive PC's keyboard message?

Translate
Legend
January 4, 2019

This is not covered in the SDK. The SDK is mainly about automating Acrobat, not Reader. Adobe will not want automating the free software to work of course!

Translate
Participant
January 3, 2019

I have tried push "F1" in same method and it works, but push "PageUp" still doesn't work.

Translate
Legend
January 3, 2019

Are you viewing the first page already?

Translate
Participant
January 4, 2019

Certainly I've focused on center page.

Translate