Skip to main content
Participant
Sep 16, 2024 6:40 AM UTC
Question

autohotkey script for pressing ctrl z inside illustrator

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

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Disposition_Dev
Legend
Sep 16, 2024 7:36 PM UTC

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
m1b
Community Expert
Community Expert
Sep 16, 2024 10:16 AM UTC

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