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

Page turning function based on Windows API keyboard event

New Here ,
Jan 02, 2019 Jan 02, 2019

Copy link to clipboard

Copied

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.

Views

1.6K
Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Report

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

Copy link to clipboard

Copied

Are you viewing the first page already?

Votes

Translate

Report

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

Copy link to clipboard

Copied

Certainly I've focused on center page.

Votes

Translate

Report

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

Copy link to clipboard

Copied

Try the Acrobat SDK forum.

Votes

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Report

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

Copy link to clipboard

Copied

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!

Votes

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Report

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