merbin2012 / sharex

Automatically exported from code.google.com/p/sharex
0 stars 1 forks source link

Windows key modifier #444

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'd really love to see the windows key (LWin/RWin) to be added as a possible 
modifier.

I've used a few other tools before (using Greenshot at the moment) and I really 
prefer the Win+S combination for region screenshots and Shift+Win+S for window 
screenshots.

Original issue reported on code.google.com by jadran.k...@gmail.com on 3 Sep 2013 at 9:31

GoogleCodeExporter commented 9 years ago
Keys enum in .NET not even contains Windows key as modifiers as you can see 
here:
https://dl.dropbox.com/u/14076298/ShareX/2013/09/Cv2Yqkou8X.png

So when i press Windows key + A then ShareX getting first Windows key and then 
A key. Instead getting Windows key + A together. So i can't use it as modifier. 
I need to use  global keyboard hook for be able to use Windows modifier i 
think. And i don't prefer to use global keyboard hook.

When i press Windows + A in Greenshot it showing ctrl + alt + A.

Original comment by flexy...@gmail.com on 3 Sep 2013 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by flexy...@gmail.com on 3 Sep 2013 at 3:04

GoogleCodeExporter commented 9 years ago
I went through their code and they used it as a modifier. Also, at the time you 
can't set the Windows key through the GUI, but it does work if you do modify 
the config file manually.

Original comment by jadran.k...@gmail.com on 3 Sep 2013 at 3:08

GoogleCodeExporter commented 9 years ago
I can set it manually too using Keys.LWin | Keys.S but when setting hotkeys in 
form, form keydown event don't recognize windows key as modifier and therefore 
not showing them together in keydown event. So i can't set it. Currently i'm 
using like this hotkey setting ui: 
https://dl.dropbox.com/u/14076298/ShareX/2013/09/4QueoYTZmN.png So i'm not 
using dropdown menu for select keys anymore and if that button can't receive 
windows key as modifier then i'm unable to set it.

Original comment by flexy...@gmail.com on 3 Sep 2013 at 3:17

GoogleCodeExporter commented 9 years ago
I can't even edit keys enum in settings file for add LWin + S because those two 
key is not flag.

Original comment by flexy...@gmail.com on 3 Sep 2013 at 3:46

GoogleCodeExporter commented 9 years ago
Because keys enum not support this modifier i added bool called Win so you can 
edit it from config file like this: 
https://dl.dropbox.com/u/14076298/ShareX/2013/09/cqvFbTEVjS.png

and also because form events using this keys enum i can't get Windows modifier 
state therefore it should be set from config.

Original comment by flexy...@gmail.com on 13 Sep 2013 at 11:55

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r610.

Original comment by flexy...@gmail.com on 13 Sep 2013 at 12:02