Highlighted

Is there a way to run some keyboard shortcut with app.executeMenuCommand ('')?

New Here ,
Jul 13, 2020

Copy link to clipboard

Copied

Hi,

 

Is it possible to run some keyboard shortcut with app.executeMenuCommand ('')?

 

 

TOPICS
Scripting

Views

66

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Is there a way to run some keyboard shortcut with app.executeMenuCommand ('')?

New Here ,
Jul 13, 2020

Copy link to clipboard

Copied

Hi,

 

Is it possible to run some keyboard shortcut with app.executeMenuCommand ('')?

 

 

TOPICS
Scripting

Views

67

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 13, 2020 0
Engaged ,
Jul 13, 2020

Copy link to clipboard

Copied

executeMenuCommand(), as the name implies, executes a command from a menu (File, Edit, Object, et cetera). Most of these commands have shortcuts, but to execute a command through a script, you need to specify the command to be executed.  For example

app.executeMenuCommand("zoomin");

zooms in (Ctrl+plus) and

app.executeMenuCommand("group");

groups selected items (Ctrl+G).  So what you need is the parameter representing the command, not the command's shortcut.  What commands are you looking to execute?

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2020 1
New Here ,
Jul 14, 2020

Copy link to clipboard

Copied

It is plugin, not part of a standard command from a menu.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 14, 2020 0
Engaged ,
Jul 14, 2020

Copy link to clipboard

Copied

No, to my knowledge that is not possible (I am happy to be corrected).  

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 14, 2020 0