Skip to main content
Participant
June 12, 2021
質問

Toolbox menu selection by CEP .jsx script

  • June 12, 2021
  • 返信数 1.
  • 467 ビュー

Hi, does anyone have idea to select the toolbox menu by scripting?
I want the rectangle menu in the toolbox to be selected (like the img.) After that users will be able to start drawing rectangle of prescribed fillcolor settings. Therefore, generating a rectangle of pre-set shape cannot be a solution - I want users to draw it freely.

 

 

I think these ideas are candidate but cannot achive it yet.

Idea 1: Any jsx function to select this menu? , or,

Idea 2: Any way to dispatch "M" key to the application window as the shortcut key of the rectangle menu?  (not to CEP extention window)

I'm glad if you could share any ideas or experiences. Thanks in advance.

このトピックへの返信は締め切られました。

返信数 1

CarlosCanto
Community Expert
Community Expert
June 12, 2021
app.selectTool('Adobe Rectangle Shape Tool');

 

check this thread for more keys

https://community.adobe.com/t5/illustrator/what-s-new-in-illustrator-scripting-cc2020/td-p/10772375?page=1

yutaka naito作成者
Participant
June 13, 2021

Great! This is what I want to realize.

Thanks for your kindness & quick answer!