Set shortcuts

Hi all,

Is there a way to set shortcuts to some functions one needs to run all the time? instead of writing it in the command line window or clicking a button on some panel -- just to type a user defined shortcut from the keyboard ...

Thank you !
You can create user defined menus that have shortcut keys, and when the menu item is invoked it can call an Igor function or a user macro or function.

Execute the following command in Igor's command window to get more information:
DisplayHelpTopic "User-Defined Menus"
I understand that this may be achieved using user-defined menus. But can I simply use Mac OS 10.6 System Preferences > Keyboard shortcuts to assign a shortcut to an existing menu item? I tried to assign Ctrl+A to "Add Annotation...". Then "^A" successfully appeared beside it, but it did not take effect when I pressed Ctrl+A.
isend wrote:
I understand that this may be achieved using user-defined menus. But can I simply use Mac OS 10.6 System Preferences > Keyboard shortcuts to assign a shortcut to an existing menu item? I tried to assign Ctrl+A to "Add Annotation...". Then "^A" successfully appeared beside it, but it did not take effect when I pressed Ctrl+A.

I think this conflicts with Igor's special keyboard handling for graphs. When a graph window is active and you type, Igor assumes that you want to type a command and switches focus to the Command Window. That disables the Graph menu. Evidently, we don't check adequately for special keys when we do this.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
Thank you John. Your response gave me some insight and I then realized that I could use the "command" key instead. I successfully assign "command + x" for Add Annotation.
isend wrote:
Thank you John. Your response gave me some insight and I then realized that I could use the "command" key instead. I successfully assign "command + x" for Add Annotation.

OK. Of course, that conflicts with Edit->Cut. We reserve function keys and Cmd-number for users; I think we have used up pretty much all the unmodified letter keys. Perhaps try Cmd-Option-somekey or Cmd-Control-somekey.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com