Skip to main content
Participant
April 22, 2017
Answered

Javascript with keystroke

  • April 22, 2017
  • 1 reply
  • 1333 views

Hi,

I have created a macro in a program called Winautomation, makes it possible to automate certain windows actions.

So I created one to automate some tasks in Adobe Acrobat but now is the question how I can easily use them in Acrobat.

You can assign hotkeys to trigger the robot. You can also export them as a exe file.

Problem in Acrobat: EXE files is not possible to open because of security reasons.

Would there be a possibility to make a button that assigns a javascript that evokes a hotkey? For example: "CTRL+ALT+SHIFT+F10"?

thanks!

This topic has been closed for replies.
Correct answer Joel Geraci

That's not the only solution. I'd strongly suggest that you rethink your approach entirely. Acrobat DC has some great automation tools with Acrobat Actions where you won't be dependent on sending keystrokes to the application that end up popping up a dialog you weren't expecting. You have much better control with Actions and JavaScript.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
April 22, 2017

No. You can only execute those menu items that have a name and are within the set of allowed menu items for a certain privilege level. See here for a tutorial: https://acrobatusers.com/tutorials/print/executing_menu_items_from_javascript

Participant
April 22, 2017

Hmm that is too bad.

so the only solution would be to find a external custom toolbar? Any suggestions?

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
April 24, 2017

That's not the only solution. I'd strongly suggest that you rethink your approach entirely. Acrobat DC has some great automation tools with Acrobat Actions where you won't be dependent on sending keystrokes to the application that end up popping up a dialog you weren't expecting. You have much better control with Actions and JavaScript.