Skip to main content
Participant
January 3, 2019
Question

Page turning function based on Windows API keyboard event

  • January 3, 2019
  • 2 replies
  • 2137 views

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 has been closed for replies.

2 replies

try67
Community Expert
Community Expert
January 3, 2019

Try the Acrobat SDK forum.

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?

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!

Participant
January 3, 2019

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

Legend
January 3, 2019

Are you viewing the first page already?

Participant
January 4, 2019

Certainly I've focused on center page.