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.
Copy link to clipboard
Copied
I have tried push "F1" in same method and it works, but push "PageUp" still doesn't work.
Copy link to clipboard
Copied
Are you viewing the first page already?
Copy link to clipboard
Copied
Certainly I've focused on center page.
Copy link to clipboard
Copied
Try the Acrobat SDK forum.
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?
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!
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.
Copy link to clipboard
Copied
I have checked the security setting, my Acrobat Reader's Protected Mode is off, so I think it's not caused by sandbox.