sharpkeys icon indicating copy to clipboard operation
sharpkeys copied to clipboard

Nice little app!

Open Nisse46 opened this issue 5 years ago • 18 comments

Hi, I.m trying to create a "sleeep" button for my wifes new keyboard. Remapping any of the keys to become a sleep button seems impossible. The key I remap looses it's original function but no computer sleep. Why? Rgds Nils

Nisse46 avatar Jan 14 '20 18:01 Nisse46

Have you set Windows to actually sleep when the sleep button is pressed?

https://www.digitalcitizen.life/change-shut-down-button-log-lock-restart-sleep-etc

If you don't see the option to customize your sleep button's action in the old Windows Control Panel (perhaps because the system doesn't actually have a sleep button), you'll have to do it another way (for example, create a shortcut to a program that sends the PC to sleep).

SumatraPeter avatar Jan 15 '20 14:01 SumatraPeter

Also, sleep is a strange key on most laptops and keyboards. It's sometimes intercepted by hardware which means it never gets passed to Windows, so Windows cannot map it. In other cases, a machine will ignore the Sleep scan code because it only responds to the hardware one.

It's a try and see sort of thing.

randyrants avatar Jan 16 '20 21:01 randyrants

I have an old Microsoft keyboard with a "sleep key". The computer is a desktop with Win10 pro. If i enter settings in Windows, energy, behaviour when sleep key is pressed, sets it to no action, the sleep button on the keyboard stops working. So somehow windows must recognise that key. If I choose turn off monitor the monitor goes off. Sharp Key can't recognise any output from the keyboard in those cases. Really odd?? Does Sharp Key filter codes that are unexpected? Is there any program that's logging Everything that the keyboard produces? Rgds Nissse

Nisse46 avatar Jan 17 '20 18:01 Nisse46

I also tried to remap any key to put the PC to sleep. The key loses it's original function, but nothing happens. The registry entry looks fine, though. Also, on another Windows 10 machine it did not work. Also, the Power (down) code does nothing. Also, the break code (DF_E0) or the Set 2 code (3F_E0) did not work (done via changing in regedit).

It seems to be a Windows problem, not a Sharpkeys problem, but somebody here can help. Does Windows maybe expect both the make and break codes? @SumatraPeter I configured my case power button to sleep but I'm guessing this has nothing to do with keyboard input.

vaifrax avatar Jan 22 '20 22:01 vaifrax

I finally had the opportunity to test on a desktop with an old IBM 101-key KB. Set F12 to Sleep but it did nothing at all after remapping. I'm not really sure whether the Sleep button on a new KB will even work with the same PC.

@vaifrax: No (would be weird if it did).

SumatraPeter avatar Jan 22 '20 23:01 SumatraPeter

I wanted to drop in a thank you here. Not an issue, but definitely in theme with the issue's title!

As a long time macOS user having to use Windows 10 for work, sharpkeys made the transition to using windows on the daily bearable. if you had a way for me to give you money, I'd do so, I just didn't see one

ScottAwesome avatar Jan 31 '20 16:01 ScottAwesome

@ScottAwesome It's on his main website, https://www.randyrants.com/donate/

Contramalgra avatar Feb 11 '20 03:02 Contramalgra

Hi, adding to this thread - thank you so much for making SharpKeys!

I'm using a portable keyboard that has only has a num pad, and it was driving me nuts b/c ALT+arrow keys produced symbols even when Numlock was off. That made coding awful since using ALT+UP/DN to move lines produced little symbols all over the place.

Was about to give up and buy a new keyboard until I stumbled on this tool. Thank you thank you!

yz778 avatar May 12 '20 07:05 yz778

Hey, I just wanted to let you know that I successfully remapped the Alt Gr key. Thanks a lot for this app, it's absolutely great! Now i can finally properly use my Unicomp Model M. (They have the right Alt and Windows key switched for some reason).

I have a German keyboard btw, I don't know if that is important.

Juckelfunk avatar Aug 13 '20 17:08 Juckelfunk

Is it possible to remap the windows keyboard with this application so it works with regional versions of Commodore64 emulator Vice? see this thread for reference: https://www.lemon64.com/forum/viewtopic.php?t=71226

I will try it out myself, but was hoping someone had explored similar uses already.

Thanks!

JimJettuman avatar Oct 15 '20 11:10 JimJettuman

Sadly, the Windows tech that is used to remap things is not aware of any specific application, so this product cannot help. That said, give Microsoft PowerToys a try: I know they have a more active remapping but I don't remember if they are product by product.

randyrants avatar Oct 16 '20 00:10 randyrants