I want to register a command with "CTRL+R" as "short cut" but I get the message "ERR_VC_COMMAND_HOTKEY_ALREADY_EXISTS". This doesn't happend when I use "SHIFT+R".

What can I do in order to use the "CTRL+R" keys?

var hotkeyControl = 2;
var hotKeyReconocerArea = (int)((uint)((byte)((int)Keys.R)) | ((uint)((byte)(hotkeyControl)) << 8));
imgViewer.Commands.RegisterUserCommand(MenuItemEnum.MI_CustomCommand1, "Reconocer área", strTmpImagen, hotKeyReconocerArea);

asked 11 Jun '16, 00:03

Andres%20Mu%C3%B1oz's gravatar image

Andres Muñoz

edited 11 Jun '16, 00:04

The "Ctrl+R" hot key is already registered for the Image Viewer command that recognizes the active page (the MenuItemEnum constant is MI_Read). This hot key cannot be used for another command. Please find the full list of the Image Viewer commands together with its hot keys in the Developer's Help file. Also you can check availability of a hot key using the ICommands::HasHotKey method.

(15 Jun '16, 13:42) Oksana Serdyuk ♦♦

Thank you, I will use "SHIFT+R" instead

(16 Jun '16, 00:08) Andres Muñoz
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 11 Jun '16, 00:03

Seen: 1,665 times

Last updated: 16 Jun '16, 00:08

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal