Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Page turning function based on Windows API keyboard event

New Here ,
Jan 02, 2019 Jan 02, 2019

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.

1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 03, 2019 Jan 03, 2019

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 03, 2019 Jan 03, 2019

Are you viewing the first page already?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 03, 2019 Jan 03, 2019

Certainly I've focused on center page.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 03, 2019 Jan 03, 2019

Try the Acrobat SDK forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 03, 2019 Jan 03, 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2019 Jan 04, 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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 04, 2019 Jan 04, 2019

And by the way, try all the windows and child windows. Remember that because of sandboxing there may be multiple ACRORD32.EXE processes; it's also possible that your messages are blocked by the sandbox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 06, 2019 Jan 06, 2019
LATEST

I have checked the security setting, my Acrobat Reader's Protected Mode is off, so I think it's not caused by sandbox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines