Skip to main content
Participant
September 16, 2024
Question

autohotkey script for pressing ctrl z inside illustrator

  • September 16, 2024
  • 2 replies
  • 379 views

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 has been closed for replies.

2 replies

Disposition_Dev
Legend
September 16, 2024

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?

m1b
Community Expert
Community Expert
September 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