Home Forums General XMetaL Discussion is it possible to track the keypress event on XMetal editor? Reply To: is it possible to track the keypress event on XMetal editor?

Derek Read

Reply to: is it possible to track the keypress event on XMetal editor?

There is no OnKeyPress event, however, you may assign a particular key combination to a macro so that when the user presses that key combination the macro will run, for example: Ctrl+Alt+F1.

If you have XMetaL Developer then it is easy to assign a particular shortcut to each macro in your project using the properties window.

If you are building your MCR files by hand with a text editor of some kind, then the value to set is called “key” inside the element. For an example please see the journalist.mcr file in the Macros folder and look for the “Insert Subsection” macro which in that example is assigned the key combination “Ctrl+Alt+S”.

Perhaps if you can give us some more information on what you are doing we can try to offer some suggestions.

Reply

Products
Downloads
Support