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

Is there a way to set custom shortcut key to specific Illustrator script?

Engaged ,
Dec 30, 2022 Dec 30, 2022

Is there a way to set custom shortcut key to specific Illustrator script?

I want to run a script which is listed in my script collection with Alt+1 key

is this possible?

TOPICS
Scripting
8.7K
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

Explorer , Jan 02, 2023 Jan 02, 2023

You can use autohotkey. I prefer version 2.

 

Download autohotkey, unzip, create near AutoHotkey64.exe file AutoHotkey64.ahk with this code:

 

#Requires AutoHotkey v2.0
#SingleInstance Force

#HotIf WinActive("ahk_exe Illustrator.exe")
  !1:: aiScript("script1")
  !2:: aiScript("script2")

aiScript(name) {
  static app := "c:\Program Files\Adobe\Adobe Illustrator 2023\Support Files\Contents\Windows\Illustrator.exe"
       , path := "c:\Users\user\Documents\aiScripts"
  if FileExist(script := name) 
...
Translate
Adobe
Community Expert ,
Aug 05, 2024 Aug 05, 2024

@Mark34118026rzjg  schrieb:

Replying to the John Travolta image. I guess also applies to AlinaMiller. As you can see there is no place to choose an individual script. Incorrect information should be able to be downvoted.


 

krasnovpro answered about using AutoHotKey. 

 

And with that John Travolta image they probably wanted to make the same point that you made.

 

If you want to assign a hotkey to a script, make an action and then assign a hotkey or use third party software such as AutoHotKey.

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
New Here ,
Aug 22, 2024 Aug 22, 2024

You can use Actions to create shortcut for your script.

Simply from Action window
> New Action
> Name it > set your shortcut > then choose your script
> from the 3 Dashes on the top right of the Actions menu
> Insert Menu Item
> Type the name of your script (same as the naming of the jsx file)
> Find (by starting typing a little part of it it and might work, be sure it finds your script not other command)
> Ok
> Congrats 🥳

if you forget to set the shortcut when creating your action, you can do it like this:
> Select your new Action in the Action window
> go the 3 Dashes top right
> Action Options
> set the shortcut you wanted.
> Congrats 🥳

fahimfarhang37054467qya7_0-1724318421971.png

 

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
Engaged ,
Apr 21, 2025 Apr 21, 2025

Unbelievable. Thanks for pointing out this defect, and a workaround.

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 23, 2025 Apr 23, 2025

If you are using an Elgato Streamdeck after March 2025 it is possible to use the "action" technique but instead of assigning a hotkey, you can now assign an action directly into the Elgato Streamdeck as a button.

EDIT - ONLY FOR PHOTOSHOP. Realised this is an Illustrator question. Oops.

Here is an example that I added to one of my Streamdeck button screens so that I could quickly run a photoshop action after editing a file in acrobat (acrobat would launch photoshop and I could run the script using my Elgato Streamdeck button).

Screenshot 2025-04-24 at 07.37.32.png

Unsure if this also works with the Logitech MX Creative Console - if it does, I'll edit this post once I'm at home (currently at the office)

 

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!
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
Explorer ,
Apr 23, 2025 Apr 23, 2025

Thanks for taking the time on that! I need something that doesn't require any additional hardware or software, though, since I need to provide it to other team members at my company.

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
Explorer ,
Apr 23, 2025 Apr 23, 2025

Ugh, where are the Edit and Delete functions in this forum?

 

Come on, that's just pathetic.

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 ,
Aug 29, 2025 Aug 29, 2025
LATEST

There's only one Native option. It's the Action to run the Script then a shortcut to it as mentioned previously.

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