Jump to content

Archived

This topic is now archived and is closed to further replies.

François-Xavier

windows (Archived) Evernote global hotkeys modification

Recommended Posts

Hello,

 

I have a conflict between Evernote Capture Screen global Hotkey, and my ScreenShot Captor.

They both use Shift + PrntScreen to grab a selected region of the clipboard.

 

I would like to assign Evernote's feature to a different hotkey combination, such as LeftShift + PrntScreen.

 

I saw that the global hotkeys were defined as registry keys in

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Clip selection]
@="C:\\Program Files (x86)\\Evernote\\Evernote\\\\EvernoteIERes\\Clip.html?clipAction=3"
"Contexts"=dword:00000010

 

 

If I delete these keys, the hotkey seems to be not working anymore. So it looks like it is the right registry key to change.

 

However, I do not know to which value to set it, in order to have LeftShift+PrntScreen (or any other shortcut) to work.

Is it possible?

How do you define this value?

Is there a table or a formula to get the right value?

 

Thanks,

François-Xavier

 

Share this post


Link to post

Rather than doop around with the registry, why don't you just use Evernote's Options / Configure Hot Keys function? BTW, the default Evernote clipper shortcut is Win+PrtScr.

Share this post


Link to post

Rather than doop around with the registry, why don't you just use Evernote's Options / Configure Hot Keys function? BTW, the default Evernote clipper shortcut is Win+PrtScr.

 

I wish, but the shortcut to grab a selection of the screen (Shift + PrntScreen) is not there !

Share this post


Link to post

This hotkey is the hotkey for a New Skitch Note. It currently doesn't have a menu option, and can only be changed by changing the registry key

HKEY_CURRENT_USER\Software\Evernote\Evernote\HotkeyCreateNewSkitchNote

The key combination is stored in Hex form, so you would have to find a combination that you would want to use and convert it to that.

When changing registry keys for Evernote, you will need to completely exit Evernote via the File -> Exit menu option.

This is necessary to prevent Evernote from overwriting the changes that you make to it's settings.

Share this post


Link to post

Rather than doop around with the registry, why don't you just use Evernote's Options / Configure Hot Keys function? BTW, the default Evernote clipper shortcut is Win+PrtScr.

 

I wish, but the shortcut to grab a selection of the screen (Shift + PrntScreen) is not there !

First off, are we talking about the screen clipper that's part of the standard Windows Evernote client installation, or are you talking about some Internet Explorer specific clipper? The former uses the Win+PrintScreen shortcut by default to do clipping of a portion of the screen, and works across all Windows applications, including Internet Explorer. The latter uses the Shift+PrintScreen shortcut, and appears to only work in the context of Internet Explorer. The registry entry you've referred to is for the latter Internet Explorer shortcut. The registry entry for the standard Windows Evernote clipper shortcut key is:

[HKEY_CURRENT_USER\Software\Evernote\Evernote\"HotkeyCaptureScreen" = dword:0000082c

With respect to your question: are you saying that the shortcut key Shift+PrintScreen isn't there, or that the operation for clipping the screen isn't there? I see an option for "Capture Screen" there, and it's set to the default of Win+PrintScreen. If I click on that setting and press Shift+PrintScreen, it changes to that.

Share this post


Link to post

This hotkey is the hotkey for a New Skitch Note. It currently doesn't have a menu option, and can only be changed by changing the registry key

HKEY_CURRENT_USER\Software\Evernote\Evernote\HotkeyCreateNewSkitchNote

The key combination is stored in Hex form, so you would have to find a combination that you would want to use and convert it to that.

When changing registry keys for Evernote, you will need to completely exit Evernote via the File -> Exit menu option.

This is necessary to prevent Evernote from overwriting the changes that you make to it's settings.

 

Ah perfect, you nailed it!

I managed to change it to 0x0000082c which seems to be the appropriate value for "Win+PrntScreen", but it conflicts with the default shortcut for "Clip screenshot".

Would you know what would be the hex value to put for LeftShift + PrntScreen?

 

Thanks!

Share this post


Link to post

My knowledge of the hex values is limited at best.

From a previous thread, I know that shift has a hex value of 10, and Printscreen is 2c.

Somehow, they combine to form 42c, which is the default, Shift + Printscreen combination.

This appears to cover both left and right shift keys. There are hex codes for left and right shift(0xA0/0xA1) but I don't quite know how these combine to form the specific combination.

Share this post


Link to post

Scott, I think you're onto something. Plus you made me break out the Windows docs. :) Looks like these are related to the Windows WM_HOTKEY message (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms646279(v=vs.85).aspx). The upper byte appears to consist of combinations of MOD_ALT, MOD_CTRL, MOD_SHIFT, and MOD_WIN (MOD_WIN == 0x8, which accords with the default Win+PrintScreen key). I validated these by observing the registry entry after modifying the hot key using the Evernote dialog. Note though that the WM_HOTKEY doc refers to upper/lower WORDs, not bytes, but what gets put into the registry may just be a conflated version of the actual WORD-based hotkey.

 

Anyways, The lower byte seems to be at least related to the virtual key codes (wherein 0x2C is VK_CAPTURE, or PrintScreen). See http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx. Also see the RegisterHotKey function: http://msdn.microsoft.com/en-us/library/windows/desktop/ms646309(v=vs.85).aspx.

 

As the MOD_xxx keys are not unique for left/right modifiers, it appear that you cannot specify a left or right Shift- specific  (or Alt, Ctrl, or Win) version of a hotkey. 

Share this post


Link to post

I don't know if you know the Hotkey commander tool for Windows:

http://hkcmdr.anymania.com/

 

This allows to override some system hotkeys.

And it allows to check an option in order to distinguish left from right modifiers.

 

My point being, if this tool can do it (without any running instance of the tool), then there must be a way for Windows to distinguish left from right, no?

 

Thanks!

Share this post


Link to post

My point being, if this tool can do it (without any running instance of the tool), then there must be a way for Windows to distinguish left from right, no?

Yes, using some Windows APIs, you can detect left-vs-right instances of keys like Shift, Alt, Ctrl, etc.

However, it appears that the actual API that Evernote is using to register and receive Windows hotkeys cannot distinguish left-vs-right.

Share this post


Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...