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

autohotkey script for pressing ctrl z inside illustrator

New Here ,
Sep 15, 2024 Sep 15, 2024

i want to write a script for pressing ctrl z key inside illustrator for redo the last action, 

the method i want is as follows:

executing the .ahk file inside  a .jsx script.

the purpose is automating illustartor and have the ability of press keys using a .jsx script

TOPICS
Performance , Scripting
276
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
Adobe
Community Expert ,
Sep 16, 2024 Sep 16, 2024

Hi @ismail372100939q2m, I don't know the AHK way, but just wanted to check that you know a couple of built-in ExtendScript features:

 

1. app.undo() and app.redo();

 

2. app.executeMenuCommand(menuCommandString) – and here is a list of the command strings.

 

- Mark

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 ,
Sep 16, 2024 Sep 16, 2024
LATEST

im a bit confused about what you want to do. you say that the jsx executes the ahk file.. but that means the script must already be running?

are you using the hotkey to trigger the script? or are you using the script to trigger the hotkey?

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