Home Forums General XMetaL Discussion Override the paste CTRL+V shortcut keys in XMAX 5.5 Reply To: Override the paste CTRL+V shortcut keys in XMAX 5.5

Derek Read

Reply to: Override the paste CTRL+V shortcut keys in XMAX 5.5

Yes, you can do this. Something like the following (MCR source as viewed with a text editor):

[code] ActiveDocument.Host.Alert(“you pressed Ctrl+V”); ]]>
[/code]

If you are building a customization using XMetaL Developer you would assign a value to the property called “ShortcutKey” for a specific script file (*.js, *.vb, etc) inside the solution. Then when that script is compiled into the MCR file during the build process some code similar to that shown above will be generated. See attached screen capture called MacroShortcutKeyAssignment.jpg

Is this what you are looking for?

This assumes that the keystroke has been passed through to XMAX and not intercepted first by the container application. If you wish to intercept the keystroke using the container application then you must code that there and deal with it (in which case you could then also tell XMAX to do something).

Note: this MCR functionality is the same for XMetaL Author with the one difference being that XMAX may not see certain keystrokes if they are intercepted by its hosting application.

Reply

Products
Downloads
Support