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

Javascript with keystroke

Community Beginner ,
Apr 22, 2017 Apr 22, 2017

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!

TOPICS
Acrobat SDK and JavaScript , Windows
1.2K
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

correct answers 1 Correct answer

Community Expert , Apr 24, 2017 Apr 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.

Translate
Community Expert ,
Apr 22, 2017 Apr 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

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 Beginner ,
Apr 22, 2017 Apr 22, 2017

Hmm that is too bad.

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

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 ,
Apr 24, 2017 Apr 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.

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 Beginner ,
May 01, 2017 May 01, 2017
LATEST

tjah,

javascript activation yes, but Adobe won't activate a exe file so that's a situation I would think

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